-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The problem with the applet is that it search always for
/proc/acpi/battery/BATx, but this is not always the correct name for the
battery. In my laptop the name is /proc/acpi/battery/CMB0, so It can't
find it. I don't know if it has a cannonical name,... I've changed in
batt.c file this:

....
    while ((battery_name = g_dir_read_name(batteryDirectory))) {
        if (battery_name[0] != '.'&&strncmp(battery_name, "BAT", 3)==0) {
....

with this,

....
    while ((battery_name = g_dir_read_name(batteryDirectory))) {
        if (battery_name[0] != '.'&&strncmp(battery_name, "CMB", 3)==0) {
....

and now it works for me... but as I said, it's not a a global solution.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkl+DYAACgkQNTNQylgICMQFAwCeIxpddWOEasRpmr46eqx/pjJs
45sAn1+n3eflO9/q5WobVLwRi/UwvNeb
=YYFP
-----END PGP SIGNATURE-----



-- 
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