[mythtv-users] Fix lirc devices to desired names
Hika van den Hoven
hikavdh at gmail.com
Sun Aug 31 11:10:11 UTC 2014
Hoi Josu,
Sunday, August 31, 2014, 12:30:24 PM, you wrote:
> Hello all,
> I have two IR device in my frontend, and integrated CIR and USB MCE:
> $ dmesg | grep lirc
> [ 3.710645] lirc_dev: IR Remote Control driver registered, major 251
> [ 3.721774] rc rc0: lirc_dev: driver ir-lirc-codec (nuvoton-cir)
> registered at minor = 0
> [ 3.721921] rc rc1: lirc_dev: driver ir-lirc-codec (mceusb)
> registered at minor = 1
> So there are 2 lirc devices:
> # ls -l /dev/lirc*
> crw-rw---T 1 root video 250, 0 Aug 31 10:22 /dev/lirc0
> crw-rw---T 1 root video 250, 1 Aug 31 12:22 /dev/lirc1
> lrwxrwxrwx 1 root root 21 Aug 31 12:22 /dev/lircd -> ../var/run/lirc/lircd
> Sometimes they switch the numbesr (0 and 1), so I can not know wich
> device is each.
> I can not disable the CIR device because it is in the board, so I want
> to fix the names of the devices to use them, something like this:
/dev/lirc0 ->> /dev/lirc_cir
/dev/lirc1 ->> /dev/lirc_mce
> Is this possible?
> Thanks and best regards.
Give the output off:
udevadm info --attribute-walk --path $(udevadm info --query path --name=/dev/lirc0)
and
udevadm info --attribute-walk --path $(udevadm info --query path --name=/dev/lirc1)
and I'll give you an udev rule for both.
Tot mails,
Hika mailto:hikavdh at gmail.com
"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"
De lerende Mens
More information about the mythtv-users
mailing list