<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 1, 2017 at 3:19 PM, Richard Shaw <span dir="ltr"><<a href="mailto:hobbes1069@gmail.com" target="_blank">hobbes1069@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">At some point Fedora dropped the lirc_serial module in favor of the serial_ir module and while I can make it work, I haven't found the right incantation to make it work on boot without manual intervention.<div><br></div><div>My initial attempts were to update /etc/modprobe.d/lirc.conf to:</div><div><br></div><div><div># Lirc module settings, /dev/ttyS0</div><div>options serial_ir type=0 irq=4 io=0x3f8</div></div><div><br></div><div>Unfortuantely it won't work properly on boot because "setserial /dev/ttyS0 uart none" needs to be run first, otherwise you get:</div><div><br></div><div><div># dmesg | grep serial_ir</div><div>[    1.730353] serial_ir serial_ir.0: port 03f8 already in use</div><div>[    1.730399] serial_ir serial_ir.0: use 'setserial /dev/ttySX uart none'</div><div>[    1.730400] serial_ir serial_ir.0: or compile the serial port driver as module and</div><div>[    1.730401] serial_ir serial_ir.0: make sure this module is loaded first</div><div>[    1.730412] serial_ir: probe of serial_ir.0 failed with error -16</div></div><div><br></div><div>I tried adding the setserial command to /etc/sysconfig/modules but I'm guessing it doesn't run early enough in the process (I assume the serial_ir module is loaded from the initrd before setserial is even available).</div><div><br></div><div>I've also tried using the code lines for lirc in lirc_options.conf to replicate the needed order but it doesn't seem to actually get run:</div><div><br></div><div><div>[modinit]</div><div>code1 = /usr/sbin/rmmod serial_ir</div><div>code1 = /usr/bin/setserial /dev/ttyS0 uart none</div><div>code2 = /usr/sbin/modprobe serial_ir</div></div><div><br></div><div>So now every time I reboot my frontend I have to manually perform the above commands prior to starting lircd or I don't get a working remote.</div><div><br></div><div>Any ideas?</div></div></blockquote><div><br></div><div>Sorry, no. But, after wasting way to many hours debugging similar issues when rebuilding my frontends, I switched to a “Flirc” IR receiver.   You basically configure the USB device to emit the right keycodes for your IR signals, and have zero dependency on lirc, linux kernel, or mythtv config.  If I ever rebuild/replace a frontend, I have no issues, the config is persisted in the Flirc device, no re-config needed just plug in the usb device and I’m done.</div><div><br></div><div>I think it costs ~ $20.  For me, the time saved makes it a no-brainer.  </div></div></div></div>