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

Richard Hughes hughsient at kemper.freedesktop.org
Sun May 14 12:13:37 PDT 2006


Update of /cvs/hal/hal/fdi/policy/10osvendor
In directory kemper:/tmp/cvs-serv23502/fdi/policy/10osvendor

Modified Files:
	10-laptop-panel-mgmt-policy.fdi 
Log Message:
2006-05-14  Richard Hughes  <richard at hughsie.com>

	* doc/spec/hal-spec-properties.xml:
	* fdi/policy/10osvendor/10-laptop-panel-mgmt-policy.fdi:
	On some laptops, the brightness control is all done in hardware
	but the hardware also synthesizes keypresses when the brightness is
	changed.
	If laptop_panel.brightness_in_hardware is set true, then any
	power manager software should not attempt to set any new values on
	brightness keypress, as it may cause the panel to flash uncontrollably.
	This patch sets the aforementioned key for the IBM ThinkPad X31.


Index: 10-laptop-panel-mgmt-policy.fdi
===================================================================
RCS file: /cvs/hal/hal/fdi/policy/10osvendor/10-laptop-panel-mgmt-policy.fdi,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- 10-laptop-panel-mgmt-policy.fdi	3 Sep 2005 15:55:11 -0000	1.1
+++ 10-laptop-panel-mgmt-policy.fdi	14 May 2006 19:13:35 -0000	1.2
@@ -16,4 +16,17 @@
     </match>
   </device>
 
+  <!-- On some borken laptops, the brightness control is all done in hardware
+       but the hardware also synthesizes keypresses when the brightness is
+       changed. This gives power manager software problems as the brightness
+       can get into a feedback state so the panel flashes uncontrollably.
+       This is a hardware "feature" seen on IBM x31 laptops. -->
+  <device>
+    <match key="smbios.system.manufacturer" string="IBM">
+      <match key="smbios.system.version" string="ThinkPad X31">
+        <merge key="laptop_panel.brightness_in_hardware" type="bool">true</merge>
+      </match>
+    </match>
+  </device>
+
 </deviceinfo>




More information about the hal-commit mailing list