العربية

Windows 11 Won't Sleep or Keeps Waking Up: Find the Cause with powercfg

PC won't sleep or wakes on its own? Use powercfg /a, /lastwake, /requests, /waketimers and /devicequery to find what is responsible, then fix it.

Last updated: December 2, 2026

A laptop with a crescent moon on its screen and a magnifying glass over a power cable.

A PC that will not sleep, or wakes at 3 AM, always has a reason.

Windows keeps a record of what woke it and what is stopping it from sleeping. You only need to ask. Microsoft's powercfg tool answers both questions in a few commands, and it also lists the devices allowed to wake the machine so you can turn off the one that should not be. This guide walks through the commands in the order that finds the cause fastest. Every command and its meaning comes from Microsoft's powercfg documentation.

This is part 1 of a short series on Windows 11 power, startup and disk space. For what sleep, hibernate and fast startup each save, read Hibernate vs Fast Startup vs Sleep in Windows 11 first. If hibernation is eating disk space, see how to disable hibernation and reclaim space.

Start by Checking That Sleep Is Available

⚡ Quick Answer: Open Terminal as administrator and run powercfg /a to see which sleep states your PC supports. Run powercfg /lastwake to see what woke it last. Run powercfg /requests to see what is blocking sleep right now. Run powercfg /waketimers and powercfg /devicequery wake_armed to see what is allowed to wake it.

Right-click the Start button and choose Terminal (Admin). Several of these commands read system-wide power data, and running them from an elevated window avoids access errors.

Terminal
powercfg /a

The /a option, short for /availablesleepstates, lists the sleep states the system supports. If a state is missing, Microsoft's documentation says the command tries to report why it is unavailable. That reason is often the whole answer, for example a firmware setting, or a feature switched off on purpose.

Find What Woke the PC

Terminal
powercfg /lastwake

This reports what woke the system from the last sleep transition. Run it right after an unwanted wake, before you put the PC to sleep again, so the answer is the one you care about. Read the wake source it names, then check the devices and timers below.

Find What Is Keeping It Awake

Terminal
powercfg /requests

This lists the application and driver power requests. The Microsoft documentation describes them as requests that prevent the computer from automatically turning off the display or entering a low-power sleep mode. Any program or driver that has set a request appears in the list, with its name. Those are the ones keeping the PC awake.

If one entry keeps the PC awake and you do not need it to, you can override it:

Terminal
powercfg /requestsoverride process wmplayer.exe display system

The format is caller type, name, then the request types to ignore. The caller type is process, service or driver, and the name is exactly what /requests printed. Use this sparingly. Closing or fixing the program is cleaner than overriding it.

Check Timers and Devices Allowed to Wake the PC

Two lists matter here.

Terminal
powercfg /waketimers

This enumerates the active wake timers. The documentation notes that when enabled, the expiry of a wake timer wakes the system from sleep and hibernate.

Terminal
powercfg /devicequery wake_armed

This lists the devices currently configured to wake the system from any sleep state. A mouse, a keyboard or a network adapter on this list can wake the PC when it is bumped or when traffic arrives. To see every device that could be configured to wake it, use wake_programmable instead of wake_armed.

To stop a device from waking the PC, use the exact name the query printed:

Terminal
powercfg /devicedisablewake "Device name here"

To allow a device again, use powercfg /deviceenableawake with the same name. The name must come from /devicequery, because a typo will not match.

❤️

Support Our Content

Your donation helps us keep going

A Sensible Order for Troubleshooting

  1. Run powercfg /a. Confirm sleep is supported and read any reason it is not.
  2. If the PC wakes by itself, run powercfg /lastwake straight after the wake.
  3. If it never sleeps, run powercfg /requests and look at the names it lists.
  4. Run powercfg /waketimers and look for a task that sets a timer.
  5. Run powercfg /devicequery wake_armed and disable any device you do not want waking the PC.
  6. Put the PC to sleep and test again. Repeat step 2 if it still wakes.
⚠️ Warning: Disabling wake on the keyboard or mouse on a desktop is fine. Change one device at a time and test, so you do not turn off the one you use to wake the machine.

Check Before You Call It Done

  • powercfg /a shows the sleep state you expect.
  • powercfg /requests lists nothing you did not expect when the PC is idle.
  • powercfg /lastwake no longer names a device or timer you did not intend.
  • powercfg /devicequery wake_armed lists only the devices you want.
  • The PC stays asleep overnight.

Next in the Series

  1. Windows 11 won't sleep or wakes by itself (this guide)
  2. Battery health with the powercfg battery and energy reports
  3. Startup apps and boot time
  4. Free up disk space: hiberfil.sys, Storage Sense and cleanup

Frequently Asked Questions

❓ Do I need administrator rights for powercfg?

Run it from Terminal (Admin). Some options read or change system-wide power settings, and an elevated window avoids permission errors.

❓ How do I find out why my PC woke up?

Run powercfg /lastwake right after the unwanted wake. It reports what woke the system from the last sleep transition.

❓ What does powercfg /requests show?

It lists the application and driver power requests that stop the display from turning off or the PC from entering sleep. The names it lists are the programs or drivers keeping it awake.

❓ How do I stop a mouse or keyboard from waking my PC?

Run powercfg /devicequery wake_armed to get the exact device name, then powercfg /devicedisablewake with that name in quotes.

📬
Windows 11 Guides

Get Windows 11 Fixes That Actually Work

Practical Windows 11 guides based on official documentation and delivered to your inbox from Valley4Techs.

🔒 100% free. No spam, ever. Unsubscribe with one click anytime.

Sources

Add Valley4Techs as a Preferred Source

Follow us on Google News for the latest updates

Add Now
Comments