Home‎ > ‎Tom's Ideas And Notes‎ > ‎

lirc errors loading serial module in Fedora 14 - For MythTV

posted Sep 13, 2011, 7:40 PM by Tom Gutwin   [ updated Nov 12, 2011, 7:14 PM ]
Linux Command Prompt
I run MythTV and use a serial IR transceiver (made by IguanaWorks)  to read my remote control and blast to a ShawDirect satellite set top box.

I am finding that the linux kernel used in F14 sometimes does not load the lirc_serial module correctly, complaining that it is already in use when its not even loaded.

I found a somewhat stable set of steps to load the lirc_serial module.
#!/bin/bash -v
# stop myth and lirc so we can re-adjust
sudo /etc/init.d/mythbackend stop
sudo /etc/init.d/lirc stop

#UN-load lirc module
sudo rmmod lirc_serial
sudo rmmod lirc_dev

sleep 2s

sudo /bin/setserial /dev/ttyS0 uart none

#re-load lirc module

sudo modprobe lirc_serial
sudo modprobe lirc_dev

# start myth and lirc
sudo /etc/init.d/lirc start
sudo /etc/init.d/mythbackend start

The other thing I fund is that if I run these commands from within a bash script the lirc modules STILL might not load.
I run them on manually on the commandline.