summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2019-05-07 12:54:57 +0200
committerBastien Nocera <hadess@hadess.net>2019-05-07 11:44:22 +0000
commitc7104a19b3fe4fe8cf3735f1a0e1e8d06908e0ae (patch)
treea32eab1fd7d440a74ffd17ea38a6380e5b7433ca
parent1c6a6bfbbb01aa92b4550c1e3a087b1c0f7ef310 (diff)
downloadupower-c7104a19b3fe4fe8cf3735f1a0e1e8d06908e0ae.tar.gz
docs: Mention that not all batteries are laptop batteries
They might be device batteries where the device type is not known or catalogued.
-rw-r--r--dbus/org.freedesktop.UPower.Device.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/dbus/org.freedesktop.UPower.Device.xml b/dbus/org.freedesktop.UPower.Device.xml
index d20f13e..4f042c1 100644
--- a/dbus/org.freedesktop.UPower.Device.xml
+++ b/dbus/org.freedesktop.UPower.Device.xml
@@ -336,6 +336,12 @@ method return sender=:1.386 -> dest=:1.477 reply_serial=2
<doc:term>8</doc:term><doc:definition>Phone</doc:definition>
</doc:item>
</doc:list>
+ <doc:para>
+ If the value is set to "Battery", you will need to verify that the
+ property <doc:ref type="property" to="Source:PowerSupply">power-supply</doc:ref>
+ has the value "true" before considering it as a laptop battery. Otherwise it
+ will likely be the battery for a device of an unknown type.
+ </doc:para>
</doc:description>
</doc:doc>
</property>