From dc28eccd1ca0d71846cf75df5b2437f1b98a15ec Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Tue, 23 Jul 2024 14:25:41 +0800 Subject: [PATCH] dbus: Define EnableChargeLimit() dbus method EnableChargeLimit() is used to enable/disable the battery charging threshold feature. Signed-off-by: Kate Hsuan --- dbus/org.freedesktop.UPower.Device.xml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/dbus/org.freedesktop.UPower.Device.xml b/dbus/org.freedesktop.UPower.Device.xml index 215d802..2f3103f 100644 --- a/dbus/org.freedesktop.UPower.Device.xml +++ b/dbus/org.freedesktop.UPower.Device.xml @@ -245,6 +245,29 @@ method return sender=:1.386 -> dest=:1.477 reply_serial=2 + + + + + + If it is true, the battery charge will be limited to ChargeEndThreshold and start to charge when the battery is lower than ChargeStartThreshold. + Moreovere, if ChargeEndThreshold and/or ChargeStartThreshold are not supported, charge limit functionality on the whole may still be supported but the firmware will choose its own thresholds. + If it is false, the battery will always be fully charged. + + + + + + + Limiting the battery charge to the configured thresholds ChargeStartThreshold and ChargeEndThreshold. + + + + if an error occured while setting the battery charge limits + + + + @@ -868,7 +891,6 @@ method return sender=:1.386 -> dest=:1.477 reply_serial=2 -