Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 389581 - lxde-base/lxpanel-0.5.8 - battery plugin always shows 100%
Summary: lxde-base/lxpanel-0.5.8 - battery plugin always shows 100%
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: LXDE team (DEFUNCT)
URL: http://lists.alioth.debian.org/piperm...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-04 23:45 UTC by Alexey Korepanov
Modified: 2012-03-21 21:16 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to fix battery indicator (lxpanel-0.5.8-bat.patch,497 bytes, patch)
2011-11-04 23:46 UTC, Alexey Korepanov
Details | Diff
compute battery percentage. (batt_sys_ideapad.patch,939 bytes, patch)
2011-12-21 18:27 UTC, Robert Meyer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Korepanov 2011-11-04 23:45:37 UTC
It's a known bug - battery plugin always displays 100%.

To get is working one line has to be patched, I will attach a patch in a moment.

Reproducible: Always

Steps to Reproduce:
1. Use lxpanel on a laptop
2. 
3. 
Actual Results:  
battery indicator always shows 100%

Expected Results:  
battery indicator does not always show 100%
Comment 1 Alexey Korepanov 2011-11-04 23:46:55 UTC
Created attachment 291717 [details, diff]
patch to fix battery indicator
Comment 2 Robert Meyer 2011-12-21 18:27:49 UTC
Created attachment 296583 [details, diff]
compute battery percentage.

The above patch might create issues, if there is no remaining_capacity under /var/class/power_supply/BATn/.
Comment 4 Víctor Ostorga (RETIRED) gentoo-dev 2012-01-01 14:25:05 UTC
+*lxpanel-0.5.8-r1 (01 Jan 2012)
+
+  01 Jan 2012; Victor Ostorga +lxpanel-0.5.8-r1.ebuild,
+  +files/lxpanel-0.5.8-battery-meter.patch:
+  Fixes battery metter always showing 100 percent charge, patch thanks to
+  Robert Meyer <r.meyer@net-wizard.org> bug #389581

The patch seems fine, I've added lxpanel 0.5.8-r1 to the tree.
I'll keep this open looking forward to feedback.
Comment 5 Xavier Miller (RETIRED) gentoo-dev 2012-01-02 19:57:09 UTC
Thank you very much! this version in Portage works again on my Acer Aspire One!
Comment 6 Maxim Kammerer 2012-03-21 21:15:59 UTC
Upstream fixed this differently, see SF #3355401 - commit 7748d13 in git (I didn't test).