How to Allow or Prevent Devices to Wake Up Computer
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.
You will need to be logged in as an administrator to be able to do this tutorial.
OPTION ONE
Using Device Manager
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)
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)
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)
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
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)
B) In the elevated command prompt, type in the command below and press enter.
:warn: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"

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)
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"

C) If opened from step 3A, you can close Device Manager now.
4. When finished, close the elevated command prompt.
That's it,
Shawn
Related Tutorials
- How to Enable or Disable Windows Media Center Updates to Wake Up the Computer
- How to See a List of Devices that are able to Wake Up the Computer
- How to See What Woke Up Your Computer Last
- How to Read the Wake Source Log in Event Viewer for Vista, Windows 7, and Windows 8
- How to See Available Sleep States on Your Windows 8 PC
Last edited: