[Pkg-xfce-devel] Bug#473343: Bug#473343: Bug#473343: xfce4-battery-plugin: Only gives info on one battery

Dylan Thurston dthurston at barnard.edu
Mon Apr 28 15:22:59 UTC 2008


On Mon, Apr 28, 2008 at 05:10:37PM +0200, Yves-Alexis Perez wrote:
> ...
> Ok, so you're not using the sysfs interface. Could you give us the output of:
> ls -lRh /proc/acpi/battery/

See below, along with some more output that might be helpful.  At the
moment I only have one battery installed; I can rerun with both
batteries when I get home.

dpt at amaryllis:~$ ls -lRh /proc/acpi/battery
/proc/acpi/battery:
total 0
dr-xr-xr-x 2 root root 0 2008-04-28 11:18 C176
dr-xr-xr-x 2 root root 0 2008-04-28 11:18 C177

/proc/acpi/battery/C176:
total 0
-rw-r--r-- 1 root root 0 2008-04-28 11:18 alarm
-r--r--r-- 1 root root 0 2008-04-28 11:18 info
-r--r--r-- 1 root root 0 2008-04-28 11:18 state

/proc/acpi/battery/C177:
total 0
-rw-r--r-- 1 root root 0 2008-04-28 11:18 alarm
-r--r--r-- 1 root root 0 2008-04-28 11:18 info
-r--r--r-- 1 root root 0 2008-04-28 11:18 state
dpt at amaryllis:~$ for f in /proc/acpi/battery/*; do echo $f; cat $f/info; done
/proc/acpi/battery/C176
present:                 no
/proc/acpi/battery/C177
present:                 yes
design capacity:         2172 mAh
last full capacity:      2172 mAh
battery technology:      rechargeable
design voltage:          10800 mV
design capacity warning: 109 mAh
design capacity low:     22 mAh
capacity granularity 1:  100 mAh
capacity granularity 2:  100 mAh
model number:            Primary
serial number:           19575 2005/12/14
battery type:            LIon
OEM info:                Hewlett-Packard
dpt at amaryllis:~$ for f in /proc/acpi/battery/*; do echo $f; cat $f/state; done
/proc/acpi/battery/C176
present:                 no
/proc/acpi/battery/C177
present:                 yes
capacity state:          ok
charging state:          charged
present rate:            0 mA
remaining capacity:      45072 mAh
present voltage:         16626 mV





More information about the Pkg-xfce-devel mailing list