Suddenly experiencing this problem? There may be one or more reasons why this happens. This can easily be investigated with PowerShell. Enter the command
powercfg /requests to see what, if any, devices, drivers or programs are requesting the system to be awake. Below we'll take a look at some examples to show you what you might see on your system.
Starting with nothing open on an idle computer, your results should look like this:
Next, in this query there are two things preventing the computer from changing states. This shows the program Spotify and the audio driver AAF DCH Optimus Sound are requesting to keep the system from entering a sleep or hibernate state. The Display will turn off after the time out period has been reached.
DISPLAY:None.SYSTEM:[DRIVER] AAF DCH Optimus Sound (HDAUDIO\FUNC_01&VEN_10EC&DEV_1220&SUBSYS_10438735&REV_1001\5&6f77a6e&0&0001)An audio stream is currently in use.AWAYMODE:None.EXECUTION:[PROCESS] \Device\HarddiskVolume3\Program Files\WindowsApps\SpotifyAB.SpotifyMusic_1.148.625.0_x86__zpdnekdrzrea0\Spotify.exeBackground Audio PlaybackPERFBOOST:None.ACTIVELOCKSCREEN:None.
Lastly, in this query there are three things preventing the computer from changing states. This shows the program Edge and the audio driver AAF DCH Optimus Sound are requesting to keep the system from entering a sleep or hibernate state. Additionally, Edge is keeping the display on. This is because a YouTube video is currently playing.
DISPLAY:[PROCESS] \Device\HarddiskVolume3\Program Files (x86)\Microsoft\Edge\Application\msedge.exeVideo Wake LockSYSTEM:[DRIVER] AAF DCH Optimus Sound (HDAUDIO\FUNC_01&VEN_10EC&DEV_1220&SUBSYS_10438735&REV_1001\5&6f77a6e&0&0001)An audio stream is currently in use.AWAYMODE:None.EXECUTION:[PROCESS] \Device\HarddiskVolume3\Program Files (x86)\Microsoft\Edge\Application\msedge.exePlaying audioPERFBOOST:None.ACTIVELOCKSCREEN:None.
How does all this help? It can show you exactly what it is you need to look at when your computer refuses to enter a sleep state. Here are some examples:
Open Device Manager and locate the device pertaining to the driver in use. Check the Power Management tab and make sure the option to allow the computer to turn the device off is enabled and that allow the device to wake the computer is off.
Make sure drivers are up-to-date. If it is an updated version, you can try downgrading to see if this solves the device issue.
Certain USB devices do not have power managing features and as such may need to be unplugged to allow the computer to change states.
An open program can easily be closed if listed. Check the program tray in the taskbar to see if it's there.
Bugs or glitches can develop. A restart may be needed. If this is the case, you would need to reach out to support for the manufacturer of the device or computer if this is a constant problem.
If you want to learn about each section, you can read more here: https://superuser.com/questions/1181186/power-request-types-whats-the-difference-between-display-system-awaymode-p