06-26-2015, 09:19 AM
I search for the a solution for the hybrid sleep (when the computer shutdown he write to ram and hd). I have searched for a solution. But I not find anything which is working.
Before anyone ask: Yes hybrid sleep is on at my computer (windows7). With the win-wtart-menu it works. Also works when I try with the external tool psshutdown:
run "psshutdown.exe" "-d -t 0 -v 0"
But how I can call this directly? I have try many:
shutdown 4 0 ""
shutdown 5 0 ""
run "$system$\rundll32.exe" "PowrProf.dll,SetSuspendState Hybrid Sleep"
run "$system$\rundll32.exe" "PowrProf.dll,SetSuspendState Sleep"
run "$system$\rundll32.exe" "PowrProf.dll,SetSuspendState"
run "$system$\rundll32.exe" "PowrProf.dll, SetSuspendState 0,1,0"
run "$system$\rundll32.exe" "PowrProf.dll, SetSuspendState 0,0,0"
run "$system$\rundll32.exe" "PowrProf.dll,SetSuspendState Hibernate"
run "$system$\shutdown.exe" "/h"
All this solutions only write to hd or only to ram. But not both.
The following not works (I guess only works on windows 8 )
run "$system$\shutdown.exe" "-s -hybrid -t 0"
Has anyone an idea?
Before anyone ask: Yes hybrid sleep is on at my computer (windows7). With the win-wtart-menu it works. Also works when I try with the external tool psshutdown:
run "psshutdown.exe" "-d -t 0 -v 0"
But how I can call this directly? I have try many:
shutdown 4 0 ""
shutdown 5 0 ""
run "$system$\rundll32.exe" "PowrProf.dll,SetSuspendState Hybrid Sleep"
run "$system$\rundll32.exe" "PowrProf.dll,SetSuspendState Sleep"
run "$system$\rundll32.exe" "PowrProf.dll,SetSuspendState"
run "$system$\rundll32.exe" "PowrProf.dll, SetSuspendState 0,1,0"
run "$system$\rundll32.exe" "PowrProf.dll, SetSuspendState 0,0,0"
run "$system$\rundll32.exe" "PowrProf.dll,SetSuspendState Hibernate"
run "$system$\shutdown.exe" "/h"
All this solutions only write to hd or only to ram. But not both.
The following not works (I guess only works on windows 8 )
run "$system$\shutdown.exe" "-s -hybrid -t 0"
Has anyone an idea?