Strange battery info

Hi there, want to see if anyone else also got this: Sometimes when I go from battery to AC the battery indicator will go from, for example, 37% to 0%. Then when fully charged display 6%.

When I then remove the charger it’ll show a warning that the battery is low and that I’ve got about 5 hours left until the laptop will turn off.

Clearly some conflict between the actual charge and the misinterpreted power status.

This started happening in fedora 34 and continues now in fedora 35.

Maybe something to do with the powerprofiles daemon becoming the default power management method in Fedora Linux on F34. It does sound like a bug though. Have you checked at bugzilla (https://bugzilla.redhat.com/buglist.cgi?quicksearch=f34)

Browsed through it checking for “f35”,“battery”,“power”,“level” and “percent”. Doesn’t seem to exist any report on it.

Hi @hackan welcome back. For our information. You mean this battery indicator?

Screenshot from 2021-11-11 20-16-07

1 Like

Thank you, good to be back… I think, haha :smiley:

Yes, that’s the indicator I mean.

On the forum I found this:

Nicholas Stommelnstommel

May 17

Interestingly, restarting the upower service using sudo service upower restart or issuing a refresh command to upower via busctl like so: busctl call --system org.freedesktop.UPower /org/freedesktop/UPower/devices/battery_BAT0 org.freedesktop.UPower.Device Refresh instantly resolves this issue. It appears that the upower service is not updating frequently enough. I have filed a bug here: https://bugzilla.redhat.com/show_bug.cgi?id=1960997 to address this issue with the upower service. In the meantime, using the script from here seems to work: https://askubuntu.com/questions/878556/get-battery-status-to-update-more-often-or-on-ac-power-wake/878579#878579

1 Like

I can confirm that $ sudo service upower restart works like a charm :smiley:

2 Likes