[mythtv-users] Only one of two IR receivers are configured during boot
lists at arewethere.net
lists at arewethere.net
Wed Jan 1 23:49:47 UTC 2020
On Wed, Jan 01, 2020 at 11:57:51PM +0100, Peter Carlsson wrote:
> Hello!
>
> Ever since I upgraded to Debian Buster the prefered IR receiver (out of
> two) is not fully configured during boot.
>
> I guess I can solve this by some udev rule and hope that someone here
> could help me since I don't know much about udev rules.
>
My suggestion:
This will give you a list of active input devices
$ ls /sys/class/rc/rc*/input*/name
/sys/class/rc/rc0/input14/name
This will tell you the 'name' attribute for each
$ cat /sys/class/rc/rc*/input*/name
DViCO FusionHDTV DVB-T Dual Digital 4
Then you should be able to write something like this
$ cat /etc/udev/rules.d/10-persistent-ir.rules
KERNEL=="event*",ATTRS{name}=="DViCO FusionHDTV DVB-T Dual Digital 4",SYMLINK="input/dvico-remote"
which will create /dev/input/dvico-remote
To test, first find the event number associated with the input
$ ls -F /sys/class/rc/rc0/input14/
capabilities/ device@ event9/ id/ modalias name phys power/
properties subsystem@ uevent uniq
$ sudo udevadm test /class/input/event9
<buried in the output you should see something like:
creating link '/dev/input/dvico-remote' to '/dev/input/event9' >
$ echo $?
0
Kind regards
More information about the mythtv-users
mailing list