From 3620f425ec1282362736472ba496b6666f9514e3 Mon Sep 17 00:00:00 2001 From: Kate Hsuan Date: Thu, 22 Jan 2026 12:22:00 +0800 Subject: [PATCH] dbus: org.freedesktop.UPower.Device: Add SetChargeStrategy method SetChargeStrategy method sets the battery charge algorithm to an given value if the system supports the setting. --- dbus/org.freedesktop.UPower.Device.xml | 89 ++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/dbus/org.freedesktop.UPower.Device.xml b/dbus/org.freedesktop.UPower.Device.xml index 644abee..7072885 100644 --- a/dbus/org.freedesktop.UPower.Device.xml +++ b/dbus/org.freedesktop.UPower.Device.xml @@ -243,6 +243,95 @@ method return sender=:1.386 -> dest=:1.477 reply_serial=2 + + + + + + Set the charging strategy for the battery device. + + + Unknown + + The battery charging behavior is unknown or not supported. + + + + + + N/A + + The battery charging behavior is not supported + + + + + + Trickle + + The battery charges slowly. + + + + + + Fast + + Quickly charge the battery using fast-charge technology + + + + + + Standard + + Fully charge the battery with a moderate rate. + + + + + + Adaptive + + The battery charges at a rate that adapts to the battery's capacity which the system firmware controls. + + + + + + Custom + + The battery charges at a rate that is set by the user. + + + + + + Long Life + + The charger reduces its charging rate in order to prolong the battery health. + + + + + + Bypass + + Bypass the charge path around the integrated charger. A external charger is used instead to manage the charging + + + + + + + + + Set the charging strategy against the supported charge strategies. The supported charging strategies can be found by invoking the GetSupportedChargeStrategies method. + + + + +