Git commit 775a99e8bc1e9c5e277ff17a84a406227a5a32fb by Emmanuel Pescosta. Committed on 17/06/2014 at 15:35. Pushed by emmanuelp into branch 'KDE/4.11'.
Consider additional batteries for power management (when the critical battery timer is running) 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). Note: The 30 sec timeout message will still popup. Tested with a Thinkpad T440s (two batteries) @Philipp Paris: Thanks for testing! Related: bug 329537 FIXED-IN: 4.11.11 REVIEW: 118801 M +13 -1 powerdevil/daemon/powerdevilcore.cpp http://commits.kde.org/kde- workspace/775a99e8bc1e9c5e277ff17a84a406227a5a32fb -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1236013 Title: power management automatically shuts the system down when second battery is low/dead even if the other battery is fine To manage notifications about this bug go to: https://bugs.launchpad.net/kdebase-workspace/+bug/1236013/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs