Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 488178 - sys-power/upower-0.9.22 reports wrong battery percentage
Summary: sys-power/upower-0.9.22 reports wrong battery percentage
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-16 08:23 UTC by timemars
Modified: 2013-10-21 01:32 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description timemars 2013-10-16 08:23:03 UTC
I upgraded upower to 0.9.22 yesterday, and noticed that the gnome-shell battery icon on the upper right corner of the screen didn't report battery percentage correctly: it always showed 0%. And some warning messages were loged by systemd-journald:

upowerd[836]: (upowerd:836): GLib-GObject-WARNING **: value "108.000000" of type `gdouble' is invalid or out of range for property `percentage' of type `gdouble'

Well, since I usually work with AC adapter connected, actually I don't care about the percentage. However, gnome cares. Here are the 2 phenomena I observed:

1. Unplug the AC adapter and put the laptop into sleep mode, then get it to resume from standby, and gnome reports that the battery percentage is out of range and is going to shut down. The system shuts down in a few seconds.

2. With the AC adapter connected to the laptop, put it into sleep mode, then get it to resume from standby, everything works fine, no warning, no error, no reboot, no shutdown.

Downgrading upower to 0.9.21 solves the problem.

My laptop is Dell Latitude E7440.
Comment 1 timemars 2013-10-21 01:32:20 UTC
upower-0.9.23 fixes this bug.