Re: current ACPI status in 2.6.7 kernel

Bernard Blackham
2004-08-11T13:56:04Z

On Wed, Aug 11, 2004 at 09:19:01AM -0400, Nathan Bryant wrote:
> > know how to do this. Is there an utility to put PC into
> > sleep/suspend ? I know I can switch to various S modes using
> > /proc entry, but what about all the peripherals and user mode
> > apps ?
> > I would venture that there has to be some kind of subsystem in
> > user mode to take care of all this. I probably did not phrase my
> > question right, but when I Asked if ACPI suspend/sleep status is
> > stable enough I was actually referring to the whole subsystem,
> > not just kernel support.
>
> It's not that big of a deal for userspace, you just need scripts to
> unload any problem device drives before suspend and reload them after
> resume. You would also need to kill and restart any programs that will
> be broken by those devices going away. APM already has config files that
> specify a lot of this which could probably be adapted to ACPI. But the
> ultimate goal is to get devices that don't even need to be unloaded,
> since we now have proper suspend/resume hooks. ;)

For Software Suspend 2, I've written a package called hibernate
which can be used to activate Software Suspend 2, or alternately
utilise the /sys/power/state interface. (It doesn't manipulate
/proc/acpi/sleep, as I was under an impression it was getting
deprecated - on the other hand if it isn't, writing a plugin to do
so isn't hard).

http://developer.berlios.de/project/showfiles.php?group_id=1412
under "Current Scripts".

> I think there is a "pmsuspend" program floating around out there, don't
> know how well it has been integrated with existing suspend/resume
> scripts though.

Seems a Mandrake thing, but covers much the same ground as
hibernate. hibernate tries to cover most distributions.

> Oh, and there's that annoying little problem where acpid sees the button
> press that I have to use to resume, as a shutdown event...

Does "rmmod button" just before suspending help?

Bernard.

--
Bernard Blackham <bernard at blackham dot com dot au>