[PATCH] OLPC's power management system provides battery charge change notifications

Daniel Drake dsd at laptop.org
Mon Aug 4 09:33:36 PDT 2008


This property indicates that there is no need for HAL to poll the
battery.
---
 fdi/information/10freedesktop/10-battery.fdi |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 fdi/information/10freedesktop/10-battery.fdi

diff --git a/fdi/information/10freedesktop/10-battery.fdi b/fdi/information/10freedesktop/10-battery.fdi
new file mode 100644
index 0000000..d777dc6
--- /dev/null
+++ b/fdi/information/10freedesktop/10-battery.fdi
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?> <!-- -*- xml -*- --> 
+
+<deviceinfo version="0.2">
+  <device>
+    <match key="info.category" string="battery">
+
+      <!-- OLPC's power management system provides charge level change notifications -->
+      <match key="info.udi" contains="olpc_battery">
+        <merge key="battery.change_notifications" type="bool">true</merge>
+      </match>
+
+    </match>
+  </device>
+</deviceinfo>
-- 
1.5.5.1


--=-oP4aaFrBGjGC8wLI2OKY--



More information about the hal mailing list