What Keeps My Computer Awake? Causes and Fixes
In this article
Your PC stays awake because one or more processes, scheduled tasks, or hardware events are sending a wake‑request that overrides the system’s sleep policy.
Why a computer stays awake
Modern operating systems are designed to conserve energy, but they also need to remain responsive to user‑initiated or system‑initiated events. When a component tells Windows that it requires the machine to stay on, the power manager respects that request. Typical reasons include:
- Background applications that constantly poll the network (e.g., cloud sync services).
- Scheduled tasks such as Windows Update, disk defragmentation, or backup jobs.
- Hardware devices with the "Allow this device to wake the computer" flag enabled, like keyboards, mice, or network adapters.
- Power‑settings that explicitly prevent sleep during certain activities (e.g., media playback).
- System errors that leave a wake lock active.
How Windows decides to sleep
When the idle timer expires, Windows queries the power‑policy engine. The engine checks three main sources:
- Power requests – any process can call
SetThreadExecutionStateto request that the system stay awake. - Wake timers – scheduled events created with
powercfg -waketimersor the Task Scheduler. - Device wake capabilities – devices that have been granted permission to generate a wake signal.
If any source reports an active request, the system postpones sleep until the request is cleared or the user manually forces a shutdown.
Diagnosing the culprit
The quickest way to see what is preventing sleep is to use the built‑in powercfg utility. Open a Command Prompt with administrator rights and run:
powercfg -requests
This command lists active power requests grouped by DISPLAY, SYSTEM, and AUDIO. A typical output might look like:
DISPLAY: None. SYSTEM: [PROCESS] \Device\HarddiskVolume2\Windows\System32\svchost.exe (Windows Update) AUDIO: None.
If the list shows a process you do not expect, you can close that application or stop the service. For wake timers, run:
powercfg -waketimers
Any scheduled task that has a timer will appear here. You can then open Task Scheduler (Start → Task Scheduler) and locate the task under Task Scheduler Library. Right‑click the task, choose Properties**, and disable the Wake the computer to run this task option.
Common sources of wake requests
Below are the most frequently encountered sources, along with a brief description of why they keep the system awake:
- Windows Update – The service may schedule a download or install during idle hours and set a wake timer to ensure completion.
- OneDrive / Google Drive sync – Continuous file‑change monitoring generates power requests while the sync client is active.
- Antivirus scans – Real‑time protection can hold a system‑wide request while scanning large volumes of data.
- Multimedia playback – Media players call
SetThreadExecutionStateto prevent the screen from turning off during video or audio playback. - Network adapters – If "Allow this device to wake the computer" is enabled, a network packet (e.g., a remote desktop request) can instantly bring the PC out of sleep.
- Peripheral devices – USB keyboards or mice with the wake‑enabled flag can generate a wake event as soon as they detect activity.
Fixes and preventive steps
Once you have identified the source, apply the appropriate fix. The following checklist covers the most reliable methods:
- Disable unnecessary wake timers
- Open Settings > System > Power & sleep.
- Click Additional power settings on the right.
- Choose your active plan, then Change plan settings → Change advanced power settings.
- Expand Sleep → Allow wake timers and set it to Disable for both On battery and Plugged in.
- Turn off device‑initiated wake
- Open Device Manager (right‑click Start button → Device Manager).
- Locate the network adapter, keyboard, or mouse you wish to modify.
- Right‑click → Properties → Power Management tab.
- Uncheck Allow this device to wake the computer.
- Stop background apps from requesting execution state
- Press Ctrl+Shift+Esc to open Task Manager.
- Identify any sync clients, backup utilities, or media players that remain running while you expect the PC to sleep.
- Right‑click the process and select End task, or configure the app’s own settings to disable “run in background”.
- Adjust scheduled tasks
- Open Task Scheduler (Start → Task Scheduler).
- In the left pane, navigate to Task Scheduler Library.
- For each task that you suspect, open Properties** and clear the Wake the computer to run this task checkbox.
- Use the powercfg command to clear lingering requests
- Run
powercfg -requestsoverrideto add a permanent override for a misbehaving process. Example:powercfg -requestsoverride PROCESS svchost.exe SYSTEM
- Run
After applying changes, test the behavior by putting the PC to sleep manually (right‑click Start → Shut down or sign out** → Sleep) and confirming that it stays asleep for the desired interval.
Alternative power‑saving tools
If built‑in settings do not give the granularity you need, third‑party utilities can help:
- Sleep Timer – a lightweight program that forces the system into sleep after a user‑defined period.
- PowerToys – Awake – part of Microsoft PowerToys, it lets you temporarily prevent sleep for a specific duration without altering global settings.
- AutoPowerOptions – provides a graphical front‑end for many
powercfgcommands, making it easier to script overrides.
These tools do not replace the need to locate the original wake source, but they can be useful for occasional scenarios such as overnight downloads or media transcoding.
Frequently Asked Questions
Why does my PC wake up at 3 AM even though I didn’t schedule anything?
Windows Update often creates a hidden wake timer to finish installing updates. Run powercfg -waketimers to see the exact task, then disable the “Wake the computer to run this task” option in Task Scheduler.
Can a USB mouse really wake my laptop?
Yes. If the mouse’s power‑management checkbox is enabled in Device Manager, any movement or button press sends a wake signal. Unchecking the box stops this behavior.
My computer never goes to sleep when I close the lid. What setting controls that?
Open Settings > System > Power & sleep, then under Lid close action (found in the advanced power options) select Sleep. Some manufacturers also provide a BIOS/UEFI option that can override Windows.
Do background Chrome tabs keep Windows from sleeping?
Chrome can request a system execution state when playing audio or running a WebRTC stream. Closing the tab or disabling “Continue running background apps when Chrome is closed” in Chrome’s settings removes the request.
Is it safe to use powercfg -requestsoverride?
The command creates a permanent exception for a specific process, so use it only when you have verified that the process is not needed for sleep. Overriding a critical system service may cause missed updates or backups.