[ACPI-sppt] Improving Gnome battstat-applet for ACPI

"David C. Moore" <[email protected]>
Newsgroups gmane.linux.acpi.support
Message-ID <[email protected]>
The battstat-applet that comes with Gnome 2 is ACPI-enabled, but as
others have pointed out before, it suffers from the problem of high CPU
load or short system lockups with many ACPI-enabled laptops.

I have written a patch for battstat-applet that alleviates this problem
by using ACPI events to tell when a battery or AC power has been
added/removed.  That way /proc/acpi/.../info only has to be read
occasionally, instead of once per second.  Battery percentage can be
then updated every 30 seconds or by by reading /proc/acpi/.../state.

I would encourage anyone who uses Gnome and ACPI to try out my patch. 
If you have any suggestions or comments, please add them to the
discussion at http://bugzilla.gnome.org/show_bug.cgi?id=88553

The patch, as well as Redhat 9 RPMS are available at:

http://www.its.caltech.edu/~dmoore/battstat/

To run it, you'll need to be running acpid since it exports ACPI events
to /var/run/acpid.socket.  The normal /proc/acpi/event is readable by
root only.

Regards,

David Moore


-- 
------------------------------------------------------
David Moore <[email protected]>         http://davemoore.org
        California Institute of Technology
------------------------------------------------------




-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.