[Pkg-xfce-devel] Bug#466058: Same problem on HP nc6400 laptop
Michael Goth
fnd at gmx.net
Wed Mar 12 20:26:00 UTC 2008
Package: xfce4-battery-plugin
Version: 0.5.0-4
--- Please enter the report below this line. ---
The problem is most certainly bound to the sysfs-patch.
I've rebuilt the plugin from the source package (just configure && make,
without applying the Debian patches) and copied it over the original
file in /usr/lib/xfce4-battery-plugin.
This does report the correct values for percentage and remaining time.
Here's some more system info Yves-Alexis has requested from previous
reporters:
$> ls /sys/class/power_supply
C1B2 C1B4
C1B2 seems to be the ac adapter (its type file sys "Mains") while C1B4
is the real battery (type "Battery")
I've also rebuilt the plugin (with all Debian patches) with
--debug-enabled=yes - Sample output:
$> xfce4-panel
DBG[battery.c:318] update_apm_status(): Updating battery status...
DBG:battery number 0 at:
DBG:sysfs dir->/sys/class/power_supply/C1B4
DBG:------------------------
DBG:battery number 1 at:
DBG:sysfs dir->/sys/class/power_supply/C1B2
DBG:------------------------
DBG[battery.c:318] update_apm_status(): Updating battery status...
DBG[battery.c:318] update_apm_status(): Updating battery status...
DBG[battery.c:318] update_apm_status(): Updating battery status...
DBG[battery.c:318] update_apm_status(): Updating battery status...
...
Last thing I did was taking a quick look at the source code, but I
didn't really understand it :(
I'll give it another try if someone could point me into the right
direction, though.
Cheers,
Michael
--- System information. ---
Architecture: i386
Kernel: Linux 2.6.24-1-686
Debian Release: lenny/sid
500 unstable ftp.de.debian.org
500 unstable debian-multimedia.informatik.uni-erlangen.de
--- Package information. ---
Depends (Version) | Installed
=============================-+-============
libatk1.0-0 (>= 1.20.0) | 1.20.0-1
libc6 (>= 2.7-1) | 2.7-9
libcairo2 (>= 1.4.0) | 1.4.14-1
libglib2.0-0 (>= 2.12.0) | 2.14.6-1
libgtk2.0-0 (>= 2.12.0) | 2.12.8-1
libpango1.0-0 (>= 1.18.4) | 1.18.4-1
libxfce4util4 (>= 4.4.2) | 4.4.2-2
libxfcegui4-4 (>= 4.4.2) | 4.4.2-2
xfce4-panel (>= 4.4.2) | 4.4.2-3
More information about the Pkg-xfce-devel
mailing list