s2both

Holger Macht hmacht at suse.de
Mon Mar 12 13:22:29 PDT 2007


On Mon 12. Mar - 15:52:29, David Zeuthen wrote:
> On Sun, 2007-03-11 at 01:13 +0100, Tim Dijkstra wrote:
> > Hi,
> > 
> > Both suspend.sf.net and suspend2 have a notion of s2both. That is,
> > before suspending to ram, the state of the system is saved to disk just
> > like would happen for hibernate.
> > This has the obvious benefit of being able to resume in case you
> > deplete your batteries while you laptop is suspended.
> > 
> > I think it would really be useful to have the possibility to do that
> > instead of plain s2ram when one suspends. We can of course just make
> > use of the possibility in pm-utils when it is available, but I guess a
> > checkbox in g-p-m would be nice. For that to work we also need another
> > attribute in hal.
> > 
> > Comments?
> 
> This is really just a third sleep mechanism so what I think we need is
> 
>  - a new method on HAL called SuspendHybrid() - this is on the same
>    interface as Suspend() and Hibernate()
> 
>  - a new property on HAL called
> 
>      power_management.can_suspend_hybrid
> 
>    to go with .can_suspend and .can_hibernate

That's what I was proposing. So you agree that pm-utils will install
fdi(s) which tell HAL what it supports and which adds the corresponding
HAL methods?

Regards,
	Holger


More information about the hal mailing list