Windows Sleep

From Leo's Notes
Last edited on 30 December 2021, at 01:52.

Tasks[edit | edit source]

Find out the wake reason[edit | edit source]

If your computer wakes for no apparent reason, you can see the last wake reason by running:

powercfg /lastwake

See all wake timers[edit | edit source]

Wake timers are scheduled events that will wake your computer if wake timers are enabled. You can see all timers by running:

powercfg /waketimers

To disable all wake timers, you can edit the power options (Control Panel -> Power Options -> Advanced Settings -> Sleep -> Allow wake timers -> Disabled).

See all devices capable of waking[edit | edit source]

Devices such as keyboards can wake the computer on key press. All devices can be found by running:

powercfg -devicequery wake_armed

To disable a device from being able to wake a computer, open Device Manager, and find the appropriate HID device, then: Device Properties -> Power Management -> Uncheck 'Allow the device to wake this computer'.