how to do acpi event handling?

Pozsar Balazs pozsy at uhulinux.hu
Tue Nov 15 14:36:55 PST 2005


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


-- 
pozsy


More information about the hal mailing list