https://bugs.kde.org/show_bug.cgi?id=450551

--- Comment #60 from Jakob Petsovits <[email protected]> ---
Hey everyone. I'd like to point out that UPower since version 1.90.5 supports
enabling charge limits. If enabled, it will set the charge threshold values on
every boot.

The merge requested mentioned in comment #58 is a step into the direction of
switching Plasma over to UPower as a backend for charge limit settings.

However, for anyone who has UPower installed but not TLP, you can also enable
this without System Settings. Perhaps it will help some people here until
Plasma provides a graphical interface for it. What you can do right now is call
a D-Bus method on UPower's battery object:

> busctl --system call org.freedesktop.UPower 
> /org/freedesktop/UPower/devices/battery_BAT0 org.freedesktop.UPower.Device 
> EnableChargeThreshold "b" true

This will use UPower's default threshold values, which can be customized with a
"hwdb" config file in /etc but defaults to a charge stop at 80%, resume charge
once discharged to 75%. If these values don't work for you, see this info about
customizing UPower's global charge limits:
https://gitlab.freedesktop.org/upower/upower/-/blob/v1.90.9/rules/60-upower-battery.hwdb#L22

KDE's current plan is to add charge threshold customization to UPower's D-Bus
interface, then use this in System Settings before switching people over from
direct kernel access of the battery to UPower managing charge limits. There are
a few more pieces that need to come together for this.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to