Devices - Allow or Prevent to Wake Up Computer

Page 1 of 2 12 LastLast
    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
    Designer Media Ltd


    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.





    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)
    Devices - Allow or Prevent to Wake Up Computer-cmd-1.jpg
    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)
    Devices - Allow or Prevent to Wake Up Computer-device_manager-1.jpg
    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)
    Devices - Allow or Prevent to Wake Up Computer-device_manager-2.jpg
    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)
    Devices - Allow or Prevent to Wake Up Computer-cmd-1.jpg
    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"
    Devices - Allow or Prevent to Wake Up Computer-cmd_prevent.jpg
    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)
    Devices - Allow or Prevent to Wake Up Computer-device_manager-1.jpg
    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"
    Devices - Allow or Prevent to Wake Up Computer-cmd-allow.jpg
    C) If opened from step 3A, you can close Device Manager now.
    4. When finished, close the elevated command prompt.
    That's it,
    Shawn







  1. foe
    Posts : 73
    Windows 7 x64
       #1

    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 Computer


  2. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #2

    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 Computer


  3. Posts : 1
    windows 7 64 bit
       #3

    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 device
    Standard PS/2 Keyboard
    Turn off Power Management wake up event for the HID Keyboard device. (The HID mouse turned off also)
      My Computer


  4. Posts : 1
    Windows 7 Pro (x86)
       #4

    Just wanted to say thanks for the tutorial! Option One, Step 2 helped me to discover and correct the cause of my Win 7 PC intermittently freezing when manually going to S3 sleep (monitor goes to standby, fans and power keep running, need to hard reset).

    This issue that was described by the last poster turned out to be my problem as well.

    orcmansao said:
    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)
    Sleep has always worked reliably for me until I had recently replaced a wired mouse with a Logitech M510 wireless mouse. I kept my wired keyboard in place. The M510 comes with a wireless USB unified transceiver capable of supporting a wireless keyboard and mouse, but no wireless keyboard accompanied the mouse.

    What I did not know until using your tutorial, was that the wireless USB dongle also installs a "HID Keyboard Device" driver anyway, and by default it is set to "Allow this device to wake the computer". I had turned this off on the mouse, but did not notice the additional phantom keyboard until running the powercfg command.

    Unchecking "Allow this device to wake the computer" has solved this issue for me.
      My Computer


  5. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #5

    I'm glad it could help zzzoom, and welcome to Seven Forums. :)
      My Computer


  6. apb
    Posts : 78
    win 7 pro x64
       #6

    Doesn't work for me.


    Alas, although I can get this to work for a USB mouse, it won't work for the exact same model mouse connected to a PS/2 port, even though device manager does present the wake checkbox. Also, using powercfg from the command line does not work either, although it looks like it has. This is for win 7 64 bit. An Intel chipset on a 2012 HP 6300 machine.

    Does this sound like (a) bug in chipset driver, (b) hardware bug, (c) I'm doing something wrong.

    If (c), note that I have admin privilege and powercfg behaves as expected, but the mouse always will bring the machine out of sleep. All works just fine with the USB mouse. Also, failure to work even after reboot.

    Any ideas?

    --peter
      My Computer


  7. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #7

    Hey Peter, :)

    In addition, check you BIOS settings to see if it may have an option to disable for wake by mouse.
      My Computer


  8. apb
    Posts : 78
    win 7 pro x64
       #8

    Thanks. I had checked the bios, and I did not find any such setting. I suspect it is a chipset driver bug, or maybe a bios bug. Probably this feature is not exercised often and therefore did not get attention. I'll have to look around and see if I can find a newer chipset driver(s). There is a newer version of bios that I will have to flash at some point.
      My Computer


  9. Posts : 1
    64bit
       #9

    I dont have permissions?


    It says i dont have permissions to do it. And in device manager theres no power management tab.I should be an administrator. I am confused i made another user and checked administrator box or what it was and its not working there eighter.
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About 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 17:39.
Find Us