Re: current ACPI status in 2.6.7 kernel

Nathan Bryant
2004-08-11T13:19:01Z

> Thanks for the tip, fortunately I don't have any SCSI or SATA disks.
> Unfortunately, I still don't
> 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. ;)

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. Otherwise you can just talk to the kernel directly...

Nathan

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...