[mythtv-users] RS-232 receiver, kernel configuration and setserial
Rich West
Rich.West at wesmo.com
Sat Apr 7 00:38:03 UTC 2007
Angus wrote:
> Ok, my problems seem to come down to how to configure ~/.mythtv/lircrc
> (whose configuration seems to have some highly unpredictable affect on
> mythtvfrontend) and how to properly get the serial port configured
> properly on startup.
>
> In order for the RS-232 IR receiver to work properly, I need to:
> -setserial /dev/ttyS0 uart none
> -modprobe lirc_serial
> -/etc/init.d/lirc restart
> How would I get those first two to be executed automatically?
>
> I'm also wondering if I've configured my kernel properly. For one,
> I've select 8250/16550 and compatible serial support. Could that be
> related to the problem?
I'm not sure what distribution you are running, but, under Fedora (and
similar), I followed Jarod's guide (www.wilsonet.com) to get it to work:
1. Performed the "setserial" in /etc/modprobe.conf
[root at mythtv2 ~]# grep setserial /etc/modprobe.conf
install lirc_serial /bin/setserial /dev/ttyS0 uart none ; /sbin/modprobe
--ignore-install lirc_serial
2. Created the file "/etc/sysconfig/modules/lirc.modules (also from
Jarod's page) as follows:
[root at mythtv2 ~]# more /etc/sysconfig/modules/lirc.modules
#!/bin/sh
for module in `/sbin/modprobe -c | awk
'/^alias[[:space:]]+char-major-61+[[:space:]]/ { print $3 }'`; do
/sbin/modprobe $module
done
3. And, finally, I set lircd to start up automatically via chkconfig:
[root at mythtv2 ~]# chkconfig --level 345 lircd on
I hope this helps..
-Rich
More information about the mythtv-users
mailing list