[mythtv-users] Problems after upgrading frontend from Mythbuntu 12.04 to 14.04

Alec Leamas leamas.alec at gmail.com
Wed Dec 9 11:29:55 UTC 2015


On 09/12/15 08:32, Phill Edwards wrote:
> 
> 
> On 9 December 2015 at 17:55, Alec Leamas <leamas.alec at gmail.com
> <mailto:leamas.alec at gmail.com>> wrote:
> 
>     On 09/12/15 02:50, Phill Edwards wrote:
> 
>     > Because /dev/input/eventX changes every boot, I've also got a udev rule
>     > that creates a symlink to whatever /dev/input/eventX has been allocated
>     > by the kernel on boot. For posterity my rule is
>     > in /etc/udev/rules.d/10-local.rules and looks like this:
>     >
>     > # Feature Integration Technology Inc. (Fintek) F71610A or F71612A
>     > Consumer Infrared Receiver/Transceiver (branded as HP)
>     > SUBSYSTEM=="input", KERNEL=="event*", ATTRS{idVendor}=="1934",
>     > ATTRS{idProduct}=="5168", SYMLINK+="lirc-hp"
>     >
>     > This ensures that there's always a symlink pointing to the right event ID:
>     >
>     > $ ls -l /dev/lirc*
>     > crw------- 1 root root 247, 0 Dec  9 12:32 /dev/lirc0
>     > lrwxrwxrwx 1 root root     15 Dec  9 12:32 /dev/lircd -> /run/lirc/lircd
>     > lrwxrwxrwx 1 root root     12 Dec  9 12:32 /dev/lirc-hp -> input/event8
>     >
>     > I reference device this in etc/lirc/hardware.conf (instead of
>     > REMOTE_DEVICE="/dev/input/event8")
> 
>     This should work just fine. However, note that the creating a udev rule
>     is not really necessary in this case [1]
> 
>     Cheers!
> 
>     --alec
> 
> 
>     [1] http://lirc.org/html/configuration-guide.html#appendix-6
> 
> 
> Yeah, I read that but didn't fully understand it. Like a lot of Lirc
> docco it's not really clear! The link says:
> 
> <snip>
> The first step is to inspect dmesg after connecting the device. There
> you should find something like:
>     rc0: Media Center Ed. eHome Infrared Remote Transceiver (1784:0001) as
>         /devices/pci0000:00/0000:00:12.0/usb4/4-4/4-4:1.0/rc/rc0    
> Here you can see the device's name: "Media center Ed. eHome..." and it's
> address: ...usb4/4-4/4-4:1.0/rc/rc0.
> As long as you have only one remote of each kind you can use simple name
> matching like in
>        --device=name='*eHome*'
> </snip>
> 
> Where would you be using --device=name='*eHome*'? Is that if you're
> running Lirc from a command line rather than in daemon mode? I'm running
> it in daemon mode, so would I add this line in /etc/lirc/hardware.conf:
> 
> REMOTE_DEVICE="name='*eHome*'"

Yup, although it has nothing to do with "daemon mode". It's about using
hardware.conf, which is a Debianism eventually to be obsoleted. But
that's another story.

That said, I'm not 100% sure how the shell quoting is applied to the
hardware.conf stuff. You might need to either remove or escape the
single quotes.

Cheers!

--alec


Cheers!

--alec





More information about the mythtv-users mailing list