You close the lid, walk away, and an hour later the fan is humming inside your bag. If you keep asking why does my laptop keep waking up from sleep, you are not imagining it. Something is telling your laptop to wake: usually a mouse, a network card, or a scheduled task, not a fault in the machine. Windows and your Mac both keep a record of every wake-up, so you can find the culprit instead of guessing. This guide covers Windows 11 and 10 laptops and MacBooks, and starts with a two-minute diagnosis so you only change the setting that matches.
Read More: 9 Fixes for a Laptop Battery Draining Too Fast
Find the culprit before you change anything
Wake-ups follow patterns. Match what you see below, then jump to the fix that fits.
- Wakes seconds after closing the lid: a mouse or keyboard is waking it (fix 1).
- Wakes at the same time nightly: a wake timer or task (fixes 2, 5).
- Wakes only on Wi-Fi: the network adapter is listening (fix 3).
- Wakes hot in a bag: a mouse or dock woke it (fixes 1, 7).
- Mac wakes after midnight: Power Nap or Time Machine (fix 6).
On Windows, ask the machine directly. Right after a surprise wake-up, right-click Start, open Terminal (Admin), and type powercfg /lastwake: it names the device or program that ended the last sleep. If it says unknown, type powercfg /waketimers to list every timer that can wake it. On a Mac, type pmset -g log | grep -i “wake” in Terminal to see the last wake events and their reasons. Note what you find: it tells you which fix matters.
Simple idea: run powercfg /lastwake (or pmset -g log on a Mac) right after the next surprise wake-up, before you sleep the laptop again. That one command names the culprit in most cases, and it saves you from changing ten settings at random.
1. Stop the mouse and keyboard from waking it
A wireless mouse is the most common cause of all. A desk vibration, a cable brushing a key, or a cat walking past the desk is enough to send a wake signal. On Windows, open Device Manager, expand Mice and other pointing devices, right-click your mouse, choose Properties, open the Power Management tab, and uncheck “Allow this device to wake the computer”. Repeat the steps for your keyboard and for each USB Root Hub. On a Mac, turn off “Allow Bluetooth devices to wake this computer” under System Settings, Bluetooth, Advanced.
2. Turn off wake timers
Wake timers let programs wake your laptop on their own schedule, for scans, backups, and updates. On Windows, open Control Panel, go to Hardware and Sound, then Power Options. Next to your active power plan, click Change plan settings, then Change advanced power settings. Expand Sleep, expand Allow wake timers, and set both On battery and Plugged in to Disable. If powercfg /waketimers named a specific program, change that program instead: move its scheduled scan, sync, or update to daytime.
3. Tame the network adapter
With Wake on LAN enabled, your Wi-Fi or Ethernet adapter keeps listening while the laptop sleeps, and ordinary traffic can wake it. On Windows, open Device Manager, expand Network adapters, right-click your adapter, choose Properties, open the Power Management tab, and uncheck “Allow this device to wake the computer”. If you wake the laptop from another computer on purpose, leave it checked and tick “Only allow a magic packet to wake the computer” instead. On a Mac, set “Wake for network access” to Never under System Settings, Battery, Options. Test it: sleep one night on Airplane Mode. If it stays asleep, the network adapter was the culprit.
4. Stop Windows Update and maintenance from waking it
Windows runs Automatic Maintenance every day, and the default setting lets it wake your laptop. Click Start, type “Automatic Maintenance”, and open Change Automatic Maintenance settings. Uncheck “Allow scheduled maintenance to wake up my computer at the scheduled time”, then click OK. Maintenance will run the next time the laptop is awake instead. Windows Update can also wake the machine to scan, download, and restart. Open Settings, Windows Update, Advanced options, then Active hours, and set the hours to match the times you are normally awake.
5. Silence scheduled tasks and apps
Some programs set their own wake timers that ignore the power-plan setting, so find them one by one. On Windows, right-click Start, open Terminal (Admin), and type Get-ScheduledTask | where {$_.settings.waketorun}. The list shows every task allowed to wake the computer. In Task Scheduler, open the task’s Properties, click the Conditions tab, and uncheck “Wake the computer to run this task”. Only change tasks you recognize, such as a backup or antivirus scan. Cloud apps are frequent offenders too: move the sync window in OneDrive, Google Drive, or Dropbox to daytime hours.
6. Fix the Mac settings that wake it
MacBooks have their own wake triggers. Start with the log: open Terminal and type pmset -g log | grep -i “wake”. Look for a Bluetooth device, a scheduled wake, or “RTC” (a real-time clock alarm). Type pmset -g sched to see scheduled wakes, and sudo pmset schedule cancelall to clear them. Next, turn off Power Nap, which lets a sleeping Mac check mail and run Time Machine backups. In System Settings, Battery, Options, turn off “Enable Power Nap” for battery power and plugged in. The related guide on why your laptop runs slow covers the heat problems that often travel with this one.
7. Unplug the dock and USB hubs
Docking stations and USB-C hubs can wake a laptop when power flickers, a monitor changes state, or a device on the hub sends a signal. Test it: sleep one night with nothing plugged in except the charger. If it stays asleep, plug things back one at a time until the wake-ups return. The last one back in is the culprit. A worn USB-C cable is a hidden cause too: one that briefly disconnects can wake the laptop, so try a different cable first. If a hub keeps waking the machine with its wake permission off, replace it: a good USB-C hub costs $40 to $80.
8. Check the BIOS and UEFI wake settings
Some wake triggers live in the firmware, below Windows and macOS. Restart the laptop and press the BIOS key shown on the first screen (usually F2, F10, F12, or Del) to open BIOS or UEFI setup. Look under Power Management or Advanced for “Wake on LAN”, “USB Wake Support”, “RTC Alarm”, and “Wake on lid open”. Turn off Wake on LAN and any RTC alarm unless you use remote wake, and turn off USB Wake Support if a dock or hub keeps waking the machine. If it still wakes with every setting off, a stuck power button, a swollen battery, or a faulty lid sensor may be the cause.
9. Use hibernate instead of sleep
If every fix has failed, switch to hibernate. It writes memory to disk and powers the laptop fully off, so no mouse, timer, or network packet can wake it. On Windows, open Terminal (Admin) and type powercfg /hibernate on. Hibernate now appears in the power menu, and you can set the power button or lid close to hibernate under Power Options. The trade-off is a slower wake-up, usually 10 to 20 seconds. Use hibernate when the laptop travels in a bag, and keep fast sleep for short breaks at your desk. On a Mac, shut it down before a long trip instead.
What it costs if a repair shop has to step in:
- Every fix in this guide: $0, just your time.
- Replacement wireless mouse or keyboard: $15 to $40.
- Replacement USB-C hub or dock: $40 to $150.
- Shop diagnostic: $49 to $99.
- Power button or lid sensor repair: $129 to $249.
- MacBook battery service (Apple): $129 to $199.
- Motherboard-level power fault: $200 to $379.
A laptop that wakes itself in a closed bag drains the battery and builds up heat with nowhere to go. If your bag ever feels warm when you open it, treat it as urgent: switch to hibernate or shut the laptop down before you pack it. The freezing guide helps if the wake-ups come with lock-ups too.
Conclusion
A laptop that wakes itself is almost always following an instruction, not breaking down. Find the instruction first with powercfg /lastwake on Windows or pmset -g log on a Mac, then turn off only the trigger that matches. Most readers fix it with one change: a mouse that can no longer wake the machine, a wake timer set to Disable, or a network adapter set to magic packets only.
If nothing in software stops it, check the BIOS settings, swap the dock and cables, and use hibernate when the laptop travels. Your laptop should stay asleep until you wake it, and once you find the trigger, it will.
