[mythtv-users] IR Blaster problems
Rob Miracle
robmiracle at earthlink.net
Fri May 6 01:57:41 UTC 2005
At 12:11 AM 5/2/2005, Mark Schindel wrote:
>Rob Miracle wrote:
>
>>I'm trying to run MythTV (0.18 updates from apt-get) on FC3. I have
>>just about everything working now except my IR Blaster. When I set it
>>up according to:
>><http://www.lircsetup.com/lirc/blaster/index.php>
>I have the same environment although I've not used the above
>instructions.... I just gave them a quick look and it's similar to the
>solution I've come up with but not identical.
>
>Here's my environment:
>
>[root at appleton ~]# uname -r
>2.6.11-1.14_FC3
>[root at appleton ~]# rpm -qa | grep lirc
>lirc-devices-0.7.0-1.rhfc3.at
>lirc-lib-0.7.1-46.rhfc3.at
>lirc-0.7.1-46.rhfc3.at
>lirc-kmdl-2.6.11-1.14_FC3-0.7.1-46.rhfc3.at
>[root at appleton ~]#
I'm the same, except that I have to Kernel Modules, in addition to
lirc-kmdl-2.6.11-1.14_FC3-0.7.1-46.rhfc3.at, I also have
lirc-kmdl-2.6.10-1.770_FC3-0.7.1-46.rhfc3.at
># for power button and other external to myth stuff
>nohup /usr/bin/irexec >> /dev/null 2>&1 &
I'm assuming I can skip this step since I'm not worried too much about the
power button at the moment.
># for IR Blaster on ttyS0
>setserial /dev/ttyS0 uart none
>modprobe lirc_serial
>lircd --pidfile=/var/run/lircd1.pid --device=/dev/lirc1 --output=/dev/lircd1
modprobe gave me the following error:
[root at sumo ~]# modprobe lirc_serial
FATAL: Error inserting lirc_serial
(/lib/modules/2.6.11-1.14_FC3/updates/drivers/lirc/lirc_serial.ko): Device
or resource busy
Then,
[root at sumo ~]# lircd --pidfile=/var/run/lircd1.pid --device=/dev/lirc1
--output=/dev/lircd1
lircd 0.7.1: there seems to already be a lircd process with pid 4055
lircd 0.7.1: otherwise delete stale lockfile /var/run/lircd1.pid
>I hope this info helps. If you can't make sense of this, I can probably
>step you through some diagnostics. We can start with the output of:
>
># lsmod | grep lirc
[root at sumo ~]# lsmod | grep lirc
lirc_i2c 10244 1
lirc_dev 13636 1 lirc_i2c
i2c_core 21953 9
cx88xx,lirc_i2c,i2c_viapro,i2c_algo_bit,saa7127,tuner,saa7115,msp3400,tveeprom
>and
># ls -l /dev/lirc*
[root at sumo ~]# ls -l /dev/lirc*
crw------- 1 root root 61, 0 May 2 23:30 /dev/lirc
crw------- 1 root root 61, 0 May 2 23:30 /dev/lirc0
srw-rw-rw- 1 root root 0 May 3 00:30 /dev/lircd
srw-rw-rw- 1 root root 0 May 2 23:30 /dev/lircd1
>and
># ps -ef | grep lircd
root 4055 1 0 May02 ? 00:00:00 /usr/sbin/lircd
--driver=default --device=/dev/lirc1 --output=/dev/lircd1
--pidfile=/var/run/lircd1.pid
root 5362 1 0 May03 ? 00:00:00 lircd
root 7481 7413 0 21:51 pts/4 00:00:00 grep lircd
And my modprobe.conf file:
[root at sumo ~]# cat /etc/modprobe.conf
alias eth0 tulip
####IR setup####
alias char-major-61 lirc_i2c
#alias char-major-61-0 lirc_i2c
#alias char-major-61-1 lirc_serial
#options lirc_serial irq=3 io=0x2f8
#alias snd-card-0 snd-via82xx
#options snd-card-0 index=0
#install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx &&
/usr/sbin/alsactl restore >/dev/null 2>&1 || :
#remove snd-via82xx { /usr/sbin/alsactl store >/dev/null 2>&1 || : ; };
/sbin/modprobe -r --ignore-remove snd-via82xx
alias snd-card-0 snd-emu10k1
options snd-card-0 index=1
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 &&
/usr/sbin/alsactl restore >/dev/null 2>&1 || :
remove snd-emu10k1 { /usr/sbin/alsactl store >/dev/null 2>&1 || : ; };
/sbin/modprobe -r --ignore-remove snd-emu10k1
alias usb-controller uhci-hcd
# ivtv modules setup
alias char-major-81 videodev
alias char-major-81-0 ivtv
alias tveeprom tveeprom-ivtv
install ivtv /sbin/modprobe --ignore-install ivtv; /sbin/modprobe ivtv-fb
# nvidia kernel module
alias char-major-195 nvidia-1_0-7174
alias nvidia nvidia-1_0-7174
install lirc_i2c /sbin/modprobe ivtv; /sbin/modprobe --ignore-install lirc_i2c
#install lirc_serial setserial /dev/ttyS1 uart none; /sbin/modprobe
--ignore-install lirc_serial
Whenever I uncomment the references to char-major-61-0, -1, and the
assosciated lines, my remote control stops working. As it sits now, I
have a working remote control, just the IR blaster won't work.
Here is the contents of my rc.local script in /etc/rc.d
[root at sumo rc.d]# less rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
/sbin/modprobe lirc_i2c
/sbin/modprobe lirc_serial
/usr/sbin/lircd --device=/dev/lirc0 --output=/dev/lircd
/usr/sbin/lircd --driver=default --device=/dev/lirc1 --output=/dev/lircd1
--pidf
ile=/var/run/lircd1.pid
/usr/X11R6/bin/xset -dpms
/usr/X11R6/bin/xset s off
More information about the mythtv-users
mailing list