A PC that keeps waking from sleep on its own is almost always being told to wake by a device or a scheduled task. Common triggers are the mouse or keyboard, the network adapter, connected USB devices, and Windows scheduled maintenance or updates. You can find the exact cause with a single command and then block just that waker without disabling sleep entirely.
Why this happens
- The mouse or keyboard is set to wake the PC and reacts to small movements or vibration.
- The network adapter wakes on network traffic or Wake on LAN packets.
- A USB device sends a signal that counts as a wake event.
- Windows scheduled maintenance or an update wakes the PC to run tasks.
- A wake timer from an app or the system is set to run at a specific time.
Is this normal?
An occasional wake to install updates or run maintenance is normal. Frequent or random waking, especially in the middle of the night, is not, and usually has a single identifiable cause.
Does it cause any problems?
It wastes power, interrupts you, and can let a laptop overheat if it wakes inside a closed bag. It does not harm the hardware directly.
How to fix or check it
- On Windows, open Command Prompt and run powercfg /lastwake to see what caused the most recent wake.
- Run powercfg /waketimers to list scheduled wake timers.
- Run powercfg -devicequery wake_armed to list devices allowed to wake the PC.
- In Device Manager, open the offending device, go to Power Management, and uncheck Allow this device to wake the computer. Leave the keyboard enabled if you use a key to wake.
- For the network adapter, also uncheck Only allow a magic packet to wake the computer.
- Open Task Scheduler, find tasks with Wake the computer to run this task enabled, and turn that option off.
- In Advanced power settings, set Allow wake timers to Disable or Important Wake Timers Only.
- On a Mac, run pmset -g log | grep -i wake in Terminal to see wake causes, and turn off Wake for network access in System Settings, Battery or Energy.
Frequently asked questions
What is the fastest way to find the cause?
On Windows, powercfg /lastwake usually names the exact device or task that woke the PC most recently. Start there before changing settings.
Is Wake on LAN bad?
No, it is useful for waking a PC remotely. If you do not use it, disabling the magic packet wake setting stops unwanted network wakes.
Why does it wake at the same time every night?
That points to a scheduled wake timer, usually Automatic Maintenance or an update task. Adjust or disable the wake option on that task.