How to Find What Wakes Your Computer from Sleep
In this article
Yes, you can identify what wakes your computer from sleep using built-in Windows tools like the Command Prompt and Event Viewer. This helps prevent unwanted wake-ups caused by peripherals, network activity, or scheduled tasks, improving power efficiency and security.
What You'll Need
- A Windows PC with administrator access
- Keyboard and mouse (preferably wired or known stable wireless)
- Access to Command Prompt and Event Viewer
Step-by-Step
- Open Command Prompt as an administrator. Press the Windows key, type "cmd", right-click on Command Prompt, and select "Run as administrator".
- In the Command Prompt window, type
powercfg /lastwakeand press Enter. This command reveals the last known device or event that woke your computer from sleep. The output will show a timestamp and the device (e.g., "Device: USB Mouse" or "Wake Source: Timer") that triggered the wake-up. - Review the result. If the wake source is listed as a timer, it may be a scheduled task. If it's a device, it could be a keyboard, mouse, network adapter, or other hardware.
- To see all devices currently allowed to wake the computer, type
powercfg /devicequery wake_armedand press Enter. This lists every device with wake permissions enabled. - For deeper analysis, open Event Viewer. Press Windows + R, type
eventvwr.msc, and press Enter. Navigate to Windows Logs > System. - In the right panel, click "Filter Current Log". In the "Event IDs" field, enter
1to filter for power-related events. These logs include system sleep and wake events, often showing the reason for wake-up. - Browse the filtered events. Look for entries with "Power-Troubleshooter" as the source and Event ID 1. Double-click an event to open its details. The description will state whether the system was woken by a device or timer, and often names the specific hardware or task responsible.
- To investigate timer-based wake-ups, return to Command Prompt and type
schtasks /query /fo LIST /v. This displays all scheduled tasks. Scan the list for tasks marked with "Wake the computer to run this task: Yes". - If a device is waking the system unexpectedly, disable its wake permission. Go to Device Manager (press Windows + X and select Device Manager), expand the relevant category (e.g., Mice and other pointing devices), right-click the device, select Properties, go to the Power Management tab, and uncheck "Allow this device to wake the computer".
- After making changes, test by putting the computer to sleep manually (Start > Power > Sleep) and observing if it wakes unexpectedly. Repeat the
powercfg /lastwakecommand after any unintended wake-up to verify if the source has changed.
Common Mistakes
- Running
powercfg /lastwakewithout administrator privileges, which may return incomplete or no data. - Disabling wake permissions for essential devices (like network adapters used for remote access) without considering the impact.
- Overlooking scheduled tasks as wake sources, especially those set by third-party software or Windows Update.
- Assuming a clean shutdown means no wake events occurred, when background timers or network packets can still trigger wake-ups.
- Ignoring BIOS/UEFI settings that allow wake-on-LAN or USB activity, which operate outside Windows device permissions.
Tips
- Use
powercfg /waketimersto list only active timers that can wake the system, making it easier to spot unnecessary tasks. - Label devices clearly in Device Manager to avoid disabling the wrong one (e.g., distinguish between multiple USB hubs or mice).
- Check your router settings if wake-on-LAN is enabled; network traffic can trigger wake-ups even if the adapter is disabled in Windows.
- Keep your system updated—some wake issues are resolved in driver or firmware updates.
- Use a wired keyboard and mouse during troubleshooting to rule out wireless interference or signal drift.
Troubleshooting
If the computer continues to wake unexpectedly, start by restarting and repeating the powercfg /lastwake command after each unintended wake-up. If no device or timer is listed, the wake event may not have been logged, possibly due to a power surge or firmware-level trigger. Check BIOS/UEFI settings for options like "Wake on LAN", "PCI-E Wake", or "USB Wake Support" and disable them if not needed. If Event Viewer shows no wake events, ensure the system is logging them by running powercfg /waketimers and verifying that the troubleshooter is active. If scheduled tasks are the cause, disable them in Task Scheduler (search for "Task Scheduler" and navigate to the task's properties) or set them to not wake the computer. If the issue persists, consider performing a clean boot to rule out third-party software interference. Remember that some wake-ups are normal (e.g., for updates), so monitor the pattern over time rather than reacting to single events.
Frequently Asked Questions
Can a network adapter wake my computer?
Yes, if wake-on-LAN or similar settings are enabled in both the adapter’s properties and BIOS. Disable "Allow this device to wake the computer" in Device Manager to prevent it.
Why does my computer wake up at the same time every day?
This is likely due to a scheduled task, such as Windows Update or a maintenance routine. Check Task Scheduler for tasks set to wake the system.
How do I stop my mouse from waking the computer?
Open Device Manager, find your mouse under "Mice and other pointing devices", right-click it, go to Properties > Power Management, and uncheck "Allow this device to wake the computer".
Does BIOS affect wake events?
Yes. BIOS settings like wake-on-LAN, USB power delivery, or PCIe wake support can override Windows settings. Access BIOS during boot (usually by pressing F2, Del, or Esc) and disable unnecessary wake options.
Can a keyboard stroke wake the computer?
Yes, if the keyboard is enabled to wake the system. Check its Power Management settings in Device Manager to control this behavior.
Is it safe to disable all wake timers?
Most are safe to disable, but some are needed for updates or backups. Review each timer’s description before disabling; critical ones are usually labeled with Microsoft or system service names.