udev rules for two devices with the same name

Barry Williams bazzawill at gmail.com
Thu Feb 19 13:13:53 CST 2009


Hi guys,
I am trying to get the dvico digital dual 4 remote to work with my
mythbuntu setup I have followed this guide
http://ubuntuforums.org/showthread.php?t=616103 with these exceptions
http://ubuntuforums.org/showpost.php?p=6232229&postcount=42 as I am
using a rev2 card except unlike tvars my /dev/input/eventx's do tend
to change, depending if I have my game pad plugged in or another
keyboard & mouse. I can get it to work by manually setting a simlink
to the first device and deleting the second device but is there a  way
to get udev to pick up the first
dKERNEL=="event*",SYSFS{name}=="IR-receiver inside an USB DVB
receiver",SYMLINK="input/irremote0"
KERNEL=="event*",SYSFS{name}=="IR-receiver inside an USB DVB
receiver",SYMLINK="input/irremote1" evice even thought they are both
labled exactly the same

last two line of output of dmesg|grep IR
[   11.007274] input: IR-receiver inside an USB DVB receiver as
/devices/pci0000:00/0000:00:14.4/0000:04:07.2/usb8/8-1/input/input8
[   11.399469] input: IR-receiver inside an USB DVB receiver as
/devices/pci0000:00/0000:00:14.4/0000:04:07.2/usb8/8-2/input/input9

I have tried something like this in /etc/udev/rules.d/60-symlinks.rules
KERNEL=="event*",SYSFS{name}=="IR-receiver inside an USB DVB
receiver",SYMLINK="input/irremote0"
KERNEL=="event*",SYSFS{name}=="IR-receiver inside an USB DVB
receiver",SYMLINK="input/irremote1"
but I still only get a symlink on /dev/input/irremote1 for the second
unworking device.

Any help would be much appreciated

Barry



More information about the linuxsa mailing list