<div dir="ltr"><div><div><br></div></div><div class="gmail_extra"><div class="gmail_quote">On Sun, May 20, 2018 at 2:43 AM, Stephen Worthington <span dir="ltr"><<a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">stephen_agent@jsw.gen.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sat, 19 May 2018 13:03:06 -0400, you wrote:<br></span><br><snipped><br>
</blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So once you have the correct udev rule working (after a reboot), you<br>
would change the this line in /etc/lirc/hardware.conf:<br>
<br>
REMOTE_DEVICE="/dev/lirc0"<br>
to<br>
REMOTE_DEVICE="/dev/lirc-mce"<br>
<br>
and restart lirc.<br>
<br>
Alternatively, if your system provides /dev/input/by-id, you can<br>
directly use the correct device from there in the REMOTE_DEVICE<br>
setting. Here is my /dev/input/by-id:<br>
<br>
root@mypvr:/etc/udev/rules.d# ll /dev/input/by-id/<br>
total 0<br>
drwxr-xr-x 2 root root 120 May 11 14:42 ./<br>
drwxr-xr-x 4 root root 480 May 11 14:42 ../<br>
lrwxrwxrwx 1 root root 9 May 11 14:42<br>
usb-Logitech_USB_Receiver-<wbr>event-kbd -> ../event2<br>
lrwxrwxrwx 1 root root 9 May 11 14:42<br>
usb-Logitech_USB_Receiver-<wbr>if01-event-mouse -> ../event3<br>
lrwxrwxrwx 1 root root 9 May 11 14:42<br>
usb-Logitech_USB_Receiver-<wbr>if01-mouse -> ../mouse0<br>
lrwxrwxrwx 1 root root 10 May 11 14:42<br>
usb-SMK_eHome_Infrared_<wbr>Transceiver_SM005h4M-event-<wbr>if00 -> ../event17<br>
<br>
So I could use<br>
<br>
REMOTE_DEVICE="/dev/input/by-<wbr>id/usb-SMK_eHome_Infrared_<wbr>Transceiver_SM005h4M-event-<wbr>if00"<br>
<br>
and avoid having a udev rule. The by-id option is only available in<br>
recent kernels, but has been available for at least a couple of years.<br></blockquote><div><br></div><div>Thank you very much for a detailed response!</div><div><br></div><div>My machine has by-id so I started with that. </div><div><br></div><div>First pass doesn't look successful though. lirc didn't look happy about restarting.</div><div>I'll keep googling....</div><div><br></div><div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><div><br class="gmail-Apple-interchange-newline">---------------------------</div><div><div>me@mythbackend:~$ ll /dev/input/by-id</div><div>total 0</div><div>drwxr-xr-x 2 root root 120 May 19 13:44 ./</div><div>drwxr-xr-x 4 root root 540 May 19 13:44 ../</div><div>lrwxrwxrwx 1 root root 9 May 19 13:44 usb-Logitech_USB_Receiver-event-kbd -> ../event4</div><div>lrwxrwxrwx 1 root root 9 May 19 13:44 usb-Logitech_USB_Receiver-if01-event-mouse -> ../event5</div><div>lrwxrwxrwx 1 root root 9 May 19 13:44 usb-Logitech_USB_Receiver-if01-mouse -> ../mouse0</div><div>lrwxrwxrwx 1 root root 10 May 19 13:44 usb-Philips_eHome_Infrared_Transceiver_PH00Kuh5-event-if00 -> ../event18</div></div><div><br></div><div><br></div><div>------------------------</div><div>me@mythbackend:~$ cat /etc/lirc/hardware.conf</div><div># /etc/lirc/hardware.conf</div><div>#</div><div>#Chosen Remote Control</div><div>REMOTE="Windows Media Center Transceivers/Remotes (all)"</div><div>REMOTE_MODULES="lirc_dev mceusb"</div><div>REMOTE_DRIVER=""</div><div># REMOTE_DEVICE="/dev/lirc0"</div><div>REMOTE_DEVICE="/dev/input/by-id/usb-Philips_eHome_Infrared_Transceiver_PH00Kuh5-event-if00"</div><div>REMOTE_SOCKET=""</div><div>REMOTE_LIRCD_CONF="mceusb/lircd.conf.mceusb"</div><div>REMOTE_LIRCD_ARGS=""</div><div><br></div><div>#Chosen IR Transmitter</div><div>TRANSMITTER="Microsoft Windows Media Center V2 (usb) : Scientific Atlanta Cable box"</div><div>TRANSMITTER_MODULES="lirc_dev mceusb"</div><div>TRANSMITTER_DRIVER=""</div><div>TRANSMITTER_DEVICE=""</div><div>TRANSMITTER_SOCKET=""</div><div>TRANSMITTER_LIRCD_CONF="scientificatlanta/general.conf"</div><div>TRANSMITTER_LIRCD_ARGS=""</div><div><br></div><div>#Disable kernel support.</div><div>#Typically, lirc will disable in-kernel support for ir devices in order to</div><div>#handle them internally. Set to false to prevent lirc from disabling this</div><div>#in-kernel support. </div><div>#DISABLE_KERNEL_SUPPORT="true"</div><div><br></div><div>#Enable lircd</div><div>START_LIRCD="true"</div><div><br></div><div>#Don't start lircmd even if there seems to be a good config file</div><div>#START_LIRCMD="false"</div><div><br></div><div>#Try to load appropriate kernel modules</div><div>LOAD_MODULES="true"</div><div><br></div><div># Default configuration files for your hardware if any</div><div>LIRCMD_CONF=""</div><div><br></div><div>#Forcing noninteractive reconfiguration</div><div>#If lirc is to be reconfigured by an external application</div><div>#that doesn't have a debconf frontend available, the noninteractive</div><div>#frontend can be invoked and set to parse REMOTE and TRANSMITTER</div><div>#It will then populate all other variables without any user input</div><div>#If you would like to configure lirc via standard methods, be sure</div><div>#to leave this set to "false"</div><div>FORCE_NONINTERACTIVE_RECONFIGURATION="false"</div><div>START_LIRCMD=""</div></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><br></div><br class="gmail-Apple-interchange-newline" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">------------------------</span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><div>me@mythbackend:~$ service lirc restart</div><div>Job for lirc.service canceled.</div><div>me@mythbackend:~$ service lirc status<br></div><div><div>\u25cf lirc.service - LSB: Starts LIRC daemon.</div><div> Loaded: loaded (/etc/init.d/lirc; bad; vendor preset: enabled)</div><div> Active: active (running) since Sun 2018-05-20 15:29:09 EDT; 7s ago</div><div> Docs: man:systemd-sysv-generator(8)</div><div> Process: 10907 ExecStop=/etc/init.d/lirc stop (code=exited, status=0/SUCCESS)</div><div> Process: 10964 ExecStart=/etc/init.d/lirc start (code=exited, status=0/SUCCESS)</div><div> CGroup: /system.slice/lirc.service</div><div> \u2514\u250010981 /usr/sbin/lircd --output=/run/lirc/lircd --device=/dev/input/by-id/usb-Philips_eHome_Infrared_Transceiver_PH00Kuh</div><div><br></div><div>May 20 15:29:09 mythbackend lirc[10964]: ...done.</div><div>May 20 15:29:09 mythbackend lirc[10964]: * Starting remote control daemon(s) :</div><div>May 20 15:29:09 mythbackend lirc[10964]: ...done.</div><div>May 20 15:29:09 mythbackend lircd-0.9.0[10981]: lircd(default) ready, using /run/lirc/lircd</div><div>May 20 15:29:09 mythbackend systemd[1]: Started LSB: Starts LIRC daemon..</div><div>May 20 15:29:10 mythbackend lircd-0.9.0[10981]: accepted new client on /run/lirc/lircd</div><div>May 20 15:29:10 mythbackend lircd-0.9.0[10981]: could not get hardware features</div><div>May 20 15:29:10 mythbackend lircd-0.9.0[10981]: this device driver does not support the LIRC ioctl interface</div><div>May 20 15:29:10 mythbackend lircd-0.9.0[10981]: did you mean to use the devinput driver instead of the default driver?</div><div>May 20 15:29:10 mythbackend lircd-0.9.0[10981]: Failed to initialize hardware</div><div>lines 1-19/19 (END)</div><div><br></div></div><div><br></div></div><br class="gmail-Apple-interchange-newline"><br></div><div>Cheers,</div><div>Andrew</div><div> </div></div><div class="gmail_signature" data-smartmail="gmail_signature"></div>
</div></div>