summaryrefslogtreecommitdiff
path: root/src/org.freedesktop.UPower.Device.xml
diff options
context:
space:
mode:
authorSeth Forshee <seth.forshee@canonical.com>2013-08-13 10:51:48 -0500
committerMartin Pitt <martinpitt@gnome.org>2013-08-23 08:45:57 +0200
commiteaf86482a925e69e6e32973184164c6b8e5391d0 (patch)
treee33a24e3bd9583adff60806599d67afbf9f5d742 /src/org.freedesktop.UPower.Device.xml
parent03f67aabfe2a01ebfbcb424fa193c02be8f0906e (diff)
downloadupower-eaf86482a925e69e6e32973184164c6b8e5391d0.tar.gz
Add temperature property for batteries
Linux's power_supply class supports a temperature attribute, which is supported by many battery drivers. Add a new property to export this information and support this property in Linux. https://bugs.freedesktop.org/show_bug.cgi?id=68338 Signed-off-by: Seth Forshee <seth.forshee@canonical.com> Signed-off-by: Martin Pitt <martinpitt@gnome.org>
Diffstat (limited to 'src/org.freedesktop.UPower.Device.xml')
-rw-r--r--src/org.freedesktop.UPower.Device.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/org.freedesktop.UPower.Device.xml b/src/org.freedesktop.UPower.Device.xml
index 04ea4da..0be009c 100644
--- a/src/org.freedesktop.UPower.Device.xml
+++ b/src/org.freedesktop.UPower.Device.xml
@@ -544,6 +544,19 @@ method return sender=:1.386 -> dest=:1.477 reply_serial=2
</doc:doc>
</property>
+ <property name="Temperature" type="d" access="read">
+ <doc:doc>
+ <doc:description>
+ <doc:para>
+ The temperature of the device in degrees Celsius. This property is
+ only valid if the property
+ <doc:ref type="property" to="Source:Type">type</doc:ref>
+ has the value "battery".
+ </doc:para>
+ </doc:description>
+ </doc:doc>
+ </property>
+
<property name="IsPresent" type="b" access="read">
<doc:doc>
<doc:description>