Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: USB Keyboard and Mouse Wakeup

29 Jul 2015   #1
Lister Of Smeg

Windows 7 Ultimate x64 SP1
 
 
USB Keyboard and Mouse Wakeup

I'm using Windows 7 x64 Ultimate and I would like some help from a Windows 7 Guru with Windows 7 power saving defaults.

The problem that I am having is that my USB keyboard and mouse both default to wake up after the drivers have installed which gets annoying having to keep remembering to disable the wake up in device manager. Whenever either the keyboard or mouse are unplugged and replugged they default to waking up the computer. I keep getting my PC waking up whenever the mouse is moved or the keyboard is touched.

I would rather have the defaults set to wakeup disabled.

Is this possible to do? Any way around this except for not unplugging them? I cannot believe that this default behaviour is acceptable to most people except for the extremely lazy.


My System SpecsSystem Spec
.
29 Jul 2015   #2
GokAy

Windows 7 Ultimate x64 SP1
 
 

Try disabling them in BIOS - Power management menu. "USB Wake Up from S3" perhaps. Maybe your BIOS has a similar entry.
My System SpecsSystem Spec
29 Jul 2015   #3
Ranger4

Windows 7 Home Premium 64 bit sp1
 
 

Just as a matter if interest, how do you wake the computer if have both of these methods switched off?.
My System SpecsSystem Spec
.

30 Jul 2015   #4
GokAy

Windows 7 Ultimate x64 SP1
 
 

Kiss it good morning?

How about power button? (serious question though, I don't use sleep so no experience with it)
My System SpecsSystem Spec
30 Jul 2015   #5
Lister Of Smeg

Windows 7 Ultimate x64 SP1
 
 

Thanks for the suggestion GokAy, I don't think that my Bios has such an option but I will check when I next reboot. I think that this needs to be solved from the driver level, unless there is some registry tweak that can force the driver to do it by default. It might need a tweak to the driver but seeing as it is a standard M$ driver, doing that represents a problem. Unless the driver could be altered and then installed. However this is all wild guessing ATM.

BTW, yes it's one of the few uses for the power button and I don't like letting things go to waste.
My System SpecsSystem Spec
30 Jul 2015   #6
GokAy

Windows 7 Ultimate x64 SP1
 
 

Hmm, found this Prevent a Mouse from Waking Windows 7 up from Sleep Mode
Keyboard has the same settings too (I have 5 HID Keyboard Device - 2 of them has the setting)

You can just do it from Device Manager by the way - Power Management tab
My System SpecsSystem Spec
30 Jul 2015   #7
Lister Of Smeg

Windows 7 Ultimate x64 SP1
 
 

Yes, I did mention that I could disable it and that is not the problem. It's that if the keyboard/mouse are unplugged and replugged, windows re-installs the driver and forgets the disabled wake up and then I get the mouse waking the PC because I forget to disable it again.

I am looking for a driver to see if I can make any modifications to prevent the default behaviour.
My System SpecsSystem Spec
30 Jul 2015   #8
GokAy

Windows 7 Ultimate x64 SP1
 
 

Hmm, I may have a workaround:
in cmd:
Code:
powercfg devicequery wake_armed
will give you the devicenames that will wake the computer.

Make a batch file ex. sleep.bat:
Code:
powercfg devicedisablewake devicename#1
powercfg devicedisablewake devicename#2
powercfg devicedisablewake devicename#3
Then get https://win7suspendresume.codeplex.com/ and select sleep.bat for Suspend action, so just before every time you go to sleep, they are auto-disabled.

Would this work?

Note: I see 4 devices that can wake my PC. 2 keyboards, 1 mouse and the Ethernet card. So 3 devices to disable. Yours may be different.

Edit: I got the idea from power management - How to disallow USB devices to wake the computer by default in Windows 7 - Super User, and completed and combined with suspend/restore app. Hope it works for you. I don't use sleep so can't test.
My System SpecsSystem Spec
30 Jul 2015   #9
Lister Of Smeg

Windows 7 Ultimate x64 SP1
 
 

I have tried the first cmd you posted and it did not show anything which is expected because everything was disabled. However after enabling the wakeup for the mouse and re-running it it does list the mouse.

I have downloaded the program and tried it but it is not doing the job. My PC enters sleep very quickly and the script never has time to complete even if I set it to wait. Therefore the device wakeup do not get disabled until after my PC resumes. The script is taking about 15-16 seconds to run which seems very slow. The powercfg command runs very slowly, even the first one you posted took a lot of seconds to run.

sleep.bat:WaitForExit

The command window is opening at suspend, I do see it just before my PC sleeps, but the script is not completing so it does not stop the re-awaking. Not until afterwards when my system resumes. I did check device manager and the devices wake up is disabled.

Anyway it's getting very late so I will have to resume this after sleep. I just hope there is no unplanned wake up enabled. lol
My System SpecsSystem Spec
31 Jul 2015   #10
GokAy

Windows 7 Ultimate x64 SP1
 
 

I will try this later when I come home.

The first command (listing devices) is instant for me by the way. I will try disabling later as I mentioned.

--Make sure you are running bat with suspend and not resume in the meanwhile.-- I see you set it up correctly, try the batch file manually and see how long it takes.
My System SpecsSystem Spec
Reply

 USB Keyboard and Mouse Wakeup




Thread Tools Search this Thread
Search this Thread:

Advanced Search



Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 21:11.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App