dbus: Define CapacityLevel, VoltageMinDesign and VoltageMaxDesign properties

Some drivers provide capacity_level, voltage_min_design, and voltage_max_design
properties on sysfs even for system supplies. Expose these properties over DBus
for consumption by clients.

Related: #301

Signed-off-by: Sicelo A. Mhlongo <absicsz@gmail.com>
This commit is contained in:
Sicelo A. Mhlongo 2025-03-30 19:44:31 +02:00 committed by Kate Hsuan
parent 89c6d2726e
commit 9ee3a36a6e

View file

@ -893,6 +893,56 @@ method return sender=:1.386 -> dest=:1.477 reply_serial=2
</doc:description>
</doc:doc>
</property>
<property name="VoltageMinDesign" type="d" access="read">
<doc:doc>
<doc:description>
<doc:para>
The minimum design voltage of the battery, as reported by the kernel.
</doc:para>
</doc:description>
</doc:doc>
</property>
<property name="VoltageMaxDesign" type="d" access="read">
<doc:doc>
<doc:description>
<doc:para>
The maximum design voltage of the battery, as reported by the kernel.
</doc:para>
</doc:description>
</doc:doc>
</property>
<property name="CapacityLevel" type="s" access="read">
<doc:doc>
<doc:description>
<doc:para>
Coarse representation of battery capacity. The value is one of the following:
</doc:para>
<doc:list>
<doc:item>
<doc:term>Unknown</doc:term>
</doc:item>
<doc:item>
<doc:term>Critical</doc:term>
</doc:item>
<doc:item>
<doc:term>Low</doc:term>
</doc:item>
<doc:item>
<doc:term>Normal</doc:term>
</doc:item>
<doc:item>
<doc:term>High</doc:term>
</doc:item>
<doc:item>
<doc:term>Full</doc:term>
</doc:item>
</doc:list>
</doc:description>
</doc:doc>
</property>
</interface>
</node>