[mythtv-users] Only one of two IR receivers are configured during boot
Peter Carlsson
maillist.peter at home.se
Thu Jan 2 00:48:43 UTC 2020
On Thu, Jan 02, 2020 at 10:49:47AM +1100, lists at arewethere.net wrote:
> 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
>
Thanks for the help! But will this take me all the way?
Maybe I misunderstand something but this will only ensure that I always
have the same symlink names? What I also think is needed is for the
Hauppauge card to also load the correct IR driver.
Comparing the two IR receivers only one have a driver loaded.
Driver: (null), table: rc-dib0700-rc
Driver: em28xx, table: rc-pinnacle-pctv-hd
/Peter
More information about the mythtv-users
mailing list