Alt.Binz forum

New Alt.Binz versions => Requests => Closed requests => Topic started by: dangel on November 02, 2009, 10:24:33 am

Title: Enter sleep, not hibernate as shutdown method
Post by: dangel on November 02, 2009, 10:24:33 am
Apologies if this has been asked before (did a search) but it'd be nice to have sleep as well as hibernate as options as I use this a lot on Windows 7.  Obviously resuming from S3 is much faster than hibernate and this would be an easy addition to the program :)

Thanks for listening  ;D
Title: Re: Enter sleep, not hibernate as shutdown method
Post by: avics on November 09, 2009, 08:54:14 am
Hi,

I second this one. As far as I can see there is no difference between the Shutdown method "Go to Standby (hibernate)" whether I select the 'Prevent entering standby mode" or not. Both put the computer into hibernation.

Please add a Sleep/Standby mode as Shutdown method!

Thanks,

Avi.
Title: Re: Enter sleep, not hibernate as shutdown method
Post by: Rdl on November 09, 2009, 09:22:19 am
Disable hibernate in windows and try
Title: Re: Enter sleep, not hibernate as shutdown method
Post by: dangel on November 11, 2009, 12:34:44 am
Both sleep and hibernation have their uses, as does hybrid sleep - it's just useful to have the option there given it's easy to add in code.  I'd prefer to let windows decide to hibernate the pc if necessary (e.g. if a power cut lasts longer than an hour and my UPS dies) but to avoid it otherwise.  Which API does altbinz use for power management anyway?

Title: Re: Enter sleep, not hibernate as shutdown method
Post by: Rdl on November 29, 2009, 07:26:03 pm
Added both hibernate and sleep. Anyway check in 0.31.3 and report.
Title: Re: Enter sleep, not hibernate as shutdown method
Post by: DDT2005 on December 06, 2009, 11:26:29 pm
I don't see an option for sleep running 0.31.3 in windows 7 with compatible hardware.   :(
Title: Re: Enter sleep, not hibernate as shutdown method
Post by: Rdl on December 07, 2009, 09:11:08 am
Standby?
Title: Re: Enter sleep, not hibernate as shutdown method
Post by: DDT2005 on December 07, 2009, 07:53:11 pm
Sorry I didn't realize that Standby (A term used in WinXP and before) and Sleep (a term introduced in Windows Vista and onwards) were synonymous.

Anyway, I just tested, and the new version of alt.binz put my system into Hibernation, and not Sleep (Standby) mode, when I had set it to Standby in Misc #2.

 8)
Title: Re: Enter sleep, not hibernate as shutdown method
Post by: avics on December 21, 2009, 01:28:02 pm
The same here. it doesn't matter if I select Standby or Hibernation, the system hibernates.

Is alt.binz using SetSystemPowerState() http://msdn.microsoft.com/en-us/library/aa373206(VS.85).aspx or is it using something else to shutdown?
Title: Re: Enter sleep, not hibernate as shutdown method
Post by: Rdl on December 21, 2009, 03:18:43 pm
Yes, you're both right. Doesn't work here either.

Hibernate: rundll32.exe Powrprof.dll,SetSuspendState 1,0,0
Sleep: rundll32.exe Powrprof.dll,SetSuspendState 0,0,0

However if hibernate is enabled it enters it on both commands.
Title: Re: Enter sleep, not hibernate as shutdown method
Post by: Rdl on December 21, 2009, 06:21:48 pm
Should be fixed now. I double checked it now. However once new version is out, response would be nice.
Title: Re: Enter sleep, not hibernate as shutdown method
Post by: avics on December 28, 2009, 07:13:27 pm
Hi,

When the new version is out I'll give you feedback.

Thanks again,

Avi.
Title: Re: Enter sleep, not hibernate as shutdown method
Post by: avics on March 04, 2010, 11:45:51 am
Hi,

I checked it with 0.31.4 and it works ok now
Thanks again!

Avi.