! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-power-manager says the battery is charging when it is not (and vice-versa)
Status:
RESOLVED: INVALID
Product:
Xfce4-power-manager
Component:
General

Comments

Description Helder 2015-01-12 14:44:40 CET
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
Comment 1 Olivier Fourdan editbugs 2015-01-12 17:12:29 CET
It's the wrong product, definitely not "xfce4-session" but "xfce4-power-manager"

So what does upower say? (upower -d)

What does the kernel say? (cat /sys/class/power_supply/BAT*/uevent)
Comment 2 Helder 2015-01-12 18:01:31 CET
Created attachment 5858 
Result of "upower -d"
Comment 3 Helder 2015-01-12 18:04:25 CET
Created attachment 5859 
Result of "cat /sys/class/power_supply/BAT*/uevent"

These are the results. However, note that I had already logged out after the bug happened, and when I logged in again it "fixed itself".

I'll try to remember to run these commands again if I see the problem in the future.
Comment 4 Helder 2015-01-12 18:11:41 CET
Created attachment 5860 
Result of "upower -d", when using only the battery

Here we go: this is the result of the "upower -d" when the bug happens and I'm using only the battery.
Comment 5 Helder 2015-01-12 18:12:17 CET
Created attachment 5861 
Result of "cat /sys/class/power_supply/BAT*/uevent", when using only the battery
Comment 6 Helder 2015-01-12 18:16:43 CET
Created attachment 5862 
Result of "upower -d", when connected
Comment 7 Helder 2015-01-12 18:19:59 CET
Created attachment 5863 
Result of "cat /sys/class/power_supply/BAT*/uevent", when connected

The last 4 attachments contains the results from a session while the bug was happening. (I was able to trigger it again by clicking in the panel icon and, while keeping it open, (un)plugging the power cable)
Comment 8 Harald Judt 2015-01-12 18:27:01 CET
From your observations and descriptions, upower reports the wrong values. xfce4-power-manager cannot do anything about it. Please report the bug to the upower developers.
Comment 9 Helder 2015-01-12 18:59:55 CET
Created https://bugs.freedesktop.org/show_bug.cgi?id=88333.
Comment 10 Simon Steinbeiss editbugs 2015-05-28 08:49:01 CEST
Since this is an upstream bug and we can't do anything about it here, I'm closing this report.
Comment 11 Helder 2015-05-28 14:52:53 CEST
nice... both are invalid now.
Comment 12 Olivier Fourdan editbugs 2015-05-28 14:57:42 CEST
(In reply to Helder from comment #11)
> nice... both are invalid now.

Clearly, you need to nag your distribution so they fix (backport) or upgrade upower in the distribution version you use, not much upstream (neither on xfce nor on the upower side) can do...

Bug #11447

Reported by:
Helder
Reported on: 2015-01-12
Last modified on: 2015-05-28

People

Assignee:
Ali Abdallah
CC List:
6 users

Version

Attachments

Additional information