[Goodies-dev] [Bug 9594] xfce4-panel-plugin-battery: shows 50%% if no battery found, settings do not work

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Sun Dec 16 12:57:58 CET 2012


https://bugzilla.xfce.org/show_bug.cgi?id=9594

Landry Breuil <landry at xfce.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |landry at xfce.org

--- Comment #3 from Landry Breuil <landry at xfce.org> ---
I dont have a linux system to test that. Can you recompile the plugin with
--enable-debug, reinstall it and look in .xsession-errors (or wherever your
session logs its debug output) to see what the plugin says about
proc/acpi/battery, and what codepaths are used ? Linux also uses sysfs /sys
tree first, and only /proc after it.

Code is in
http://git.xfce.org/panel-plugins/xfce4-battery-plugin/tree/panel-plugin/libacpi.c#n277
for the acpi check and
http://git.xfce.org/panel-plugins/xfce4-battery-plugin/tree/panel-plugin/battery.c#n239
for the caller.

To my understanding on linux, if check_acpi_sysfs doesnt return 0, then
check_acpi checks for /proc/acpi/battery, then if not found returns 2. The code
in battery.c then fallbacks to apm_read, instead of properly propagating the
failure to the plugin UI.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.


More information about the Goodies-dev mailing list