how to do acpi event handling?

Richard Hughes hughsient at gmail.com
Tue Nov 15 14:39:38 PST 2005


On Tue, 2005-11-15 at 23:36 +0100, Pozsar Balazs wrote:
> On Tue, Nov 15, 2005 at 10:33:49PM +0000, Richard Hughes wrote:
> > On Tue, 2005-11-15 at 23:31 +0100, Pozsar Balazs wrote:
> > > On Tue, Nov 15, 2005 at 10:29:48PM +0000, Richard Hughes wrote:
> > > > On Tue, 2005-11-15 at 23:26 +0100, Pozsar Balazs wrote:
> > > > > Hi all,
> > > > > 
> > > > > Just a quick and easy question :)
> > > > > Given that hal can listen to acpi events, is it possible to add callouts 
> > > > > for these? Or how could I handle them? (for example the press of the 
> > > > > power button).
> > > > 
> > > > In g-p-m I just register for device events for the individual button,
> > > > and then get notified of the ButtonPressed event.
> > > > 
> > > > What do you want to use a callout for?
> > > 
> > > Actually, all I want is to do a "shutdown" when I press the power 
> > > button.
> > 
> > GNOME Power Manager can handle this. I'm sure you could knock up a
> > simple small python daemon to do the same if you want *just* that one
> > bit of functionality.
> 
> Ok, thanks.
> 
> If only g-p-m could run without anyone logged in...

It's on the todo list:

http://live.gnome.org/GnomePowerManager

I've just released 0.3.0, so I'll start hacking furiously again in a few
days.

Richard.



More information about the hal mailing list