mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-05 11:08:00 +02:00
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:
parent
89c6d2726e
commit
9ee3a36a6e
1 changed files with 50 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue