power: Add support for battery charge limiting
UPower supports setting the charge limit of a battery to reduce the battery wear by constantly trickle charging. The charge start/end thresholds are configured by hwdb, a user can only enable / disable the configured limits per available battery via a DBus method. As UPower applies the thresholds for us on startup this does not enable the charge limit setting via gnome-settings-daemon.
When multiple batteries are provided the charge limit is set on all battery's. Laptops with multiple batteries are these days not a common occurrence to justify presenting them separate in the UI.
Closes #2553 (closed)
The new switch when a battery supports charge thresholds:
This requires UPower 1.90.6
Edited by Jelle van der Waa