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: 27499
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: 25035
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: 24634
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: 27499
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: 24628
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: 25035
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: 24536
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 8.1 Enterprise
 
 

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
Comment

 Devices - Allow or Prevent to Wake Up Computer




Tutorial Tools



Similar help and support threads for2: Devices - Allow or Prevent to Wake Up Computer
Windows 7 Tutorial Category
Solved Prevent USB Devices from waking computer Hardware & Devices
Prevent computer access during repair? System Security
How can I prevent my keyboard from turning on my computer? Hardware & Devices
Windows is in sleep, other devices in the room wake it up... Hardware & Devices
Devices - See Devices that are able to Wake Up the Computer Tutorials
Wake from sleep when removing USB devices 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 11:47 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App