mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-04-05 06:40:43 +02:00
dbus: Define EnableChargeLimit() dbus method
EnableChargeLimit() is used to enable/disable the battery charging threshold feature. Signed-off-by: Kate Hsuan <hpa@redhat.com>
This commit is contained in:
parent
d2c7e183c3
commit
dc28eccd1c
1 changed files with 23 additions and 1 deletions
|
|
@ -245,6 +245,29 @@ method return sender=:1.386 -> dest=:1.477 reply_serial=2
|
|||
</doc:doc>
|
||||
</method>
|
||||
|
||||
<!-- ************************************************************ -->
|
||||
<method name="EnableChargeThreshold">
|
||||
<arg name="chargeThreshold" direction="in" type="b">
|
||||
<doc:doc>
|
||||
<doc:summary>
|
||||
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.
|
||||
</doc:summary>
|
||||
</doc:doc>
|
||||
</arg>
|
||||
<doc:doc>
|
||||
<doc:description>
|
||||
<doc:para>
|
||||
Limiting the battery charge to the configured thresholds ChargeStartThreshold and ChargeEndThreshold.
|
||||
</doc:para>
|
||||
</doc:description>
|
||||
<doc:errors>
|
||||
<doc:error name="&ERROR_GENERAL;">if an error occured while setting the battery charge limits</doc:error>
|
||||
</doc:errors>
|
||||
</doc:doc>
|
||||
</method>
|
||||
|
||||
<!-- ************************************************************ -->
|
||||
<property name="NativePath" type="s" access="read">
|
||||
<doc:doc>
|
||||
|
|
@ -868,7 +891,6 @@ method return sender=:1.386 -> dest=:1.477 reply_serial=2
|
|||
</doc:description>
|
||||
</doc:doc>
|
||||
</property>
|
||||
|
||||
</interface>
|
||||
|
||||
</node>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue