"doing" things to HAL devices
Sjoerd Simons
sjoerd at luon.net
Tue Mar 15 04:21:45 PST 2005
On Tue, Mar 15, 2005 at 12:08:14PM +0000, Richard Hughes wrote:
> I'm at a stage with GNOME Power Manager where I want to "do" events, for
> instance
>
> Computer:Shutdown Computer:Hibernate
>
> There's no facility in HAL to do this for power devices, and wanted to know
> suggestions or comments about how this should be done.
>
> For instance, for acpi:
> To sleep: echo "sleep" > /sys/power
> To shutdown: shutdown -h now
>
> I've no idea for APM or PMU. Sjoerd?
APM is apm -s :).. For pmu you do an ioctl on /dev/pmu..
Unfortunately live isn't that simple, for example on my powerbook i need to
kill esd and remove some modules when suspending... And ofcourse reload when
coming out of suspend.
Is powermanager going to provide that ability or some generalized hal callout
to do the actual suspend or ? ideas ? :)
Btw note that there is a difference between suspend and hibernate.. and iirc
acpi has a whole slew of other ``suspend'' states
Sjoerd
--
Air is water with holes in it.
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list