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]

But it does not sound to be enough... Any idea?
0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.



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.

Answered 07/18/2013 by: M P
Purple Belt

Please log in to comment
Answer this question or Comment on this question for clarity