detecting hibernation capability
Nigel Cunningham
ncunningham at cyclades.com
Mon Dec 5 14:08:00 PST 2005
Hi.
On Tue, 2005-12-06 at 07:31, Richard Hughes wrote:
> On Tue, 2005-12-06 at 07:19 +1000, Nigel Cunningham wrote:
> > Hi.
> >
> > On Sat, 2005-12-03 at 03:06, Richard Hughes wrote:
> > > On Fri, 2005-12-02 at 11:38 -0500, David Zeuthen wrote:
> > > > On Thu, 2005-12-01 at 17:48 +0000, Richard Hughes wrote:
> > > > > Sure, how about the attached?
> > > >
> > > > Looks good to me, thanks!
> > >
> > > Committed, thanks.
> >
> > Sorry for being late to the party, but hibernation will probably also be
> > possible if the directories /proc/software_suspend or /proc/suspend2
> > exist.
>
> Patched about 20 minutes ago :-)
>
> > This is of course with suspend2 applied. Most (but not all)
> > suspend2 users use the hibernate script to initiate a suspend, so I like
> > the idea mentioned in the other branch of this thread (for Apple) of
> > being able to run a script.
>
> You can run a script already. It already tries suspend2 before the
> kernel hiberate e.g.
>
> elif [ -x "/usr/sbin/hibernate" ] ; then
> # Suspend2 tools installed
> /usr/sbin/hibernate --force
> RET=$?
>
Great!
Thanks very much.
Nigel
More information about the hal
mailing list