hal/fdi/policy/10osvendor 10-power-mgmt-policy.fdi,1.1,1.2

David Zeuthen david at freedesktop.org
Sun May 8 20:43:28 PDT 2005


Update of /cvs/hal/hal/fdi/policy/10osvendor
In directory gabe:/tmp/cvs-serv17086/fdi/policy/10osvendor

Modified Files:
	10-power-mgmt-policy.fdi 
Log Message:
2005-05-08  David Zeuthen  <davidz at redhat.com>

        * hald/linux2/addons/addon-pmu.c: New file (polls /dev/apm for
        lid button events)

        * hald/linux2/addons/Makefile.am (libexec_PROGRAMS): Also build
        hald-addon-pmu

        * hald/linux2/pmu.c (battery_refresh): Support battery.current
        (lid_button_refresh): New function
        (pmu_lid_compute_udi): New function
        (pmu_poll): New function
        (pmu_synthesize_hotplug_events): Add lid object and setup a timeout
        for polling

        * fdi/policy/10osvendor/10-power-mgmt-policy.fdi: Run the pmu addon
        to detect lid button events.



Index: 10-power-mgmt-policy.fdi
===================================================================
RCS file: /cvs/hal/hal/fdi/policy/10osvendor/10-power-mgmt-policy.fdi,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- 10-power-mgmt-policy.fdi	24 Feb 2005 16:50:34 -0000	1.1
+++ 10-power-mgmt-policy.fdi	9 May 2005 03:43:26 -0000	1.2
@@ -14,4 +14,12 @@
     </match>
   </device>
 
+  <device>
+    <match key="button.type" string="lid">
+      <match key="linux.pmu_type" exists="true">
+	<append key="info.addons" type="strlist">hald-addon-pmu</append>
+      </match>
+    </match>
+  </device>
+
 </deviceinfo>




More information about the hal-commit mailing list