I have a small WSL script which checks if a (another) script has finished and then puts my laptop to sleep using psshutdown64.exe -d -t 0. This is on Win 10 and hibernate is disabled.
On my old Huawei laptop, I was able to wake the machine by clicking the wireless (2.4Ghz dongle) mouse.
I now have a HP Probook 635, but this laptop will only wake up if I open the lid and then press the power button.
Note that, if I use the Sleep option in the start menu, then I'm able to wake the laptop using the mouse normally.
It seems psshutdown puts the laptop in a different state of sleep from the normal "Sleep" and I cannot wake the laptop using my mouse.
I also tried Rundll32.exe Powrprof.dll,SetSuspendState Sleep and rundll32.exe powrprof.dll,SetSuspendState 0,1,0 but the result is the same.
On my Huawei laptop I can see:
powercfg.exe -a
The following sleep states are available on this system:
Standby (S3)
The following sleep states are not available on this system:
Standby (S1)
The system firmware does not support this standby state.
Standby (S2)
The system firmware does not support this standby state.
Hibernate
Hibernation has not been enabled.
Standby (S0 Low Power Idle)
The system firmware does not support this standby state.
Hybrid Sleep
Hibernation is not available.
The hypervisor does not support this standby state.
Fast Startup
Hibernation is not available.
And on my HP:
powercfg.exe -a
The following sleep states are available on this system:
Standby (S0 Low Power Idle) Network Connected
Hibernate
Fast Startup
The following sleep states are not available on this system:
Standby (S1)
The system firmware does not support this standby state.
This standby state is disabled when S0 low power idle is supported.
Standby (S2)
The system firmware does not support this standby state.
This standby state is disabled when S0 low power idle is supported.
Standby (S3)
The system firmware does not support this standby state.
This standby state is disabled when S0 low power idle is supported.
Hybrid Sleep
Standby (S3) is not available.
The hypervisor does not support this standby state.
I'm not sure why it worked on my Huawei laptop, but fails on the HP one.