[mythtv-users] lirc woes with serial_ir kernel module

Stuart Auchterlonie stuarta at squashedfrog.net
Fri Jun 2 10:58:17 UTC 2017


On 02/06/17 11:56, Stuart Auchterlonie wrote:
> On 01/06/17 23:19, Richard Shaw wrote:
>> 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.
>>
>> My initial attempts were to update /etc/modprobe.d/lirc.conf to:
>>
>> # Lirc module settings, /dev/ttyS0
>> options serial_ir type=0 irq=4 io=0x3f8
>>
>> Unfortuantely it won't work properly on boot because "setserial
>> /dev/ttyS0 uart none" needs to be run first, otherwise you get:
>>
>> # dmesg | grep serial_ir
>> [    1.730353] serial_ir serial_ir.0: port 03f8 already in use
>> [    1.730399] serial_ir serial_ir.0: use 'setserial /dev/ttySX uart none'
>> [    1.730400] serial_ir serial_ir.0: or compile the serial port driver
>> as module and
>> [    1.730401] serial_ir serial_ir.0: make sure this module is loaded first
>> [    1.730412] serial_ir: probe of serial_ir.0 failed with error -16
>>
>> 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).
>>
> 
> There is an `install` option you can use in the modprobe configuration
> which allows you to specify what to run.
> 
> In this case you could use it to first run setserial, and then modprobe
> serial_ir
> 
> see `man modprobe.conf` for details
> 

Oh and you probably need to rebuild your initrd as there is some
modprobe work done in the initrd (primarily for storage drivers etc)

Regards
Stuart



More information about the mythtv-users mailing list