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: Devices - Allow or Prevent to Wake Up Computer


Devices - Allow or Prevent to Wake Up Computer

How to Allow or Prevent Devices to Wake Up Computer
Published by Brink
02 Nov 2010
Published by

How to Allow or Prevent Devices to Wake Up Computer

information   Information
This will show you how to allow or prevent devices installed on your computer to be able to wake up your computer from sleep in Vista, Windows 7, and Windows 8.

You will need to be logged in as an administrator to be able to do this tutorial.





OPTION ONE
Using Device Manager
1. Open the Control Panel (icons view), and click/tap on the Device Manager icon.

2. To Prevent a Device from Waking up the Computer
A) Check and see a list of your installed devices that are able to wake up the computer to help know what devices to set in Device Manager. (see screenshot below)
Name:  CMD-1.jpg
Views: 46156
Size:  36.0 KB
B) In Device Manager, expand the category (ex: Keyboards) that the device is under, then double click on the device (ex: Logitech HID-Compliant Keyboard). (see screenshot below)
Name:  Device_Manager-1.jpg
Views: 44190
Size:  75.5 KB
C) Click/tap on the Power Management tab, uncheck the Allow this device to wake the computer box, and click/tap on OK. (see screenshot below)
Name:  Device_Manager-2.jpg
Views: 43303
Size:  44.2 KB
D) Close the command prompt.
3. To Allow a Device to Wake up the Computer
A) In Device Manager, expand the category (ex: Keyboards) that the device is under, then double click on the device (ex: Logitech HID-Compliant Keyboard). (see screenshot below step 2B)

C) Click/tap on the Power Management tab, check the Allow this device to wake the computer box, and click/tap on OK. (see screenshot below step 2C)
4. When finished, close Device Manager.



OPTION TWO
Using an Elevated Command Prompt
1. Open an elevated command prompt in Vista, Windows 7, or Windows 8.

2. To Prevent a Device from Waking up the Computer
A) Check to see a list of your installed devices that are able to wake up the computer to help know the device name (ex: Logitech HID-Compliant Keyboard) to use in the command below. (see screenshot below)
Name:  CMD-1.jpg
Views: 46156
Size:  36.0 KB
B) In the elevated command prompt, type in the command below and press enter.
WARNING: Be sure to write this device name down in case you want to be able to enable it again in step 3. Once you disable it, it will not be listed again in step 2A until enabled again.
powercfg -devicedisablewake "exact name of device listed in step 2A"

For example, for the Logitech HID-Compliant Keyboard device listed in step 2A, I would type this command below exactly and press enter.

Code:
 
powercfg -devicedisablewake "Logitech HID-Compliant Keyboard"
Name:  CMD_Prevent.jpg
Views: 43171
Size:  34.0 KB
3. To Allow a Device to Wake up the Computer
A) If you did not write down the device name (ex: Logitech HID-Compliant Keyboard) from step 2 that you disabled, then you can also look in Device Manager to see the name of the device. (see screenshot below)
Name:  Device_Manager-1.jpg
Views: 44190
Size:  75.5 KB
B) In the elevated command prompt, type in the command below and press enter.
powercfg -deviceenablewake "exact name of device listed in step 2A or Device Manger"

For example, for the Logitech HID-Compliant Keyboard device, I would type this command below exactly and press enter.

Code:
 
powercfg -deviceenablewake "Logitech HID-Compliant Keyboard"
Name:  CMD-Allow.jpg
Views: 43074
Size:  33.3 KB
C) If opened from step 3A, you can close Device Manager now.
4. When finished, close the elevated command prompt.
That's it,
Shawn




23 Mar 2013   #1
foe

Windows 7 x64
 
 

Brink I have a question about this:
When I remove the Allow this device to wake the computer checkbox from a keyboard and I remove the keyboard and connect it to a different usb port, it is once again set to wake the computer unless I put it back in the original port.

It seems like this setting is configured on a 'port'-basis rather then (just) a 'device'-basis and it's default configuration is to 'allow' the wake up.

Should I connect it to all of the ports and disable all of them, or is there a general setting for this? Is there a way to change this default behaviour? As this would be way faster.


My System SpecsSystem Spec
23 Mar 2013   #2
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

Hello Sjoerd,

You might also check your BIOS settings to see if it may have an option to disable allowing the keyboard to wake the system to see if that may apply it universally.

If not, then you may need to connect it to each port to wash, rinse, and repeat.
My System SpecsSystem Spec
27 Jun 2015   #3
orcmansao

windows 7 64 bit
 
 

Windows 7, standard PS/2 keyboard, usb wireless mouse
HID mouse driver Power Management wake up event turn off didn't work.
The usb wireless dongle has also a keyboard HID driver (even if a wireless keyboard isn't present).
Solution: Device Manager > Keyboards has two devices:HID Keyboard deviceStandard PS/2 Keyboard
Turn off Power Management wake up event for the HID Keyboard device. (The HID mouse turned off also)
My System SpecsSystem Spec
.


Comment

 Devices - Allow or Prevent to Wake Up Computer




Tutorial Tools





Similar help and support threads
Windows 7 Tutorial Category
Sidebar prevent computer shutdown!
After a fresh SP1 install (with all updates) i encounter this (quite common apparently..) which is the sidebar freezing during shutdown and altering its process. So far i couldn't fix this. Probably some will respond "just turn off that sh**" but no i have some nice (and clean) widget i wanna...
General Discussion
Prevent USB Devices from waking computer
Hi I want to prevent all USB devices from waking up the computer. This is a HP 6720s notebook and it's very annoying it wakes up when I disconnect the USB mouse etc... I wonder if it's possible to wake up the computer by pressing a key on the internal keyboard. Currently I can only wake...
Hardware & Devices
Prevent computer access during repair?
My computer is going back to the supplier for a the CPU, heatsink and fan to be replaced due to CPU overheating. I am running Windows 7 Premium 64 and currently do not have an access password. What is the best way to prevent access to my files whilst it is away, but providing the supplier with...
System Security
Windows is in sleep, other devices in the room wake it up...
The problem: I shut the computer by putting it to the sleep mode. And then, I switch off the lamp on the table, or the bigger lights in the room by using the switch on the wall, or disconnect some device (which is not a part of the computer) from the wall. ... and the computer wakes up as I...
Hardware & Devices
Devices - See Devices that are able to Wake Up the Computer
How to See a List of Devices that are able to Wake Up the Computer This will show you how to see a list of devices installed on your computer that are configured to be able to wake up your computer from sleep in Vista, Windows 7, and Windows 8. Here's How:
Tutorials
Wake from sleep when removing USB devices
I don't really know where to put this question, but here goes.. I have an Acer Aspire laptop with Win7 Professional x64 on it. Whenever my laptop goes to sleep, then I remove any USB device, a mouse or flash drive, it automatically wakes from sleep. Any way I can prevent this? Thanks.
General Discussion

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 13:29.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App