Windows 10 won’t sleep! The powercfg command can help

My Windows 10 desktop used to go to sleep as expected. My basic power settings show a ‘balanced’ power plan, with the following settings:

  • turn off the display: 10 minutes
  • put the computer to sleep: 30 minutes

Pretty standard power settings.

However, lately I walk into my study after hours of inactivity and see the PC still powered on. It shouldn’t be. It should be sleeping after the pre-configured time of PC inactivity.

The first thing to check: One of the ‘usual culprits’ that has traditionally prevented my PCs from sleeping over the years has been ‘when sharing media, prevent idling to sleep’ power setting. This setting can be found within the ‘advanced settings’ of your power options. It should be set to ‘allow the computer to sleep’.┬áThe example below shows the setting on another of my PCs (my media center PC) which runs 24/7.

what is preventing my computer from sleeping

The multimedia power setting was already correctly set to allow my computer to sleep, but my PC still failed to sleep.

The second thing to check: The device manager allows for the power management of individual components. Most (if not all) configurable components need to be set to ‘Allow the computer to turn off this device to save power’. The example below shows the settings for my network interface card (NIC).

what is preventing my computer from sleeping

On my PC, the ‘Allow the computer to sleep’ setting was checked, yet my computer still failed to sleep.

The third and final check (in my case): Open an elevated command prompt (right-click a command prompt shortcut, and click ‘run as administrator’).

Now run the ‘powercfg -requests’ command. This will show all of the different components that are preventing the PC from sleeping. In my case, I had the print spooler claiming to be ‘printing a document’. However, when I opened the ‘printers’ section of control panel, no jobs were queued.

what is preventing my computer from sleeping

My problem was that I had corrupt files clogging the print spooler, and preventing my PC from sleeping. I had to stop the ‘print spooler’ service, navigate to c:\windows\system32\spool\printers and then delete all of the corrupt queued print jobs. I then rebooted the PC.

what is preventing my computer from sleeping

After the PC restart, I re-ran the ‘powercfg -requests’ command. There were no further impediments for the desktop to sleep. And after 30 minutes of inactivity, it went to sleep.

I hope these problem solving steps help you in determining why your PC is not sleeping.

If you have any suggestions, please share, and I’ll update the post.

Leave a Reply

Your email address will not be published. Required fields are marked *