Author Topic: Enter sleep, not hibernate as shutdown method  (Read 14583 times)

Offline dangel

  • Contributor
  • ***
  • Posts: 9
Enter sleep, not hibernate as shutdown method
« 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

Offline avics

  • Contributor
  • ***
  • Posts: 4
Re: Enter sleep, not hibernate as shutdown method
« Reply #1 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.

Offline Rdl

  • Administrator
  • *****
  • Posts: 4050
Re: Enter sleep, not hibernate as shutdown method
« Reply #2 on: November 09, 2009, 09:22:19 am »
Disable hibernate in windows and try

Offline dangel

  • Contributor
  • ***
  • Posts: 9
Re: Enter sleep, not hibernate as shutdown method
« Reply #3 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?


Offline Rdl

  • Administrator
  • *****
  • Posts: 4050
Re: Enter sleep, not hibernate as shutdown method
« Reply #4 on: November 29, 2009, 07:26:03 pm »
Added both hibernate and sleep. Anyway check in 0.31.3 and report.

Offline DDT2005

  • Contributor
  • ***
  • Posts: 14
Re: Enter sleep, not hibernate as shutdown method
« Reply #5 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.   :(

Offline Rdl

  • Administrator
  • *****
  • Posts: 4050
Re: Enter sleep, not hibernate as shutdown method
« Reply #6 on: December 07, 2009, 09:11:08 am »
Standby?

Offline DDT2005

  • Contributor
  • ***
  • Posts: 14
Re: Enter sleep, not hibernate as shutdown method
« Reply #7 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)

Offline avics

  • Contributor
  • ***
  • Posts: 4
Re: Enter sleep, not hibernate as shutdown method
« Reply #8 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?

Offline Rdl

  • Administrator
  • *****
  • Posts: 4050
Re: Enter sleep, not hibernate as shutdown method
« Reply #9 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.

Offline Rdl

  • Administrator
  • *****
  • Posts: 4050
Re: Enter sleep, not hibernate as shutdown method
« Reply #10 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.

Offline avics

  • Contributor
  • ***
  • Posts: 4
Re: Enter sleep, not hibernate as shutdown method
« Reply #11 on: December 28, 2009, 07:13:27 pm »
Hi,

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

Thanks again,

Avi.

Offline avics

  • Contributor
  • ***
  • Posts: 4
Re: Enter sleep, not hibernate as shutdown method
« Reply #12 on: March 04, 2010, 11:45:51 am »
Hi,

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

Avi.