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.
Created attachment 30606 [details] output of dk-power --monitor-details while unplugging AC
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.
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
*** Bug 27399 has been marked as a duplicate of this bug. ***
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.