Summary: | Energymanager failed with 2 batteries | ||
---|---|---|---|
Product: | [Unmaintained] solid | Reporter: | Marc Schulte <bomba> |
Component: | powermanagement | Assignee: | Dario Freddi <drf> |
Status: | RESOLVED FIXED | ||
Severity: | grave | CC: | emmanuelpescosta099 |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/powerdevil/dc6753889e0428c7e7072d5cb9ea2cd8be4340fa | Version Fixed In: | 5.1 |
Sentry Crash Report: |
Description
Marc Schulte
2014-07-13 08:36:20 UTC
*** This bug has been marked as a duplicate of bug 329537 *** (In reply to Christoph Feck from comment #1) > > *** This bug has been marked as a duplicate of bug 329537 *** This isn't correct, because powerdevil 5 isn't patched yet (review is pending: https://git.reviewboard.kde.org/r/119087/) Next time please reopened the other bug instead. We do not want separate tickets for the same bug in different branches. Git commit dc6753889e0428c7e7072d5cb9ea2cd8be4340fa by Emmanuel Pescosta. Committed on 29/07/2014 at 19:48. Pushed by emmanuelp into branch 'master'. After resuming from suspend, all batteries are added to powerdevil. When a battery, with charge lower or equal than the critical charge percentage is added, the critical battery timer will be started. In the current version the critical battery timeout can only be interrupted by plugging in AC. But if the system has more than one battery, the global charge percentage can be greater than the critical charge percentage and so the system shouldn't suspend. To achive this behaviour, we calculate the global charge percentage whenever a new battery was added and if the critical battery timer is running and the global charge is high enough, we stop the timer. Also we use the already calculated global charge percentage for the battery charge percentage notification instead of the charge of each individual battery. With this patch, the user can not only interrupt the critical timer by plugging in the AC but also by plugging in a new or additional battery (if the battery has enough charge). Related: bug 325707, bug 329537 FIXED-IN: 5.1 M +24 -11 daemon/powerdevilcore.cpp M +6 -0 daemon/powerdevilcore.h http://commits.kde.org/powerdevil/dc6753889e0428c7e7072d5cb9ea2cd8be4340fa |