The Logitech Harmony universal remote control can only send the computer a power toggle command - that's all that PCs seem to support (note to designers - FIX IT please!). So the universal remote has to remember whether the computer is on or off - but when it refuses to go into standby, the remote gets it wrong and when the remote tries to turn it on, the computer turns off instead!!
- Run cmd but do so as an Administrator (right click on the icon and select the menu option.
- Use powercfg -requests to see what is preventing the system from sleeping.
- Use powercfg -requestsoverrides to prevent those things from preventing sleeping.
- Use powercfg -lastwake to see what caused the wake - but note that it seems to be totally wrong at least for hardware (is this because it tries to identify the device from the IRQ but can't tell which device on the same IRQ caused the wake? Pure speculation.)
While playing TV, found this output of powercfg -requests:
C:\Windows\system32>powercfg /requests
DISPLAY:
None.
SYSTEM:
[DRIVER] NVIDIA High Definition Audio (HDAUDIO\FUNC_01&VEN_10DE&DEV_0014&SUBSYS_
10DE0101&REV_1001\5&27db68e6&0&0101)
An audio stream is currently in use.
[PROCESS] \Device\HarddiskVolume2\Windows\ehome\ehshell.exe
[DRIVER] Legacy Kernel Caller
AWAYMODE:
None.
Stopped playback and tried to suspend, but it didn't. Ran the same again and the NVIDIA High Definition Audio was still there, but the others weren't.... is that the smoking gun?
Had NVIDIA GeForce GT 425M driver version 280.19, now there is 301.42. But according to
this Asrock forum article, I need the desktop driver. Or there is
this technique to use the theoretically correct 425M driver.
Noticed that there was still the same NVIDIA HD Audio sleep prevention request shortly after playing a sound (though it disappeared within 10s).
At cmd prompt:
powercfg -requestsoverride DRIVER "NVIDIA High Definition Audio" SYSTEM
Hopefully that cures it.
PS: had to add others - \FileSystem\srvnet and Legacy Kernel Caller. Then discovered that the wired network card would wake the computer up immediately on entering standby - disconnecting cured that. Tried setting the power management settings for it to "Only allow a magic packet to wake the computer" - otherwise I guess any network traffic addressed to this computer (e.g. Media player on the laptop polling) would wake it.