[clug] Re: udev rules for IR device

Paul mylists at wilsononline.id.au
Mon Mar 12 10:50:26 GMT 2007


I found this site which gave me a good in-sight to rule the correct rule
==> http://parker1.co.uk/mythtv_tips.php
it works now

Paul


On 12/03/2007 6:45 PM, Paul wrote:
> Has anyone experience in writing udev rules
> I have a DVB IR device as follows, which I moves around after reboots, I 
> was trying to create a symlink to pin this device down into a fixed name
> 
> eg
> #KERNEL=="event*", SYSFS{name}=="cx88 IR _digitalnow DNTV Live_ ", 
> SYMLINK+="irdvb0"
> 
> but I rebooted and nothing...
> any clues
> BTW I'm running Fedora Core 6
> 
> 
> udevinfo -a -p /class/input/event3
> 
> Udevinfo starts with the device specified by the devpath and then
> walks up the chain of parent devices. It prints for every device
> found, all possible attributes in the udev rules key format.
> A rule to match, can be composed by the attributes of the device
> and the attributes from one single parent device.
> 
>  looking at device '/class/input/input3/event3':
>    KERNEL=="event3"
>    SUBSYSTEM=="input"
>    SYSFS{dev}=="13:67"
> 
>  looking at parent device '/class/input/input3':
>    ID=="input3"
>    BUS=="input"
>    DRIVER==""
>    SYSFS{uniq}==""
>    SYSFS{phys}=="pci-0000:01:08.0/ir0"
>    SYSFS{name}=="cx88 IR _digitalnow DNTV Live_ "
> 
>  looking at parent device '/devices/pci0000:00/0000:00:09.0/0000:01:08.0':
>    ID=="0000:01:08.0"
>    BUS=="pci"
>    DRIVER=="cx8800"
>    SYSFS{msi_bus}==""
>    SYSFS{broken_parity_status}=="0"
>    SYSFS{enable}=="1"
>    SYSFS{modalias}=="pci:v000014F1d00008800sv00001822sd00000025bc04sc00i00"
>    SYSFS{local_cpus}=="ffffffff"
>    SYSFS{irq}=="21"
>    SYSFS{class}=="0x040000"
>    SYSFS{subsystem_device}=="0x0025"
>    SYSFS{subsystem_vendor}=="0x1822"
>    SYSFS{device}=="0x8800"
>    SYSFS{vendor}=="0x14f1"
> 
>  looking at parent device '/devices/pci0000:00/0000:00:09.0':
>    ID=="0000:00:09.0"
>    BUS=="pci"
>    DRIVER==""
>    SYSFS{msi_bus}=="1"
>    SYSFS{broken_parity_status}=="0"
>    SYSFS{enable}=="1"
>    SYSFS{modalias}=="pci:v000010DEd0000005Csv00000000sd00000000bc06sc04i01"
>    SYSFS{local_cpus}=="ffffffff"
>    SYSFS{irq}=="0"
>    SYSFS{class}=="0x060401"
>    SYSFS{subsystem_device}=="0x0000"
>    SYSFS{subsystem_vendor}=="0x0000"
>    SYSFS{device}=="0x005c"
>    SYSFS{vendor}=="0x10de"
> 
>  looking at parent device '/devices/pci0000:00':
>    ID=="pci0000:00"
>    BUS==""
>    DRIVER==""
> 
> 
> Thanks
> Paul
> 




More information about the linux mailing list