Key takeaways
- A PC that wakes itself at night has a cause Windows can name. Find the wake source and turn it off with this guide.
As an Amazon Associate we earn from qualifying purchases.
You put the PC to sleep, walk away, and in the middle of the night the fans spin up, the screen glows, and the machine is wide awake. Nothing touched it. No one pressed a key. The room is dark, the house is quiet, and the PC woke itself. That is the fault this guide fixes: a PC that keeps waking from sleep on its own, night after night, for no reason you can see.
The good news is that a PC never wakes for no reason. Windows keeps a record of every wake event, and the cause is one of four things: a wake timer set by an update or a scheduled job, a mouse or keyboard bump, a network packet that told the PC to wake, or a scheduled update that ran overnight. This guide shows you how to find the wake source, turn it off, and keep the PC asleep until you wake it yourself.
Quick Answer
A PC that wakes on its own is not haunted, and it is not broken. Windows keeps a log of every wake event, and the cause is almost always a wake timer, a mouse or keyboard bump, a network packet, or a scheduled update. Run powercfg /lastwake in Command Prompt to see the exact source, then turn that source off. This is the opposite fault from a PC that will not wake at all: here the machine wakes too easily, and the fix is to take away its reasons to wake, not to add new ones.
How to Choose
1. Begin With the Wake Log, Not With Guesses
Guessing wastes an evening. Windows logs every wake event with the name of the thing that caused it, so the first move is always to read that log instead of changing settings at random. Open Command Prompt as an administrator, type powercfg /lastwake, and press Enter. The output names the wake source: a device, a timer, or a scheduled job. Write that name down before you change anything, because it tells you which of the four fixes below you actually need. If the log is empty, the wake came from a timer that already finished, so run powercfg /waketimers next and read the list of timers that are armed and waiting.
2. Learn the Difference Between Sleep, Hibernate, and Off
Sleep keeps your work in memory and draws a small amount of power, so the PC can wake in a second. Hibernate writes your work to the drive and draws no power at all, so nothing can wake it except the power button. Off is off. This matters because a PC that wakes on its own is almost always in sleep, not hibernate, and the fix for a sleep problem is different from the fix for a hibernate problem. If your PC wakes from hibernate, the cause is a BIOS setting or a scheduled job that powers the machine on, not a mouse bump. Check which mode your PC uses before you change settings.
3. Know Which Devices Are Allowed to Wake the PC
By default, Windows lets your mouse, your keyboard, and your network adapter wake the PC. That is handy when you sit down and want the machine awake, and it is a nuisance at night when a cat walks across the desk or a network packet arrives. The fix is not to turn off waking for everything at once, because then the PC will not wake when you want it to. Instead, find out which devices are armed to wake the machine with powercfg /devicequery wake_armed, then turn off waking only for the devices that cause trouble. A wired mouse on a wobbly desk is a common culprit, and so is a wireless mouse with a loose dongle.
4. Understand Wake Timers Before You Turn Them Off
A wake timer is a clock that Windows or an app sets so the PC wakes at a set time to do a job, then goes back to sleep. Updates, backups, and media apps all use wake timers, and they are the most common cause of a PC that wakes at 3 AM. Turning off all wake timers stops the night waking, but it also stops overnight updates, so your PC may wake you with an update prompt at the wrong moment instead. The better move is to look at the timer list first with powercfg /waketimers, find the timer that matches the wake time, and turn off only that one. Keep the timers you want, and remove the rest.
What Causes It
1. A Wake Timer Fires in the Middle of the Night
Windows and your apps can set wake timers, and a timer that fires at 3 AM wakes the PC to run a job. The most common timer comes from Windows Update, which wakes the machine to install an update and then goes back to sleep. Media apps, backup tools, and scheduled jobs set timers too. A timer that fires every night at the same time is easy to spot: note the wake time for two nights, and if the times match, a timer is the cause. Run powercfg /waketimers to see every timer that is armed, and the list will show the owner of each one, so you know exactly which app or job to blame.
2. A Mouse or Keyboard Bump Wakes the Machine
A mouse or keyboard that is allowed to wake the PC will wake it on the smallest bump. A cat walking across the desk, a book nudging the mouse, a desk that shakes when someone walks past, or a wireless mouse that sends a stray signal can all wake the machine. A loose laptop lid can wake the machine when the desk moves. The sign of this cause is a wake time that matches a bump or a movement in the room, and a wake log that names the mouse or the keyboard as the source. Move the mouse away from the edge of the desk, and the waking often stops on its own.
3. A Network Packet Wakes the PC From Across the Room
Wake on LAN lets another device on your network wake the PC with a magic packet, which is handy for remote access. It is also a common cause of night waking, because a router, a phone, or another PC on the network can send a packet that wakes the machine. The wake log will name the network adapter as the source, and the wake time will often match a moment when another device joined the network or checked for updates. A PC that wakes every time a phone connects to Wi-Fi is waking on a network packet. Turning off Wake on LAN stops this cause at once, and you lose nothing unless you wake the PC from another device.
4. A Scheduled Update or Job Powers the Machine On
Windows Update can wake the PC overnight to install an update, and Automatic Maintenance can wake it to run a cleanup job. Both are scheduled jobs that run when the PC is idle, and both will wake a sleeping machine to do their work. The sign of this cause is a wake time that matches the update hour you set, or a wake that happens right after an update was installed. A BIOS setting can do the same thing: some boards have a wake-on-alarm option that powers the machine on at a set time, and a scheduled job in the BIOS will wake the PC even when Windows is asleep. Check the update hours and the BIOS alarm together.
How to Fix It Step by Step
1. Find the Wake Source First
- Open Command Prompt as an administrator.
- Type powercfg /lastwake and press Enter, then read the wake source it names.
- If the log names a device, go to the device fix below. If it names a timer, go to the timer fix below.
- If the log is empty, type powercfg /waketimers and read the list of armed timers.
- Type powercfg /devicequery wake_armed to see every device that is allowed to wake the PC.
With those three lists in front of you, you know exactly what woke the machine.
2. Turn Off the Wake Timer That Fires at Night
- Type powercfg /waketimers in Command Prompt and read the list of armed timers.
- Find the timer whose time matches the night waking, and note the app or job that owns it.
- Open Control Panel, go to Power Options, and open Change advanced power settings for your plan.
- Find the Sleep entry, open Allow wake timers, and set it to Disable for the plan you use.
- If the timer belongs to an app you use, open that app and turn off its own wake option instead, so the app still works when you open it.
- Reboot the PC, put it to sleep, and check the next morning whether it stayed asleep.
3. Stop the Mouse, Keyboard, and Network Adapter From Waking the PC
- Open Device Manager from the Windows button menu.
- Find your mouse under Mice and other pointing devices, right-click it, and open Properties.
- Open the Power Management tab and clear the box that says Allow this device to wake the computer.
- Do the same for your keyboard under Keyboards.
- Find your network adapter under Network adapters, open Properties, go to the Power Management tab, and clear the same box, then open the Advanced tab and turn off Wake on Magic Packet and Wake on Pattern Match.
- If you still want the keyboard to wake the PC, leave its box checked and turn off only the mouse and the network adapter.
4. Turn Off Network Wake and Scheduled Jobs That Wake the PC
- In Device Manager, open your network adapter Properties, go to the Advanced tab, and set Wake on LAN to Disabled.
- On the Power Management tab, check the box that says Only allow a magic packet to wake the computer.
- Open Task Scheduler, find the job that matches the wake time, and turn off its wake option.
- Open Settings, go to Windows Update, and set the active hours to the hours you use the PC.
- Open the BIOS at boot, find the wake-on-alarm option, and turn it off.
- Reboot, put the PC to sleep, and check the next morning whether it stayed asleep.
Which One Fits Your Situation
1. The PC Wakes at the Same Time Every Night
This is a wake timer or a scheduled job. Run powercfg /waketimers, find the timer that matches the wake time, and turn it off. Check the update hours too, because Windows Update is the most common timer. If the timer belongs to an app you use, turn off only that app’s wake option.
2. The PC Wakes When Someone Walks Past the Desk
This is a mouse or keyboard bump. Clear the wake box for the mouse in Device Manager, and move the mouse away from the edge of the desk. If a cat walks across the desk at night, turn the mouse over or unplug it before bed. Keep the keyboard armed if you like waking the PC with a key.
3. The PC Wakes When Another Device Joins the Network
This is a network wake packet. Turn off Wake on LAN for your network adapter, or check the box that says Only allow a magic packet to wake the computer. If you wake the PC from another device on purpose, keep Wake on LAN on and turn off the other wake sources instead.
4. The PC Wakes Right After an Update
This is often Windows Update or a scheduled job that ran overnight. Set the active hours to the hours you use the PC, so updates install while you are awake. Turn off wake timers for the update plan, and check Task Scheduler first for a job that matches the wake time.
Common Mistakes
- Turning off waking for every device at once, so the PC will not wake when you want it to.
- Changing settings at random before reading the wake log, so you fix the wrong cause.
- Turning off all wake timers, so updates stop installing overnight.
- Forgetting the BIOS alarm, which can power the PC on even when Windows is asleep.
- Assuming the PC is broken, when the wake log names a simple cause.
Frequently Asked Questions
1. Why does my PC wake up at 3 AM every night?
A wake timer or a scheduled job fires at that hour. Run powercfg /waketimers to see the timers that are armed, find the one that matches 3 AM, and turn it off. Windows Update is the most common timer, so check the update hours first.
2. Can a mouse wake my PC from sleep?
Yes, if the mouse is allowed to wake the PC. A bump, a nudge, or a stray wireless signal can wake the machine. Open Device Manager, find the mouse, and clear the box that says Allow this device to wake the computer. The mouse still works when the PC is awake.
3. Should I turn off all wake timers?
No, turn off only the timer that causes the night waking. Wake timers let updates and backups run overnight, and turning them all off stops those jobs. Find the timer with powercfg /waketimers, turn off that one, and keep the rest.
4. Does hibernate stop the PC from waking on its own?
Yes, hibernate writes your work to the drive and draws no power, so a mouse bump or a network packet cannot wake the PC. A BIOS alarm can still power the machine on, so turn that off too if your board has one. Use hibernate when you want the PC to stay off until you press the power button.
FAQ
1. Why does my PC wake up at 3 AM every night?
2. Can a mouse wake my PC from sleep?
3. Should I turn off all wake timers?
4. Does hibernate stop the PC from waking on its own?
More from Amazon
Programs that pair well with the guide above. Offers and eligibility are set by Amazon and may change.
Free shipping on eligible items, Prime Video and more. Eligible new members can start with a free trial.
Start a Prime free trialAd-free music streaming. Eligible new subscribers can start with a free trial.
Try Music Unlimited freeA Prime membership for ages 18-24 with a trial period. Eligibility is set by Amazon.
See Prime for Young AdultsAudiobooks and podcasts to listen to on the go. Eligible new members can start with a free trial.
Try Audible freeAs an Amazon Associate we earn from qualifying purchases.