Matching problems

David Zeuthen david at fubar.dk
Tue Jun 5 13:13:04 PDT 2007


On Tue, 2007-06-05 at 18:42 +0100, Richard Hughes wrote:
> I can't seem to get matching to work for the backlight panel anymore:
> 
>    <match key="info.category" string="laptop_panel">
>       <merge key="laptop_panel.brightness_in_hardware.yyyyyyyyyyyy" type="bool">true</merge>
>       <match key="/org/freedesktop/Hal/devices/computer:system.hardware.vendor" string="LENOVO">
>         <merge key="laptop_panel.brightness_in_hardware.zzzzzzzzzz" type="bool">true</merge>
>         <match key="/org/freedesktop/Hal/devices/computer:system.hardware.version" string="ThinkPad X60">
>           <merge key="laptop_panel.brightness_in_hardware.xxxxxxxxxxxxx" type="bool">true</merge>
>         </match>
>       </match>
>     </match>
> 
>   system.hardware.vendor = 'LENOVO'  (string)
>   system.hardware.version = 'ThinkPad X60'  (string)
> 
> I get yyyyyyyyy merged but not zzzzzzzzzzz or xxxxxxxxxx. I smell a
> matching bug somewhere, anyone got any ideas?

I bet laptop_panel is on the computer root device and the UDI isn't set
that early. So that's why only yyyyyyyyyy is merged. We should probably
special case that; e.g. set the UDI for the computer root device at
temporary device object creation time. Makes sense?

      David




More information about the hal mailing list