Windows

PC Won't Sleep or Keeps Waking Itself Up? Find the Culprit with powercfg

Published ✓ Verified ⏱️ 2 min read May 23, 2025 · by Ryan Bennett

Your PC either refuses to go to sleep, or it wakes up by itself moments after you send it to sleep.

Why: something is either holding a power request (an app or driver telling Windows to stay awake) or there’s a wake timer / armed device (a scheduled task, update, mouse, or network card) pulling it back out of sleep. powercfg names the exact culprit so you don’t have to guess.

Fix 1: Find what’s keeping the PC awake (won’t sleep)

In admin Command Prompt or PowerShell:

powercfg /requests

This enumerates active Power Requests — the apps and drivers preventing the display from turning off or the system from sleeping. A media player, a browser playing audio, or a backup tool is a common offender. Close that program (or quit the offending tab) and the system can sleep again.

Fix 2: Find what woke it (wakes by itself)

After an unexpected wake, check the last wake source:

powercfg /lastwake

Then list the timers scheduled to wake the machine:

powercfg /waketimers

This often points at a scheduled maintenance task. As Microsoft documents, Windows configures a daily Regular Maintenance task and, with Allow wake timers enabled, will program the clock to wake the PC to run it — for example a powercfg /waketimers line reading “Windows will execute ‘NT TASK\Microsoft\Windows\TaskScheduler\Regular Maintenance’ scheduled task that requested waking the computer.”

Fix 3: See which devices are allowed to wake the PC

List the hardware currently armed to wake the system:

powercfg /devicequery wake_armed

For any device you don’t want waking the PC (often the mouse or network adapter): open Device Manager, double-click the device, go to the Power Management tab, and untick Allow this device to wake the computer.

Fix 4: Turn off wake timers and maintenance wake-ups

If a scheduled task keeps waking the machine:

  • Settings > System > Power & battery > Power mode area, then Additional power settings > Change plan settings > Change advanced power settings > Sleep > Allow wake timers and set it to Disable (or Important Wake Timers Only).
  • To stop maintenance specifically, open Control Panel > Security and Maintenance > Maintenance and turn off the option that lets scheduled maintenance wake the computer.

FAQ

powercfg /requests shows “[DRIVER] Legacy Kernel Caller” — what is that? Usually an audio driver holding a request. Update the audio/chipset driver; closing media apps first often clears it.

The PC wakes about 2 seconds after I sleep it. That’s typically a USB mouse or keyboard. Use Fix 3 to disarm it, or unplug it briefly to confirm.

Sources: Microsoft Learn — Desktop wakes up unexpectedly from sleep or hibernation, Microsoft Learn — Powercfg command-line options

↑↓ navigate · ↵ open · Esc close See all results →