<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 9 December 2015 at 17:55, Alec Leamas <span dir="ltr"><<a href="mailto:leamas.alec@gmail.com" target="_blank">leamas.alec@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 09/12/15 02:50, Phill Edwards wrote:<br>
<br>
> Because /dev/input/eventX changes every boot, I've also got a udev rule<br>
> that creates a symlink to whatever /dev/input/eventX has been allocated<br>
> by the kernel on boot. For posterity my rule is<br>
> in /etc/udev/rules.d/10-local.rules and looks like this:<br>
><br>
> # Feature Integration Technology Inc. (Fintek) F71610A or F71612A<br>
> Consumer Infrared Receiver/Transceiver (branded as HP)<br>
> SUBSYSTEM=="input", KERNEL=="event*", ATTRS{idVendor}=="1934",<br>
> ATTRS{idProduct}=="5168", SYMLINK+="lirc-hp"<br>
><br>
> This ensures that there's always a symlink pointing to the right event ID:<br>
><br>
> $ ls -l /dev/lirc*<br>
> crw------- 1 root root 247, 0 Dec  9 12:32 /dev/lirc0<br>
> lrwxrwxrwx 1 root root     15 Dec  9 12:32 /dev/lircd -> /run/lirc/lircd<br>
> lrwxrwxrwx 1 root root     12 Dec  9 12:32 /dev/lirc-hp -> input/event8<br>
><br>
> I reference device this in etc/lirc/hardware.conf (instead of<br>
> REMOTE_DEVICE="/dev/input/event8")<br>
<br>
</span>This should work just fine. However, note that the creating a udev rule<br>
is not really necessary in this case [1]<br>
<br>
Cheers!<br>
<br>
--alec<br>
<br>
<br>
[1] <a href="http://lirc.org/html/configuration-guide.html#appendix-6" rel="noreferrer" target="_blank">http://lirc.org/html/configuration-guide.html#appendix-6</a></blockquote><div><br></div><div>Yeah, I read that but didn't fully understand it. Like a lot of Lirc docco it's not really clear! The link says:</div><div><br></div><div><snip></div><div>The first step is to inspect dmesg after connecting the device. There you should find something like:</div><div>    rc0: Media Center Ed. eHome Infrared Remote Transceiver (1784:0001) as</div><div>        /devices/pci0000:00/0000:00:12.0/usb4/4-4/4-4:1.0/rc/rc0    </div><div>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.</div><div>As long as you have only one remote of each kind you can use simple name matching like in<br></div><div>       --device=name='*eHome*'<br></div><div></snip><br></div><div><br></div><div>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:</div><div><br></div><div>REMOTE_DEVICE="name='*eHome*'"</div><div><br></div><div><br></div></div></div></div>