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.
upower-0.9.23 fixes this bug.