hal: Branch 'master'
Danny Kukawka
dkukawka at kemper.freedesktop.org
Wed May 23 11:14:37 PDT 2007
fdi/policy/10osvendor/10-laptop-panel-mgmt-policy.fdi | 24 ++++++++++--------
fdi/policy/10osvendor/10-macbook-backlight.fdi | 1
fdi/policy/10osvendor/10-macbookpro-utils.fdi | 1
fdi/policy/10osvendor/10-omap-backlight.fdi | 1
4 files changed, 17 insertions(+), 10 deletions(-)
New commits:
diff-tree 596b57f35cf4fdb4be919de0b4270e9c28edb16e (from 366ab0006278f6c23fc3c33dea7eb61a42fe941e)
Author: Danny Kukawka <danny.kukawka at web.de>
Date: Wed May 23 20:11:35 2007 +0200
set info.category='laptop_panel' for all laptop panels
This patch sets info.category='laptop_panel' for all laptop panels. Set
org.freedesktop.Hal.Device.LaptopPanel.method_* keys only if the value
of laptop_panel.access_method is not 'custom'.
diff --git a/fdi/policy/10osvendor/10-laptop-panel-mgmt-policy.fdi b/fdi/policy/10osvendor/10-laptop-panel-mgmt-policy.fdi
index c982099..d717a8a 100644
--- a/fdi/policy/10osvendor/10-laptop-panel-mgmt-policy.fdi
+++ b/fdi/policy/10osvendor/10-laptop-panel-mgmt-policy.fdi
@@ -4,17 +4,21 @@
<device>
<match key="info.category" string="laptop_panel">
- <append key="info.interfaces" type="strlist">org.freedesktop.Hal.Device.LaptopPanel</append>
+ <!-- only set if the laptop_panel.access_method is not custom -->
+ <match key="laptop_panel.access_method" compare_ne="custom">
+ <append key="info.interfaces" type="strlist">org.freedesktop.Hal.Device.LaptopPanel</append>
- <append key="org.freedesktop.Hal.Device.LaptopPanel.method_names" type="strlist">SetBrightness</append>
- <append key="org.freedesktop.Hal.Device.LaptopPanel.method_signatures" type="strlist">i</append>
- <append key="org.freedesktop.Hal.Device.LaptopPanel.method_argnames" type="strlist">brightness_value</append>
- <append key="org.freedesktop.Hal.Device.LaptopPanel.method_execpaths" type="strlist">hal-system-lcd-set-brightness</append>
-
- <append key="org.freedesktop.Hal.Device.LaptopPanel.method_names" type="strlist">GetBrightness</append>
- <append key="org.freedesktop.Hal.Device.LaptopPanel.method_signatures" type="strlist"></append>
- <append key="org.freedesktop.Hal.Device.LaptopPanel.method_argnames" type="strlist"></append>
- <append key="org.freedesktop.Hal.Device.LaptopPanel.method_execpaths" type="strlist">hal-system-lcd-get-brightness</append>
+ <append key="org.freedesktop.Hal.Device.LaptopPanel.method_names" type="strlist">SetBrightness</append>
+ <append key="org.freedesktop.Hal.Device.LaptopPanel.method_signatures" type="strlist">i</append>
+ <append key="org.freedesktop.Hal.Device.LaptopPanel.method_argnames" type="strlist">brightness_value</append>
+ <append key="org.freedesktop.Hal.Device.LaptopPanel.method_execpaths" type="strlist">hal-system-lcd-set-brightness</append>
+
+ <append key="org.freedesktop.Hal.Device.LaptopPanel.method_names" type="strlist">GetBrightness</append>
+ <append key="org.freedesktop.Hal.Device.LaptopPanel.method_signatures" type="strlist"></append>
+ <append key="org.freedesktop.Hal.Device.LaptopPanel.method_argnames" type="strlist"></append>
+ <append key="org.freedesktop.Hal.Device.LaptopPanel.method_execpaths" type="strlist">hal-system-lcd-get-brightness</append>
+
+ </match>
</match>
</device>
diff --git a/fdi/policy/10osvendor/10-macbook-backlight.fdi b/fdi/policy/10osvendor/10-macbook-backlight.fdi
index 227bbb5..a22fb20 100644
--- a/fdi/policy/10osvendor/10-macbook-backlight.fdi
+++ b/fdi/policy/10osvendor/10-macbook-backlight.fdi
@@ -13,6 +13,7 @@
<device>
<match key="info.udi" string="/org/freedesktop/Hal/devices/macbook_backlight">
<append key="info.capabilities" type="strlist">laptop_panel</append>
+ <merge key="info.category" type="string">laptop_panel</merge>
<merge key="info.product" type="string">MacBook Backlight Control</merge>
<merge key="laptop_panel.access_method" type="string">custom</merge>
<merge key="laptop_panel.num_levels" type="int">118</merge>
diff --git a/fdi/policy/10osvendor/10-macbookpro-utils.fdi b/fdi/policy/10osvendor/10-macbookpro-utils.fdi
index 8aed6c0..f02c614 100644
--- a/fdi/policy/10osvendor/10-macbookpro-utils.fdi
+++ b/fdi/policy/10osvendor/10-macbookpro-utils.fdi
@@ -32,6 +32,7 @@
<device>
<match key="info.udi" string="/org/freedesktop/Hal/devices/macbook_pro_lcd_panel">
<append key="info.capabilities" type="strlist">laptop_panel</append>
+ <merge key="info.category" type="string">laptop_panel</merge>
<merge key="info.product" type="string">MacBook Pro Laptop Panel</merge>
<merge key="laptop_panel.access_method" type="string">custom</merge>
<merge key="laptop_panel.num_levels" type="int">229</merge>
diff --git a/fdi/policy/10osvendor/10-omap-backlight.fdi b/fdi/policy/10osvendor/10-omap-backlight.fdi
index 5d3f1ce..2f041a1 100644
--- a/fdi/policy/10osvendor/10-omap-backlight.fdi
+++ b/fdi/policy/10osvendor/10-omap-backlight.fdi
@@ -10,6 +10,7 @@
<device>
<match key="info.udi" string="/org/freedesktop/Hal/devices/omapfb_bl">
<merge key="info.product" type="string">OMAP LCD controller and panel</merge>
+ <merge key="info.category" type="string">laptop_panel</merge>
<append key="info.capabilities" type="strlist">laptop_panel</append>
<merge key="laptop_panel.access_method" type="string">custom</merge>
<merge key="laptop_panel.num_levels" type="int">15</merge>
More information about the hal-commit
mailing list