1N/A<?xml version="1.0" encoding="UTF-8"?>
1N/A
1N/A<deviceinfo version="0.2">
1N/A
1N/A <device>
1N/A <match key="info.category" string="laptop_panel">
1N/A <append key="info.interfaces" type="strlist">org.freedesktop.Hal.Device.LaptopPanel</append>
1N/A
1N/A <append key="org.freedesktop.Hal.Device.LaptopPanel.method_names" type="strlist">SetBrightness</append>
1N/A <append key="org.freedesktop.Hal.Device.LaptopPanel.method_signatures" type="strlist">i</append>
1N/A <append key="org.freedesktop.Hal.Device.LaptopPanel.method_argnames" type="strlist">brightness_value</append>
1N/A <append key="org.freedesktop.Hal.Device.LaptopPanel.method_execpaths" type="strlist">hal-system-lcd-set-brightness</append>
1N/A
1N/A <append key="org.freedesktop.Hal.Device.LaptopPanel.method_names" type="strlist">GetBrightness</append>
1N/A <append key="org.freedesktop.Hal.Device.LaptopPanel.method_signatures" type="strlist"></append>
1N/A <append key="org.freedesktop.Hal.Device.LaptopPanel.method_argnames" type="strlist"></append>
1N/A <append key="org.freedesktop.Hal.Device.LaptopPanel.method_execpaths" type="strlist">hal-system-lcd-get-brightness</append>
1N/A </match>
1N/A </device>
1N/A
1N/A <!-- On some borken laptops, the brightness control is all done in hardware
1N/A but the hardware also synthesizes keypresses when the brightness is
1N/A changed. This gives power manager software problems as the brightness
1N/A can get into a feedback state so the panel flashes uncontrollably.
1N/A This is a hardware "feature" seen on IBM x31 laptops. -->
1N/A <device>
1N/A <match key="info.category" string="laptop_panel">
1N/A <match key="/org/freedesktop/Hal/devices/computer:smbios.system.manufacturer" string="IBM">
1N/A <match key="/org/freedesktop/Hal/devices/computer:smbios.system.version" string="ThinkPad X31">
1N/A <merge key="laptop_panel.brightness_in_hardware" type="bool">true</merge>
1N/A </match>
1N/A </match>
1N/A </match>
1N/A </device>
1N/A
1N/A <!-- this is for Macbook Pro (LCD panel, light sensor, keyboard backlight) -->
1N/A <device>
1N/A <match key="system.kernel.name" string="Linux">
1N/A <match key="smbios.system.manufacturer" string="Apple Computer, Inc.">
1N/A <match key="smbios.system.product" string="MacBookPro1,1">
1N/A <spawn udi="/org/freedesktop/Hal/devices/macbook_pro_light_sensor"/>
1N/A <spawn udi="/org/freedesktop/Hal/devices/macbook_pro_keyboard_backlight"/>
1N/A <spawn udi="/org/freedesktop/Hal/devices/macbook_pro_lcd_panel"/>
1N/A </match>
1N/A </match>
1N/A </match>
1N/A </device>
1N/A <device>
1N/A <match key="info.udi" string="/org/freedesktop/Hal/devices/macbook_pro_lcd_panel">
1N/A <append key="info.capabilities" type="strlist">laptop_panel</append>
1N/A <merge key="info.product" type="string">MacBook Pro Laptop Panel</merge>
1N/A <merge key="laptop_panel.access_method" type="string">custom</merge>
1N/A <merge key="laptop_panel.num_levels" type="int">229</merge>
1N/A <append key="info.addons" type="strlist">hald-addon-macbookpro-backlight</append>
1N/A </match>
1N/A </device>
1N/A <device>
1N/A <match key="info.udi" string="/org/freedesktop/Hal/devices/macbook_pro_light_sensor">
1N/A <append key="info.capabilities" type="strlist">light_sensor</append>
1N/A <merge key="info.product" type="string">MacBook Pro Light Sensor</merge>
1N/A <merge key="light_sensor.num_sensors" type="int">2</merge>
1N/A <merge key="light_sensor.num_levels" type="int">256</merge>
1N/A <append key="light_sensor.sensor_locations" type="strlist">right</append>
1N/A <append key="light_sensor.sensor_locations" type="strlist">left</append>
1N/A </match>
1N/A </device>
1N/A <device>
1N/A <match key="info.udi" string="/org/freedesktop/Hal/devices/macbook_pro_keyboard_backlight">
1N/A <append key="info.capabilities" type="strlist">keyboard_backlight</append>
1N/A <merge key="info.product" type="string">MacBook Pro Keyboard Backlight</merge>
1N/A <merge key="keyboard_backlight.num_levels" type="int">256</merge>
1N/A </match>
1N/A </device>
1N/A
1N/A</deviceinfo>