Bug 24667

Summary: Shows incorrect remaining time value directly after unplug
Product: upower Reporter: Michael Biebl <mbiebl>
Component: generalAssignee: Richard Hughes <richard>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: output of dk-power --monitor-details while unplugging AC

Description Michael Biebl 2009-10-21 16:49:07 UTC
When I unplug AC, I get a warning from g-p-m that I only have 3 min. remaining time left, although my battery is fully charged and usually lasts for ~2-3h.

As you can see from the attached log, it takes a few seconds, until dk-power reports plausible values for remaining time.
Comment 1 Michael Biebl 2009-10-21 16:49:46 UTC
Created attachment 30606 [details]
output of dk-power --monitor-details while unplugging AC
Comment 2 Richard Hughes 2011-01-04 03:42:29 UTC
I'm not sure what the best course of action here is. Usually introducing heuristics causes more issues that working out why the hardware / kernel reports invalid values.

Richard.
Comment 3 Michael Biebl 2011-01-04 11:26:50 UTC
Maybe the heuristic can be as simple as simply waiting for 10 to 30 secs after unplug before reading the values and just use the old values from before the unplug for that time frame
Comment 4 Bastien Nocera 2013-10-20 21:49:23 UTC
*** Bug 27399 has been marked as a duplicate of this bug. ***
Comment 5 Bastien Nocera 2013-10-20 21:50:10 UTC
Closing as fixed as per bug 27399. Reopen if you still see the problem with UPower 0.9.23.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.