15

I have always had the same issue with all of my Windows 10 computers - it is essentially impossible to put the computer to sleep with the mouse. When I click Start > Power > Sleep, the computer goes to sleep instantly. Then the act of lifting my hand from the mouse moves the mouse enough to immediately wake the computer from sleep.

Usually, I'm able to fix this issue by disabling "Allow this device to wake the computer" in Device Manager (until the device manager decides that I'm using a new mouse due to system updates or using a different USB port).

However, on my Asus laptop, it seems impossible to actually stop the mouse from waking the laptop:

  • I have disabled "Allow this device to wake the computer" for all devices that have this option in the Device Manager
  • powercfg lastwake shows "Wake History Count - 0"
  • powercfg -devicequery wake_armed shows "NONE"
  • There are no options related to power management/wake-from-sleep in the ASUS UEFI

I can put the computer to sleep via the keyboard or by folding the lid as a workaround, but inevitably at some point the mouse will randomly decide that it's moved at least 1/600th of an inch and the computer will wake up. The only real solution I've found is to unplug the mouse before putting the computer to sleep, which is rather inconvenient.

Are there any additional steps that I can take to prevent the mouse from ever waking the computer? I am looking for a solution that does not require any third-party software.

user45623
  • 397
  • 3
  • 5
  • 17

3 Answers3

8

try this

ou mentioned wireless devices in your bag. The laptop with the lid down can wake from sleep. After the time expires from no activity, the laptop goes to sleep. The length is determined by the power settings in the power control panel. This explains the battery drain, since the fan runs full speed to cool the CPU.

You could run cmd.exe as administrator to get around permission errors. But, this does not always work. A better solution is running psexec which makes you localservice. This does not have permission issues removing devices that wake from sleep.

Here is the link https://technet.microsoft.com/en-us/sysinternals/bb896649.aspx or http://download.sysinternals.com/files/PSTools.zip to psexec, part of the Microsoft sysinternals.

Use

psexec -i -d -s cmd.exe to gain access to localservice. From there run:

powercfg.exe /DEVICEQUERY wake_armed It shows a list of devices that can wake the laptop from sleep. I did this on all my laptops. Each one had different devices that could wake it from sleep. Now, to be safe, I removed all of them so that nothing could wake it up. Remove as many as you like.

Run this command to remove a device:

powercfg.exe /DEVICEDISABLEWAKE "your device string goes here" Like

powercfg.exe /DEVICEDISABLEWAKE "HID-compliant mouse (001)" I ran this for each one and verified by running

powercfg.exe /DEVICEQUERY wake_armed again. This time I received None.

I have not had any of my laptops wake up since.

user3097514
  • 319
  • 3
  • 8
  • 2
    The first paragraph of your answer seems to be related to a different question because it has nothing to do with my question. The rest of your answer indicates you didn't fully read my question. – user45623 Sep 09 '22 at 17:13
  • Oh, I see, you literally just pasted [your answer to another question](https://superuser.com/questions/882965/windows-8-laptop-wakes-from-sleep-while-lid-closed) verbatim. That is not the correct way to use Stack Exchange. In the future, consider _linking to_ the other question instead. – user45623 Apr 21 '23 at 23:58
3

Just disable the HID device for it in device manager. No, I don't mean the mouse in device manager. It probably considers it a a keyboard. I made a video about it. Here you go. https://youtu.be/r7RGvhBKO5Y

B15hop
  • 31
  • 1
  • 1
    While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/late-answers/1161548) – DarkDiamond Dec 13 '22 at 07:32
  • Thanks! This was true for my Logitech mouse connected via Unifying USB receiver. The receiver can support a keyboard+mouse combo so it even kind of makes sense that it shows up as a keyboard. – mik01aj Mar 18 '23 at 21:26
  • This, plus disable all HID-compliant mouse's allow wake up worked for me, thanks ! – ITFan Aug 10 '23 at 02:58
0

Yeah, there is a bug in Windows and I don't know why they can't fix this! Even if you "unarm" the mouse to wake up the PC, it will still wake the PC from any mouse movement. Same goes if you disable the mouse from waking in the device manager. If you untick all devices related to mouse, somehow the signal from mouse will still be received by Windows in sleep state.

The only way I found is to disable all devices related to keyboard. Somehow mouse is paired to keyboard, so when you disable keyboard from waking, the mouse also doesn't wake. But then, you cannot anymore wake up the PC by yourself. Since the bug isn't fixed, not even in Windows 11, your only option is to

  1. live with a waking PC
  2. Buy a new good mouse that isn't shaking the sensor
  3. Disable the keyboard from waking, which will disable the mouse as well automatically.
  4. There is also untested option where some people claim to be able to use a script that disables the mouse device or mouse bluetooth hub before the pc goes to sleep and re-enables the devices when the pc wakes up.
Rohit Gupta
  • 2,721
  • 18
  • 27
  • 35
PunkoreD
  • 1
  • 1