USB Keyboard and Mouse Wakeup

Lister Of Smeg

New member
Local time
12:12 PM
Messages
30
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Self-Built
OS
Windows 7 Ultimate x64 SP1
CPU
[1] Intel i7-3770K OC to 4.6GHz [2] Intell Q9450 Core2 Quad
Motherboard
[1]Asus P8Z77-V Premium [2] Gigabyte GA-X48-DS5
Memory
[1] 2x4GB Samsung DDR3 [2] 1xReaper 2GB 8500+2x1GB 6400 DDR2
Graphics Card(s)
[1] Zotac GT240 1GB [2] Gigabyte HD8500 512MB
Sound Card
On board
Monitor(s) Displays
VGA D-Sub CRT (Dead)
Hard Drives
500GB Samsung 850 EVO SSD
1x1TB Samsung
1x500GB Samsung
1x500GB WD
2x250GB Seagate
Startech SDOCK2U33HFW USB 3.0 Dual Docking Station
PSU
Corsair HX520W (Faulty) Tagan 480W
Cooling
Thermalright Venomous-X dual fan & OCZ
Keyboard
Microsoft Internet Keyboard Pro (Dead) Microsoft Wired 600
Mouse
i-Rocks USB Mouse
Internet Speed
ADSL 2+
Antivirus
MSE
Browser
Pale Moon x64
Other Info
Video Encoding Rig
Try disabling them in BIOS - Power management menu. "USB Wake Up from S3" perhaps. Maybe your BIOS has a similar entry.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Ultimate x64 SP1
CPU
AMD Phenom 2 1090T
Motherboard
Gigabyte GA-890FXA-UD5
Memory
2x8GB Kingston HyperX Fury Black 1600Mhz Unganged
Graphics Card(s)
MSI GTX 970 Gaming 4G
Sound Card
Realtek On-Board HD 7.1 Audio / Logitech G35
Monitor(s) Displays
3xAcer GD245HQ
Screen Resolution
1920x1080
Hard Drives
Samsung 850 Pro 512GB SSD - OS /
WD Caviar Black SATA 3 - 1 TBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GB - Internal Backup /
Seagate Barracude SATA 3 - 3TB - External Backup/ Sync
PSU
HighPower 1000W
Case
Cooler Master HAF 932
Cooling
Noctua NH-D14
Keyboard
Logitech G19
Mouse
Logitech G500
Internet Speed
100/4 Mbit Cable (100GB quota)
Antivirus
ZoneAlarm Extreme Security / MBAM Pro / MBAE Free / SAS Free
Browser
IE 11 - Firefox - Chrome
Other Info
Logitech F710/ G27/ G940/ Z5500 // TrackIR 5 // Nvidia 3D Surround Vision
Just as a matter if interest, how do you wake the computer if have both of these methods switched off?.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built using existing case
OS
Windows 7 Home Premium 64 bit sp1
CPU
Intel i5 3570 3.4Ghz Ivy Bridge SKT 1155 quad core
Motherboard
Gigabyte Z77-HD3 SKT 1155 2xSata 3, 4x USB 3.0
Memory
G-Skill Rip Jaws 16Gb (8x2) DDR3 -1600 PC3 12800 CL 10 red
Graphics Card(s)
Gigabyte NVIDIA GT610 1Gb DDR3 810/1200 PCI-E 2.0 Silent
Sound Card
NVIDIA High Definition & Realtech High Definition Audio
Monitor(s) Displays
2 x Philips 226V4L 16:9 aspect ratio
Screen Resolution
1920 x 1080 HD
Hard Drives
Samsung 840 Pro 256gb SSD, SATA 3.
Hitachi Touro Portable 1tb, USB 3.0 HDD used for image b/ups.
PSU
Corsair VS450
Case
Codeng
Cooling
PSU fan & CPU fan
Keyboard
Logitech
Mouse
Logitech Wireless trackball M570
Internet Speed
Wireless 3G. 3mg down & 550kb up.
Antivirus
Bitdefender Internet Security 2020
Browser
Opera (Current Version) & Firefox
Other Info
MS Office 2013 Pro. Davis weather station software. MGE Nova 600 avr UPS.
Kiss it good morning? :D

