On 15:46 Sun 11 Oct     , Jens Peter Secher wrote:
> The battery plugin works fine in xmobar 0.9.2-1 when running on a Linux
> 2.6.26 image.
> 
> 

Hi, 

Sorry for the delayed response, but I've been pretty busy IRL.

Yes, the battery plugin works fine with 2.6.26, because Lenny kernels have
/proc/acpi/BAT support. The problem is that the /proc API for battery control
has been obsoleted by /sys/class/power_supply, altogether with a different
(and more simple) format. While under /proc the battery plugin had to use a
parser to get the remaining capacity, with /sys things are greatly simplified,
as the available information is in a single-value-per-file format.

I am working on a fix for properly supporting both, /sys and /proc (with this
order of preference), still I need to polish it a bit.

Cheers,
Apollon

P.S.: Under sysfs there seem to be a number of ways a battery can expose its
state. So far I've found batteries that expose their state as "energy" (my
macbook) or as "charge" (my Dell Latitude E6500 at work), so I guess xmobar
should support both sources transparently.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to