how to do acpi event handling?

Pozsar Balazs pozsy at uhulinux.hu
Tue Nov 15 14:31:22 PST 2005


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.


-- 
pozsy


More information about the hal mailing list