You set the PC to sleep after 15 minutes, but the screen stays on all night, or the PC goes to sleep and wakes itself up a few minutes later. Something is either blocking sleep or waking the PC. Windows can tell you exactly which, so you don't have to guess.
(If your PC shuts down completely when it should sleep, that's a different problem: see Windows shuts down instead of sleeping.)
Our guide to screen timeout in Windows explains the difference between turning off the screen and sleep.
Then test: select Start > Power > Sleep. If the PC sleeps fine when you do it by hand, but not on its own timer, something is blocking automatic sleep (Step 2). If it wakes itself up again, go to Step 3.
powercfg /requests
The output has sections such as DISPLAY, SYSTEM, AWAYMODE and EXECUTION. Each shows None or the program or driver that is keeping the PC awake. Common ones:
chrome.exe or msedge.exe) with an audio or video stream playing. Close the tab or pause it.[DRIVER] entries) that holds an open audio stream. Restart the PC, and update or reinstall that driver if it keeps appearing.Once you've closed the cause, run the command again. When every section says None, automatic sleep should work.
In the same window, run:
powercfg /lastwake
It shows what woke the PC last time. Then list the devices that are allowed to wake it:
powercfg /devicequery wake_armed
And scheduled wake timers:
powercfg /waketimers
Keep this ticked for the keyboard if you like to wake the PC with a key press. Sensitive mice and network adapters are the most common unwanted wakers.
Scheduled tasks (for example maintenance or updates) can wake the PC.
Windows also runs automatic maintenance that can wake the PC. In Control Panel, open System and Security > Security and Maintenance, expand Maintenance, select Change maintenance settings and clear Allow scheduled maintenance to wake up my computer at the scheduled time.
In the same Advanced power settings window, check Multimedia settings > When sharing media. If it's set to Prevent idling to sleep, change it to Allow the computer to sleep. Media sharing to a TV or another PC otherwise keeps it awake.
Many newer laptops use Modern Standby: in sleep they stay partly connected, like a phone. powercfg /a shows Standby (S0 Low Power Idle) if yours does. On these laptops some network activity in sleep is normal. If the battery drains a lot overnight, use Hibernate or shut down instead; our guide to laptop battery draining fast on Windows 11 shows how to add Hibernate to the power menu and read the battery report.
Start the PC in Safe Mode and try sleep there. If it works in Safe Mode, a program or driver that starts with Windows is the cause; turn off startup apps in Settings > Apps > Startup one by one to find it.
Open an administrator Command Prompt and run powercfg /requests. It lists the apps, drivers and services currently blocking sleep or the display from turning off.
Usually a mouse, keyboard or network adapter is allowed to wake it, or a scheduled task uses a wake timer. Run powercfg /lastwake to see what woke it last, and powercfg /waketimers to see scheduled wakes.
A sensitive optical mouse can pick up tiny movements and wake the PC. In Device Manager, open the mouse, select the Power Management tab and clear Allow this device to wake the computer.
Yes. A video or music tab in the browser, or a game or streaming app, asks Windows to stay awake while it plays. Close or pause it and check powercfg /requests again.
Comments