home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / boot / i386 / rescue / usr / share / hal / fdi / policy / 10osvendor / 10-laptop-panel-mgmt-policy.fdi < prev    next >
Extensible Markup Language  |  2006-11-29  |  3KB  |  51 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <deviceinfo version="0.2">
  4.  
  5.   <device>
  6.     <match key="info.category" string="laptop_panel">
  7.       <append key="info.interfaces" type="strlist">org.freedesktop.Hal.Device.LaptopPanel</append>
  8.  
  9.       <append key="org.freedesktop.Hal.Device.LaptopPanel.method_names" type="strlist">SetBrightness</append>
  10.       <append key="org.freedesktop.Hal.Device.LaptopPanel.method_signatures" type="strlist">i</append>
  11.       <append key="org.freedesktop.Hal.Device.LaptopPanel.method_argnames" type="strlist">brightness_value</append>
  12.       <append key="org.freedesktop.Hal.Device.LaptopPanel.method_execpaths" type="strlist">hal-system-lcd-set-brightness</append>
  13.  
  14.       <append key="org.freedesktop.Hal.Device.LaptopPanel.method_names" type="strlist">GetBrightness</append>
  15.       <append key="org.freedesktop.Hal.Device.LaptopPanel.method_signatures" type="strlist"></append>
  16.       <append key="org.freedesktop.Hal.Device.LaptopPanel.method_argnames" type="strlist"></append>
  17.       <append key="org.freedesktop.Hal.Device.LaptopPanel.method_execpaths" type="strlist">hal-system-lcd-get-brightness</append>
  18.     </match>
  19.   </device>
  20.  
  21.   <!-- On some borken laptops, the brightness control is all done in hardware
  22.        but the hardware also synthesizes keypresses when the brightness is
  23.        changed. This gives power manager software problems as the brightness
  24.        can get into a feedback state so the panel flashes uncontrollably.
  25.        This is a hardware "feature" seen on some IBM and Lenovo laptops. -->
  26.   <device>
  27.     <match key="info.category" string="laptop_panel">
  28.       <match key="/org/freedesktop/Hal/devices/computer:smbios.system.manufacturer" string="IBM">
  29.         <match key="/org/freedesktop/Hal/devices/computer:smbios.system.version" string="ThinkPad X31">
  30.           <merge key="laptop_panel.brightness_in_hardware" type="bool">true</merge>
  31.         </match>
  32.       </match>
  33.       <match key="/org/freedesktop/Hal/devices/computer:smbios.system.manufacturer" string="LENOVO">
  34.         <match key="/org/freedesktop/Hal/devices/computer:smbios.system.version" string="ThinkPad Z31t">
  35.           <merge key="laptop_panel.brightness_in_hardware" type="bool">true</merge>
  36.         </match>
  37.         <match key="/org/freedesktop/Hal/devices/computer:smbios.system.version" string="ThinkPad T60">
  38.           <merge key="laptop_panel.brightness_in_hardware" type="bool">true</merge>
  39.         </match>
  40.         <match key="/org/freedesktop/Hal/devices/computer:smbios.system.version" string="ThinkPad X60">
  41.           <merge key="laptop_panel.brightness_in_hardware" type="bool">true</merge>
  42.         </match>
  43.         <match key="/org/freedesktop/Hal/devices/computer:smbios.system.version" string="ThinkPad X60s">
  44.           <merge key="laptop_panel.brightness_in_hardware" type="bool">true</merge>
  45.         </match>
  46.       </match>
  47.     </match>
  48.   </device>
  49.  
  50. </deviceinfo>
  51.