<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Dec 9, 2015 at 10:23 PM, Phill Edwards <span dir="ltr"><<a href="mailto:philledwards@gmail.com" target="_blank">philledwards@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>> <snip><br>
> The first step is to inspect dmesg after connecting the device. There<br>
> you should find something like:<br>
>     rc0: Media Center Ed. eHome Infrared Remote Transceiver (1784:0001) as<br>
>         /devices/pci0000:00/0000:00:12.0/usb4/4-4/4-4:1.0/rc/rc0<br>
> Here you can see the device's name: "Media center Ed. eHome..." and it's<br>
> address: ...usb4/4-4/4-4:1.0/rc/rc0.<br>
> As long as you have only one remote of each kind you can use simple name<br>
> matching like in<br>
>        --device=name='*eHome*'<br>
> </snip><br>
><br>
> Where would you be using --device=name='*eHome*'? Is that if you're<br>
> running Lirc from a command line rather than in daemon mode? I'm running<br>
> it in daemon mode, so would I add this line in /etc/lirc/hardware.conf:<br>
><br>
> REMOTE_DEVICE="name='*eHome*'"<br>
<br>
</div></div>That said, I'm not 100% sure how the shell quoting is applied to the<br>
hardware.conf stuff. You might need to either remove or escape the<br>
single quotes.<br></blockquote><div><br></div><div>for the record, this is how I've named the device in /etc/lirc/hardware.conf.</div><div><br></div><div>1) Get the device name:</div><div><br></div><div><div>$ dmesg | grep rc[0-9]</div><div>[   17.212027] Registered IR keymap rc-rc6-mce</div><div>[   17.212822] input: Media Center Ed. eHome Infrared Remote Transceiver (1934:5168) as /devices/pci0000:00/0000:00:1d.0/usb5/5-1/5-1:1.0/rc/rc0/input5</div><div>[   17.213472] rc0: Media Center Ed. eHome Infrared Remote Transceiver (1934:5168) as /devices/pci0000:00/0000:00:1d.0/usb5/5-1/5-1:1.0/rc/rc0</div><div>[   17.259901] rc rc0: lirc_dev: driver ir-lirc-codec (mceusb) registered at minor = 0</div></div><div><br></div><div>2) Update /etc/lirc/hardware.conf:</div><div><br></div><div><div>REMOTE_DEVICE="name=*eHome?Infrared?Remote?Transceiver*"</div></div><div><br></div><div>If I entered spaces between the words I got an error about invalid parameters on starting lirc. So I replaced each space with a single wildcard character ("?"). Lirc now starts up and I don't need the udev rules any more. If there's a more elegant way of doing this please let me know. </div><div><br></div><div>Hope that helps someone in future. <br></div></div></div></div></blockquote><div><br></div><div>Probably if you surrounded the name parameter with single quotes you could use spaces. Something like this:<br>REMOTE_DEVICE="name='*eHome Infrared Remote Transceiver*'"<br><br></div><div>Or you may need to surround the entire parameter phrase with single quotes.<br><br></div><div>Karl<br></div></div></div></div>