Windows: Sleep, Power Config
on windows, when you put computer to sleep, but after 30 min, it magically wakes, fans turning on, then go back to sleep.
ai answer
on windows, when you put computer to sleep, but after 30 min or so, it would wake, fans turning on, then go back to sleep. very annoying. how to stop it from self wake
The most common causes for a Windows PC waking from sleep (with fans spinning up briefly before sleeping again) are wake timers, scheduled tasks (like maintenance or updates), or devices (network adapter, mouse, keyboard, USB controllers) set to wake the computer.
Here's a step-by-step troubleshooting guide to fix it. Start from the top.
1. Diagnose the Cause (Very Important)
Open Command Prompt as Administrator (right-click Start → Terminal (Admin) or Command Prompt (Admin)) and run these commands one by one:
powercfg -lastwake
This shows what woke the PC last time. Note any device names or "Wake Timer".
powercfg -devicequery wake_armed
This lists all devices currently allowed to wake your PC.
powercfg -waketimers
This shows active wake timers.
After the next unwanted wake-up, run powercfg -lastwake again to pinpoint the culprit.
2. Disable Wake Timers (Most Common Fix)
- Right-click the Start button → Power Options.
- Click Change plan settings next to your active power plan → Change advanced power settings.
- Expand Sleep → Allow wake timers.
- Set both On battery and Plugged in to Disable.
- Do this for all power plans (select them from the dropdown at the top).
3. Disable Devices from Waking the PC
- Open Device Manager (right-click Start → Device Manager).
- Expand categories like:
- Network adapters (very common culprit)
- Keyboards
- Mice and other pointing devices
- Universal Serial Bus controllers / Human Interface Devices
- Right-click each relevant device → Properties → Power Management tab.
- Uncheck "Allow this device to wake the computer".
- Click OK. Repeat for others (especially the network/Wi-Fi adapter).
Tip: You can also disable via command (replace "Device Name" with the exact name from the earlier wake_armed command):
powercfg -devicedisablewake "Realtek PCIe GbE Family Controller"
4. Disable Automatic Maintenance Wake-Up
- Search for Security and Maintenance in Start.
- Expand Maintenance → Change maintenance settings.
- Uncheck "Allow scheduled maintenance to wake up my computer at the scheduled time".
5. Other Quick Fixes
- Windows Update: Go to Settings → Windows Update → Advanced options and set active hours or pause updates.
- Task Scheduler: Search for Task Scheduler → Go to
Microsoft\Windows\UpdateOrchestratorand disable wake-capable tasks (e.g., Reboot) if needed. Or right-click tasks → Properties → Conditions → uncheck "Wake the computer to run this task". - BIOS/UEFI: Restart and enter BIOS (usually Del/F2/F10). Disable Wake on LAN, Wake on Keyboard, Wake on Mouse, or similar if present.
- Power requests (if it won't sleep at all): Run
powercfg -requestsin admin Command Prompt.
6. Generate a Detailed Report (If Still Happening)
Run this in admin Command Prompt:
powercfg -sleepstudy
It generates an HTML report (usually in C:\Windows\System32) — open it in your browser for sleep/wake patterns.
After applying the main fixes (especially wake timers + network adapter), test by putting the PC to sleep and waiting. Most people resolve it with steps 2 and 3.
Let me know what powercfg -lastwake or -devicequery wake_armed shows if it persists!
Sleep, Power Config
- Powercfg
- https://docs.microsoft.com/en-us/windows-hardware/design/device-experiences/powercfg-command-line-options
here's the command line
powercfg options.
PS C:\Windows\System32> powercfg /?
POWERCFG /COMMAND [ARGUMENTS]
Description:
Enables users to control power settings on a local system.
For detailed command and option information, run "POWERCFG /? <COMMAND>"
Command List:
/LIST, /L Lists all power schemes.
/QUERY, /Q Displays the contents of a power scheme.
/CHANGE, /X Modifies a setting value in the current power scheme.
/CHANGENAME Modifies the name and description of a power scheme.
/DUPLICATESCHEME Duplicates a power scheme.
/DELETE, /D Deletes a power scheme.
/DELETESETTING Deletes a power setting.
/SETACTIVE, /S Makes a power scheme active on the system.
/GETACTIVESCHEME Retrieves the currently active power scheme.
/SETACVALUEINDEX Sets the value associated with a power setting
while the system is powered by AC power.
/SETDCVALUEINDEX Sets the value associated with a power setting
while the system is powered by DC power.
/IMPORT Imports all power settings from a file.
/EXPORT Exports a power scheme to a file.
/ALIASES Displays all aliases and their corresponding GUIDs.
/GETSECURITYDESCRIPTOR
Gets a security descriptor associated with a specified
power setting, power scheme, or action.
/SETSECURITYDESCRIPTOR
Sets a security descriptor associated with a
power setting, power scheme, or action.
/HIBERNATE, /H Enables and disables the hibernate feature.
/AVAILABLESLEEPSTATES, /A
Reports the sleep states available on the system.
/DEVICEQUERY Returns a list of devices that meet specified criteria.
/DEVICEENABLEWAKE Enables a device to wake the system from a sleep state.
/DEVICEDISABLEWAKE Disables a device from waking the system from a sleep
state.
/LASTWAKE Reports information about what woke the system from the
last sleep transition.
/WAKETIMERS Enumerates active wake timers.
/REQUESTS Enumerates application and driver Power Requests.
/REQUESTSOVERRIDE Sets a Power Request override for a particular Process,
Service, or Driver.
/ENERGY Analyzes the system for common energy-efficiency and
battery life problems.
/BATTERYREPORT Generates a report of battery usage.
/SLEEPSTUDY Generates a diagnostic system power transition report.
/SRUMUTIL Dumps Energy Estimation data from System Resource Usage
Monitor (SRUM).
/SYSTEMSLEEPDIAGNOSTICS
Generates a diagnostic report of system sleep transitions.
/SYSTEMPOWERREPORT Generates a diagnostic system power transition report.
/POWERTHROTTLING Control power throttling for an application.