[Pm-utils] [PATCH] userspace suspend (s2disk/s2ram) support

Peter Jones pjones at redhat.com
Tue Oct 31 14:52:51 PST 2006


On Tue, 2006-10-31 at 18:04 +0100, Stefan Seyfried wrote: 
> On Tue, Oct 31, 2006 at 11:33:51AM -0500, Peter Jones wrote:
> > OK, what do you think of this for the INHIBIT stuff:
> 
> Looks good.
> the do_$1 trick might even buy us something in the future if we need to
> provide a third method (something like do_both was already requested, but
> i was able to reject it :-) in the future.

Yeah.  There's another feature we need to think about here -- "suspend
to hibernate" is what ThinkPad BIOSes call it.  Basically, set a timer
on suspend, and if we wake up _from the timer_, we go to hibernate.

But before we actually start trying to solve the logistical problems of
"which script runs when", I want good, solid support for:

1) wake up on timer
2) how to know that our reason for waking up was timer without calling
out to acpid/hal

> Maybe we can even get gnome-power-manager and kpowersave or whatever to
> look if there is a $INHIBIT file after a suspend attempt and present its
> content to the user? But that is something for "later", and maybe there are
> better ways to communicate this error up the caller chain.

Yeah.  And when we do that (and the above), we also need to worry about
knowing that hibernate works (or fails) -- because if hibernate fails,
we want to go back to suspend after we wakeup in suspend-to-hibernate.

-- 
  Peter



More information about the Pm-utils mailing list