[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Tools to handle ACPI events?



On Thu, Aug 26, 2004 at 10:08:04AM -0300, Derek Broughton wrote:
> On August 26, 2004 06:20 am, Bart Samwel wrote:
> > On Wed, 2004-08-25 at 20:39 -0700, Joe Emenaker wrote:
[...]
> > Funny you should ask, there's just been a discussion on this on debian-
> > devel. I'll be building these shared scripts. I'll let you know when
> > they're done.
> 
> Best of luck - I hope you can find a way to make it work for a reasonably 
> large subset of machines.  Just trying to figure out what a system's 
> batteries or AC adapters are called seems to be an insurmountable problem for 
> most power monitoring apps.  That said, it obviously _can_ be done because 
> even Windows ME handles all this stuff.

the following could help :)
# ls /proc/acpi/button/*
/proc/acpi/button/lid:
LID

/proc/acpi/button/power:
PWRB

so I suppose you can get button names by scanning ACPI proc dirs, right?
But I don't know if _all_ the buttons are that easy to get.

-- 
mattia
:wq!



Reply to: