How to Prevent Windows from Waking Up from Sleep Mode via Mouse, Touchpad, or Keyboard

If you've noticed that your computer frequently wakes up from sleep mode due to accidental mouse movements, touchpad taps, or key presses, it might be helpful to disable this function. Doing so can help avoid unintentional wake-ups and save laptop battery power. Let’s go over how to do this in Windows.

1. Disabling Wake-Up via Mouse

  1. Press Win + R to open the "Run" dialog, type devmgmt.msc, and press Enter to open the Device Manager.
  2. In the device list, find Mice and other pointing devices and expand it.
  3. Locate your mouse, right-click on it, and select Properties.
  4. Go to the Power Management tab.
  5. Uncheck the option Allow this device to wake the computer and click OK.

2. Disabling Wake-Up via Touchpad

On some laptops, the touchpad can also wake up the computer. Follow the same steps as for the mouse:

  1. Locate the touchpad in Device Manager under Mice and other pointing devices or HID Devices.
  2. Open Properties and on the Power Management tab, uncheck the option to allow wake-up.

3. Disabling Wake-Up via Keyboard

  1. In Device Manager, find and expand the Keyboards section.
  2. Locate the connected keyboard, right-click on it, and select Properties.
  3. In the Power Management tab, uncheck Allow this device to wake the computer and apply the changes.

4. Checking and Managing Wake-Up Devices via Command Prompt

If you’d like to quickly check which devices can wake the computer, use the Command Prompt:

powercfg -devicequery wake_armed

This command lists all devices with permission to wake the system. To disable wake-up for a specific device, run this command:

powercfg -devicedisablewake "Device Name"

Example: powercfg -devicedisablewake "HID Keyboard"