sodcalculator

10 Tech How-To

Fix Computer Waking Up From Sleep: Step-by-Step

Guide 10-42810 · Updated · Step by step

If your computer keeps waking up from sleep on its own—often in the middle of the night—it’s usually caused by a device, a scheduled task, or a Windows setting that’s allowed to wake the system. This guide walks you through identifying the culprit and disabling it, so your PC stays asleep until you wake it. You’ll need Windows 10 or 11 and administrator access.

What You’ll Need

  • Administrator account on your PC
  • Access to Device Manager and Command Prompt (both built into Windows)
  • About 10–15 minutes

Step-by-Step

  1. Find out what woke your computer last. Open Command Prompt as administrator (press Windows + X, select Terminal (Admin) or Command Prompt (Admin)). Type the following and press Enter:
    powercfg /lastwake
    This shows the last device or event that woke the system. Note the device name (e.g., “Intel(R) I211 Gigabit Network Connection”).
  2. See all devices that can wake the computer. Type:
    powercfg /devicequery wake_armed
    This lists every device currently allowed to wake the PC. Common culprits: network adapters, mice, keyboards, and USB controllers.
  3. Disable wake for a specific device. Open Device Manager (Windows + X → Device Manager). Find the device from step 1 (or any suspicious one), right-click it, select Properties, go to the Power Management tab, and uncheck Allow this device to wake the computer. Click OK. Repeat for any other devices you want to block.
  4. Disable wake timers. Wake timers are scheduled tasks that can wake your PC (e.g., Windows Update, maintenance). Go to Control Panel → Power Options → Change plan settings (next to your active plan) → Change advanced power settings. Expand Sleep → Allow wake timers and set it to Disable for both “On battery” and “Plugged in.” Click Apply and OK.
  5. Check for scheduled tasks that wake the PC. Open Task Scheduler (search for “Task Scheduler”). Go to Task Scheduler Library. Click the Conditions tab on any task and look for Wake the computer to run this task. If you find one that’s not essential, uncheck that box. Common ones include Windows Update and maintenance tasks.
  6. Disable fast startup (if the issue persists). Fast startup can sometimes cause wake issues. Go to Control Panel → Power Options → Choose what the power buttons do → Change settings that are currently unavailable. Uncheck Turn on fast startup and save changes.
  7. Update drivers. Outdated or buggy drivers (especially network and chipset) can cause random wakes. In Device Manager, right-click the device and select Update driver → Search automatically for drivers. If that finds nothing, check your PC manufacturer’s website for the latest drivers.
  8. Run a full power diagnostic (optional). In Command Prompt (admin), type powercfg /energy and press Enter. Wait 60 seconds, then open the generated report (usually at C:\Windows\System32\energy-report.html) in a browser. Look for errors or warnings related to wake sources.

Common Mistakes

  • Disabling all wake devices – This can prevent you from waking the PC with a keyboard or mouse. Only disable the ones that are causing problems.
  • Ignoring network adapters – Many people forget that network cards can wake the PC for “magic packets” or network activity. If you don’t need remote wake, disable it.
  • Not checking both battery and plugged-in settings – Wake timers and device settings can differ between the two. Make sure you change both.
  • Assuming it’s a hardware issue – Often it’s a software setting, not a faulty component. Try these steps before replacing anything.

Tips

  • Use powercfg /lastwake every time it happens again—it’s the fastest way to identify the new culprit.
  • If you have a laptop, check that the lid close action is set to “Sleep” (not “Do nothing”) in Power Options.
  • Keep your BIOS/UEFI updated. Some wake issues are fixed by motherboard firmware updates.
  • If you use a USB mouse that’s sensitive, consider disabling wake for it and using the keyboard to wake instead.

Troubleshooting

If the computer still wakes up after following all steps:

  • Check the event log. Open Event Viewer (eventvwr.msc), go to Windows Logs → System, and filter by source “Power-Troubleshooter” (Event ID 1). This shows the exact wake source.
  • Try a clean boot. Disable startup programs and non-Microsoft services temporarily to see if a third-party app is waking the PC. Use msconfig (System Configuration) to hide Microsoft services and disable all others, then restart and test.
  • Check for a BIOS setting. Some systems have “Wake on LAN” or “USB Wake” enabled in BIOS. Restart, press the key to enter setup (usually Del, F2, or F12), and look for power management options. Disable any wake features you don’t need.
  • If you have a desktop, check the power supply and motherboard. A failing PSU or a shorted USB port can cause random wakes. Try unplugging all USB devices and see if the issue stops.
  • If nothing works, consider a “hybrid sleep” or “hibernate” instead. You can change what the power button does to hibernate, which uses less power and is less prone to wake issues.

Frequently Asked Questions

Why does my computer wake up at the same time every night?

This is usually a scheduled task like Windows Update or a maintenance task. Check Task Scheduler for tasks with “Wake the computer to run this task” enabled, and disable that option.

Can a mouse or keyboard wake the computer?

Yes. Any USB device can be allowed to wake the PC. Check Device Manager under Power Management for each device and uncheck the wake option if you don’t want it to.

Is it safe to disable all wake timers?

Generally yes, but Windows Update may not install automatically if you disable all wake timers. You can still update manually or set a specific time when the PC is on.

How do I know which device woke my PC?

Run powercfg /lastwake in Command Prompt (admin). It will show the device name or event that caused the last wake.

Will updating drivers fix the issue?

Sometimes. Outdated or buggy drivers, especially for network adapters and graphics, can cause random wakes. It’s worth trying, but if the issue started after a recent update, you might need to roll back the driver instead.

Does “fast startup” cause wake problems?

In some cases, yes. Fast startup can interfere with sleep states. Disabling it is a simple test and won’t harm your PC, though boot times may be slightly longer.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →