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%
Created attachment 291717 [details, diff] patch to fix battery indicator
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/.
Hello, Some related info: http://sourceforge.net/tracker/index.php?func=detail&aid=3355401&group_id=180858&atid=894869 http://lists.alioth.debian.org/pipermail/pkg-lxde-maintainers/2011-August/000777.html https://bugzilla.redhat.com/show_bug.cgi?id=561311 HTH, Xavier.
+*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.
Thank you very much! this version in Portage works again on my Acer Aspire One!
Upstream fixed this differently, see SF #3355401 - commit 7748d13 in git (I didn't test).