[mythtv-users] udev rules for two devices with the same name

Harry Orenstein holists at verizon.net
Thu Feb 19 04:04:41 UTC 2009


On Wednesday 18 February 2009 09:43:53 pm Barry Williams wrote:
> 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
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

http://reactivated.net/writing_udev_rules.html

Dump the attributes for the device and find one to base your rule on.


-- Harry O.


More information about the mythtv-users mailing list