USB Keyboard and Mouse Wakeup


  1. Posts : 30
    Windows 7 Ultimate x64 SP1
       #1

    USB Keyboard and Mouse Wakeup


    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


  2. Posts : 5,656
    Windows 7 Ultimate x64 SP1
       #2

    Try disabling them in BIOS - Power management menu. "USB Wake Up from S3" perhaps. Maybe your BIOS has a similar entry.
      My Computer


  3. Posts : 9,746
    Windows 7 Home Premium 64 bit sp1
       #3

    Just as a matter if interest, how do you wake the computer if have both of these methods switched off?.
      My Computer


  4. Posts : 5,656
    Windows 7 Ultimate x64 SP1
       #4

    Kiss it good morning?

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


  5. Posts : 30
    Windows 7 Ultimate x64 SP1
    Thread Starter
       #5

    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


  6. Posts : 5,656
    Windows 7 Ultimate x64 SP1
       #6

    Hmm, found this Prevent a Mouse from Waking Windows 7 up from Sleep Mode
    Keyboard has the same settings too (I have 5 HID Keyboard Device - 2 of them has the setting)

    You can just do it from Device Manager by the way - Power Management tab
      My Computer


  7. Posts : 30
    Windows 7 Ultimate x64 SP1
    Thread Starter
       #7

    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


  8. Posts : 5,656
    Windows 7 Ultimate x64 SP1
       #8

    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


  9. Posts : 30
    Windows 7 Ultimate x64 SP1
    Thread Starter
       #9

    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


  10. Posts : 5,656
    Windows 7 Ultimate x64 SP1
       #10

    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


 

  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 22:13.
Find Us