[mythtv-users] Lircd not surviving reboot.

Greg Wildman list at itns.co.za
Mon Dec 20 19:02:44 UTC 2004


On Sat, 2004-12-18 at 18:55 -0500, Noel Murphy wrote: 
> Ok, I've got my remote working (homebrew IR receiver) with mythtv now, 
> however only if I do the following before starting mythtv (which starts 
> up on bootup)
> 
> setserial /dev/ttyS0 uart none
> modprobe lirc_serial
> ln -s /dev/lirc0 /dev/lirc
> /sbin/service lircd restart
> 
> After i do all the above (as root) and then start up myth frontend, my 
> remote works. My question is, how do I get this to all occur 
> automatically. I have
> 
> alias char-major-61 lirc_serial
> 
> in my /etc/modprobe.conf file. I thought this would load the 
> lirc_serial module, but I think the "setserial" line needs to be 
> executed.


My /etc/modprobe.conf has the following in it pertaining to LIRC. Note:
I have the homebrew receiver on ttyS1 (COM2).

alias char-major-61 lirc_serial
options lirc_serial type=0 irq=3 io=0x2f8 debug=1
install lirc_serial /bin/setserial /dev/ttyS1 uart none; /sbin/modprobe
--ignore-install lirc_serial


The "install" line is 1 long line. After making changes
to /etc/modprobe.conf run 'depmod -ae'

> Is the best thing to do to add these lines to my 
> /etc/init.d/mythbackend startup script? If so, does it matter where I 
> put it in the "start" clause (obviously before the "daemon mythbackend" 
> part)?

Make sure LIRC starts apon boot with:

chkconfig --level 345 lircd on
service lircd restart

On my system the module is automatically loaded when lircd starts and
the "install" line in /etc/modprobe.conf takes care of everything for
me.

--
Greg






More information about the mythtv-users mailing list