You have likely put your computer or monitor to sleep if your screen goes black. A long period of inactivity will cause Windows power settings to shut down the display first, then put the computer to sleep.