[Xfce-bugs] [Bug 11447] New: xfce4-power-manager says the battery is charging when it is not (and vice-versa)
bugzilla-daemon at xfce.org
bugzilla-daemon at xfce.org
Mon Jan 12 14:44:40 CET 2015
https://bugzilla.xfce.org/show_bug.cgi?id=11447
Bug ID: 11447
Summary: xfce4-power-manager says the battery is charging when
it is not (and vice-versa)
Classification: Xfce
Product: Xfce4-session
Version: Unspecified
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: Medium
Component: General
Assignee: xfce-bugs at xfce.org
Reporter: he7d3r+xfcebugs at gmail.com
QA Contact: bjt23 at cornell.edu
CC: benny at xfce.org, nick at xfce.org
Somehow, xfce4-power-manager managed to get in a state where
* When I'm using the battery, it says the battery is charging
* When I'm NOT using the battery, it says the battery is discharging
I was testing the panel plugin when this started to happen.
I suppose it is updating some variable in the code using a negation, e.g.
isCharging = not isCharging
when the user (un)plugs the charger. So, once the wrong state got there (not
sure how), it keeps showing the wrong status. If it checked if the charger is
present or not each time, it should fix itself without requiring me to log out.
$ xfce4-power-manager --version
Xfce Power Manager 1.4.1
$ cat /etc/issue
Ubuntu 14.10 \n \l
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Xfce-bugs
mailing list