/build/static/layout/Breadcrumb_cap_w.png

USB keyboard and mouse - Power saving problem

In Windows XP, is it any way to make the USB keyboard and mouse able to wake the computer.

When our computers are switching to energy saving (USB Keyboard and mouse) the mouse and keyboard cannot wake the computers.

In the device window, there is a switch to make those device enable to activate the computer when they are in power saving mode.

I ran a remon and found.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\HID\Vid_0624&Pid_0341&MI_00\7&1fe2ad22&0&0000\Device Parameters]
"Migrated"=dword:00000001
"WaitWakeEnabled"=dword:00000001

But it does not sound to be enough... Any idea?

0 Comments   [ + ] Show comments

Answers (1)

Posted by: M P 10 years ago
Purple Belt
0

This is quite an old post, but since it was never answered I figured I would go ahead and put out a solution that we use in our environment.

I am currently utilizing the PowerCfg utility for this.  With its multiple functions, you can actually set the devices to wake the computer like you were asking about.  To see a list of all available devices that are connected to your computer that are able to be setup to wake your computer from a sleep state you can use the command:

powercfg /devicequery wake_programmable

If your mouse and keyboard are capable of being setup to wake your computer, they should be listed here, as well as the other devices such as your network adapter(s).  Since we wanted to ability for our network adapters to wake the computers as well, I just used a FOR loop to process all of the listed devices to set the flag to make them wake the computer using the command, followed by the device name:

powercfg /deviceenablewake <Device Name>

You can put it all together in a one-liner that looks like this to perform the function:

FOR /F "delims=" %%a IN ('powercfg /devicequery wake_programmable') DO powercfg.exe /deviceenablewake "%%a"

 

** NOTE:  If a USB device is moved from one USB port to another, replaced, or anything of that nature, the script/command will need to be run again to ensure that the device is setup to wake the computer.  In our environment, this is script is setup to run on computer startup so it runs every time a computer boots up so it catches any changes of the hardware.

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