Bug 24667 - Shows incorrect remaining time value directly after unplug
Summary: Shows incorrect remaining time value directly after unplug
Status: RESOLVED FIXED
Alias: None
Product: upower
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Richard Hughes
QA Contact:
URL:
Whiteboard:
Keywords:
: 27399 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-21 16:49 UTC by Michael Biebl
Modified: 2013-10-20 21:50 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
output of dk-power --monitor-details while unplugging AC (12.91 KB, text/plain)
2009-10-21 16:49 UTC, Michael Biebl
Details

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.