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-macbookpro-utils.fdi < prev    next >
Extensible Markup Language  |  2006-11-29  |  2KB  |  45 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3.  
  4. <deviceinfo version="0.2">
  5.   <!-- this is for Macbook Pro (LCD panel, light sensor, keyboard backlight) -->
  6.   <device>
  7.     <match key="system.kernel.name" string="Linux">
  8.       <match key="smbios.system.manufacturer" string="Apple Computer, Inc.">
  9.         <match key="smbios.system.product" string="MacBookPro1,1">
  10.           <spawn udi="/org/freedesktop/Hal/devices/macbook_pro_light_sensor"/>
  11.           <spawn udi="/org/freedesktop/Hal/devices/macbook_pro_keyboard_backlight"/>
  12.           <spawn udi="/org/freedesktop/Hal/devices/macbook_pro_lcd_panel"/>
  13.         </match>
  14.       </match>
  15.     </match>
  16.   </device>
  17.   <device>
  18.     <match key="info.udi" string="/org/freedesktop/Hal/devices/macbook_pro_lcd_panel">
  19.       <append key="info.capabilities" type="strlist">laptop_panel</append>
  20.       <merge key="info.product" type="string">MacBook Pro Laptop Panel</merge>
  21.       <merge key="laptop_panel.access_method" type="string">custom</merge>
  22.       <merge key="laptop_panel.num_levels" type="int">229</merge>
  23.       <append key="info.addons" type="strlist">hald-addon-macbookpro-backlight</append>
  24.     </match>
  25.   </device>
  26.   <device>
  27.     <match key="info.udi" string="/org/freedesktop/Hal/devices/macbook_pro_light_sensor">
  28.       <append key="info.capabilities" type="strlist">light_sensor</append>
  29.       <merge key="info.product" type="string">MacBook Pro Light Sensor</merge>
  30.       <merge key="light_sensor.num_sensors" type="int">2</merge>
  31.       <merge key="light_sensor.num_levels" type="int">256</merge>
  32.       <append key="light_sensor.sensor_locations" type="strlist">right</append>
  33.       <append key="light_sensor.sensor_locations" type="strlist">left</append>
  34.     </match>
  35.   </device>
  36.   <device>
  37.     <match key="info.udi" string="/org/freedesktop/Hal/devices/macbook_pro_keyboard_backlight">
  38.       <append key="info.capabilities" type="strlist">keyboard_backlight</append>
  39.       <merge key="info.product" type="string">MacBook Pro Keyboard Backlight</merge>
  40.       <merge key="keyboard_backlight.num_levels" type="int">256</merge>
  41.     </match>
  42.   </device>
  43.  
  44. </deviceinfo>
  45.