How about power button? (serious question though, I don't use sleep so no experience with it)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Ultimate x64 SP1
CPU
AMD Phenom 2 1090T
Motherboard
Gigabyte GA-890FXA-UD5
Memory
2x8GB Kingston HyperX Fury Black 1600Mhz Unganged
Graphics Card(s)
MSI GTX 970 Gaming 4G
Sound Card
Realtek On-Board HD 7.1 Audio / Logitech G35
Monitor(s) Displays
3xAcer GD245HQ
Screen Resolution
1920x1080
Hard Drives
Samsung 850 Pro 512GB SSD - OS /
WD Caviar Black SATA 3 - 1 TBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GB - Internal Backup /
Seagate Barracude SATA 3 - 3TB - External Backup/ Sync
PSU
HighPower 1000W
Case
Cooler Master HAF 932
Cooling
Noctua NH-D14
Keyboard
Logitech G19
Mouse
Logitech G500
Internet Speed
100/4 Mbit Cable (100GB quota)
Antivirus
ZoneAlarm Extreme Security / MBAM Pro / MBAE Free / SAS Free
Browser
IE 11 - Firefox - Chrome
Other Info
Logitech F710/ G27/ G940/ Z5500 // TrackIR 5 // Nvidia 3D Surround Vision
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Self-Built
OS
Windows 7 Ultimate x64 SP1
CPU
[1] Intel i7-3770K OC to 4.6GHz [2] Intell Q9450 Core2 Quad
Motherboard
[1]Asus P8Z77-V Premium [2] Gigabyte GA-X48-DS5
Memory
[1] 2x4GB Samsung DDR3 [2] 1xReaper 2GB 8500+2x1GB 6400 DDR2
Graphics Card(s)
[1] Zotac GT240 1GB [2] Gigabyte HD8500 512MB
Sound Card
On board
Monitor(s) Displays
VGA D-Sub CRT (Dead)
Hard Drives
500GB Samsung 850 EVO SSD
1x1TB Samsung
1x500GB Samsung
1x500GB WD
2x250GB Seagate
Startech SDOCK2U33HFW USB 3.0 Dual Docking Station
PSU
Corsair HX520W (Faulty) Tagan 480W
Cooling
Thermalright Venomous-X dual fan & OCZ
Keyboard
Microsoft Internet Keyboard Pro (Dead) Microsoft Wired 600
Mouse
i-Rocks USB Mouse
Internet Speed
ADSL 2+
Antivirus
MSE
Browser
Pale Moon x64
Other Info
Video Encoding Rig

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Ultimate x64 SP1
CPU
AMD Phenom 2 1090T
Motherboard
Gigabyte GA-890FXA-UD5
Memory
2x8GB Kingston HyperX Fury Black 1600Mhz Unganged
Graphics Card(s)
MSI GTX 970 Gaming 4G
Sound Card
Realtek On-Board HD 7.1 Audio / Logitech G35
Monitor(s) Displays
3xAcer GD245HQ
Screen Resolution
1920x1080
Hard Drives
Samsung 850 Pro 512GB SSD - OS /
WD Caviar Black SATA 3 - 1 TBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GB - Internal Backup /
Seagate Barracude SATA 3 - 3TB - External Backup/ Sync
PSU
HighPower 1000W
Case
Cooler Master HAF 932
Cooling
Noctua NH-D14
Keyboard
Logitech G19
Mouse
Logitech G500
Internet Speed
100/4 Mbit Cable (100GB quota)
Antivirus
ZoneAlarm Extreme Security / MBAM Pro / MBAE Free / SAS Free
Browser
IE 11 - Firefox - Chrome
Other Info
Logitech F710/ G27/ G940/ Z5500 // TrackIR 5 // Nvidia 3D Surround Vision
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Self-Built
OS
Windows 7 Ultimate x64 SP1
CPU
[1] Intel i7-3770K OC to 4.6GHz [2] Intell Q9450 Core2 Quad
Motherboard
[1]Asus P8Z77-V Premium [2] Gigabyte GA-X48-DS5
Memory
[1] 2x4GB Samsung DDR3 [2] 1xReaper 2GB 8500+2x1GB 6400 DDR2
Graphics Card(s)
[1] Zotac GT240 1GB [2] Gigabyte HD8500 512MB
Sound Card
On board
Monitor(s) Displays
VGA D-Sub CRT (Dead)
Hard Drives
500GB Samsung 850 EVO SSD
1x1TB Samsung
1x500GB Samsung
1x500GB WD
2x250GB Seagate
Startech SDOCK2U33HFW USB 3.0 Dual Docking Station
PSU
Corsair HX520W (Faulty) Tagan 480W
Cooling
Thermalright Venomous-X dual fan & OCZ
Keyboard
Microsoft Internet Keyboard Pro (Dead) Microsoft Wired 600
Mouse
i-Rocks USB Mouse
Internet Speed
ADSL 2+
Antivirus
MSE
Browser
Pale Moon x64
Other Info
Video Encoding Rig
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Ultimate x64 SP1
CPU
AMD Phenom 2 1090T
Motherboard
Gigabyte GA-890FXA-UD5
Memory
2x8GB Kingston HyperX Fury Black 1600Mhz Unganged
Graphics Card(s)
MSI GTX 970 Gaming 4G
Sound Card
Realtek On-Board HD 7.1 Audio / Logitech G35
Monitor(s) Displays
3xAcer GD245HQ
Screen Resolution
1920x1080
Hard Drives
Samsung 850 Pro 512GB SSD - OS /
WD Caviar Black SATA 3 - 1 TBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GB - Internal Backup /
Seagate Barracude SATA 3 - 3TB - External Backup/ Sync
PSU
HighPower 1000W
Case
Cooler Master HAF 932
Cooling
Noctua NH-D14
Keyboard
Logitech G19
Mouse
Logitech G500
Internet Speed
100/4 Mbit Cable (100GB quota)
Antivirus
ZoneAlarm Extreme Security / MBAM Pro / MBAE Free / SAS Free
Browser
IE 11 - Firefox - Chrome
Other Info
Logitech F710/ G27/ G940/ Z5500 // TrackIR 5 // Nvidia 3D Surround Vision
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Self-Built
OS
Windows 7 Ultimate x64 SP1
CPU
[1] Intel i7-3770K OC to 4.6GHz [2] Intell Q9450 Core2 Quad
Motherboard
[1]Asus P8Z77-V Premium [2] Gigabyte GA-X48-DS5
Memory
[1] 2x4GB Samsung DDR3 [2] 1xReaper 2GB 8500+2x1GB 6400 DDR2
Graphics Card(s)
[1] Zotac GT240 1GB [2] Gigabyte HD8500 512MB
Sound Card
On board
Monitor(s) Displays
VGA D-Sub CRT (Dead)
Hard Drives
500GB Samsung 850 EVO SSD
1x1TB Samsung
1x500GB Samsung
1x500GB WD
2x250GB Seagate
Startech SDOCK2U33HFW USB 3.0 Dual Docking Station
PSU
Corsair HX520W (Faulty) Tagan 480W
Cooling
Thermalright Venomous-X dual fan & OCZ
Keyboard
Microsoft Internet Keyboard Pro (Dead) Microsoft Wired 600
Mouse
i-Rocks USB Mouse
Internet Speed
ADSL 2+
Antivirus
MSE
Browser
Pale Moon x64
Other Info
Video Encoding Rig
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Ultimate x64 SP1
CPU
AMD Phenom 2 1090T
Motherboard
Gigabyte GA-890FXA-UD5
Memory
2x8GB Kingston HyperX Fury Black 1600Mhz Unganged
Graphics Card(s)
MSI GTX 970 Gaming 4G
Sound Card
Realtek On-Board HD 7.1 Audio / Logitech G35
Monitor(s) Displays
3xAcer GD245HQ
Screen Resolution
1920x1080
Hard Drives
Samsung 850 Pro 512GB SSD - OS /
WD Caviar Black SATA 3 - 1 TBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GB - Internal Backup /
Seagate Barracude SATA 3 - 3TB - External Backup/ Sync
PSU
HighPower 1000W
Case
Cooler Master HAF 932
Cooling
Noctua NH-D14
Keyboard
Logitech G19
Mouse
Logitech G500
Internet Speed
100/4 Mbit Cable (100GB quota)
Antivirus
ZoneAlarm Extreme Security / MBAM Pro / MBAE Free / SAS Free
Browser
IE 11 - Firefox - Chrome
Other Info
Logitech F710/ G27/ G940/ Z5500 // TrackIR 5 // Nvidia 3D Surround Vision
Back
Top