After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 691187 - Battery life estimation over optimistic
Battery life estimation over optimistic
Status: RESOLVED OBSOLETE
Product: gnome-control-center
Classification: Core
Component: Power
git master
Other Linux
: Normal normal
: ---
Assigned To: Richard Hughes
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-01-05 14:09 UTC by Cosimo Cecchi
Modified: 2021-06-09 16:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (97.80 KB, image/png)
2013-01-05 14:10 UTC, Cosimo Cecchi
  Details
pulling the plug repeatedly (552.78 KB, video/webm)
2013-05-22 22:46 UTC, Matthias Clasen
  Details
power: Only show estimated battery capacity while discharching (920 bytes, patch)
2013-09-17 16:15 UTC, Rui Matos
rejected Details | Review
power: Don't show the estimated battery capacity (2.06 KB, patch)
2013-09-17 16:23 UTC, Rui Matos
committed Details | Review

Description Cosimo Cecchi 2013-01-05 14:09:49 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.
Comment 1 Cosimo Cecchi 2013-01-05 14:10:07 UTC
Created attachment 232822 [details]
screenshot
Comment 2 Matthias Clasen 2013-01-05 15:55:46 UTC
Dunno, tbh. The calculation is exactly the same that the gsd power plugin is doing. CCing Richard
Comment 3 Allan Day 2013-05-22 01:06:44 UTC
I've seen this too, and there are reports on the interwebs. It makes us look ridiculous.

Richard?
Comment 4 Matthias Clasen 2013-05-22 22:46:45 UTC
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.
Comment 5 Matthias Clasen 2013-08-13 16:44:50 UTC
I think this was probably fixed by Jaspers changes to battery handling ? Needs retesting
Comment 6 Bastien Nocera 2013-09-07 17:34:06 UTC
(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.
Comment 7 Matthias Clasen 2013-09-08 00:28:56 UTC
Sounds good to me
Comment 8 Rui Matos 2013-09-17 16:15:13 UTC
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.
Comment 9 Rui Matos 2013-09-17 16:23:25 UTC
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.
Comment 10 Rui Matos 2013-09-17 16:24:41 UTC
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.
Comment 11 Allan Day 2013-09-17 16:35:27 UTC
(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.
Comment 12 Allan Day 2013-09-17 16:39:17 UTC
I'm not opposed to removing the label if we aren't able to reliably or accurately provide the estimated capacity, though.
Comment 13 Rui Matos 2013-09-17 19:23:04 UTC
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
Comment 14 André Klapper 2021-06-09 16:11:35 UTC
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.