Have you ever wondered why your PC wakes up unexpectedly from sleep mode? It’s because of one of your hardware devices like the network card, mouse, keyboard, etc. For example, if your mouse supports Wake on Mouse, moving or pressing the mouse button will wake up the computer. Similarly, if your network card supports Wake on LAN, the PC will wake up on a magic packet, sometimes even randomly. In this article, we’ll show you a simple way to find all the hardware devices capable of waking your PC from sleep. Let’s get started.
Note: The steps below are tested to work on Windows 11, 10, 8, and 7.
Steps to Identify Hardware Devices Capable of Waking Your PC from Sleep
To find all the devices that can wake your PC, we are going to use the ‘powercfg’ command. Here’s how.
First, open the Start menu by pressing the Windows logo key on your keyboard.
In the Start menu, search for Command Prompt, right-click on the result, and choose Run as Administrator.
In the Command Prompt window, run the following command.
powercfg -devicequery wake_armed
This command will list all the hardware devices that can wake your computer from sleep. For instance, as you can see from the screenshot below, both my network cards (Ethernet & WiFi) are capable of waking my system from sleep.
Stopping a Device from Waking Your PC
Once you have the list of all devices that are capable of waking your PC, you can disable that functionality from the Device Manager. That way, they can no longer wake your PC randomly. Here’s how.
Right-click on the Windows logo on the taskbar and select Device Manager.
In the Device Manager, find the device, right-click on it, and select Properties.
Navigate to the Power Management tab and uncheck the Allow this device to wake the computer checkbox.
Click the OK button.
That’s it. That device will no longer wake your computer from sleep. If you have more devices, follow the same steps for all of them.
And there you have it! If your computer is randomly waking up from sleep, follow the steps shown above to identify all the devices capable of waking your PC and disable that feature via Device Manager.