GNOME Bugzilla – Bug 691187
Battery life estimation over optimistic
Last modified: 2021-06-09 16:11:35 UTC
I like how the new panel gives you an estimation of the time you will get on battery. It seems a bit too optimistic though: attached screenshot is what I get on my laptop. Note that unplugging and replugging the AC power changed that value into a more realistic "5 hours 12 minutes". Not sure where the previous information was coming from.
Created attachment 232822 [details] screenshot
Dunno, tbh. The calculation is exactly the same that the gsd power plugin is doing. CCing Richard
I've seen this too, and there are reports on the interwebs. It makes us look ridiculous. Richard?
Created attachment 245092 [details] pulling the plug repeatedly Its not so much optimistic, as just nonsense. Here's a video of me repeatedly pulling the plug from my laptop. Watch how the numbers go wild.
I think this was probably fixed by Jaspers changes to battery handling ? Needs retesting
(In reply to comment #5) > I think this was probably fixed by Jaspers changes to battery handling ? Needs > retesting What changes? Jasper's changes that I know of were to gnome-settings-daemon, which the power plugin doesn't use. The problem here is that the "Estimated battery capacity" is completely bogus when the charge/discharge rate changes (how do you know how long the battery will last when unplugged when you don't have a good handle on how much power it will draw when unplugged?). Both gnome-settings-daemon's power icon, and other OSes like OSX only show how long it will be for the battery to be full (when charging) or empty (when discharging), so the battery capacity value was always going to be a complete pot shot. I think we should just remove the "Estimated battery capacity" label. Then, the power panel could use g-s-d's interface to provide it with batteries instead of poking at upower directly, removing boatloads of code, and exercising the g-s-d regression tests.
Sounds good to me
Created attachment 255118 [details] [review] power: Only show estimated battery capacity while discharching Since we don't currently have a way to present a good estimation otherwise.
Created attachment 255122 [details] [review] power: Don't show the estimated battery capacity Since we don't currently have the data to present a good estimation.
Review of attachment 255118 [details] [review]: As Bastien pointed on IRC, we already have a label with the estimated time remaining when discharging so we don't need this at all.
(In reply to comment #10) > As Bastien pointed on IRC, we already have a label with the estimated time > remaining when discharging so we don't need this at all. Really? The string is intended to indicate the total time provided by the battery when fully charged. This isn't quite the same as time remaining, and is especially useful when charging.
I'm not opposed to removing the label if we aren't able to reliably or accurately provide the estimated capacity, though.
Comment on attachment 255122 [details] [review] power: Don't show the estimated battery capacity Pushing this for now but leaving the bug opened for a proper implementation that takes into account upower's device history data. Attachment 255122 [details] pushed as c804369 - power: Don't show the estimated battery capacity
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new bug report at https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/ Thank you for your understanding and your help.