[mythtv-users] IR Blaster problems

Mark Schindel mark at schindel.ca
Mon May 2 02:11:06 UTC 2005


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 ~]#

And some config for the blaster on ttyS0 -- I call the following rc.lirc 
script on boot before I start mythbackend

[root at appleton rc.d]# cat rc.lirc
#!/bin/bash
export HOME=/root
export USERNAME=root

if [ -r ~/.bash_profile ] ; then
        . .bash_profile
fi

# for power button and other external to myth stuff
nohup /usr/bin/irexec >> /dev/null 2>&1 &

# 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

[root at appleton rc.d]#

and use the following channel change script:

[root at appleton rc.d]# cat /usr/local/bin/DTV_send
#!/bin/sh

REMOTE_NAME=DTV
cmd="$1"

case $cmd in
    [0-9]*)
    for digit in $(echo $1 | sed -e 's/./& /g'); do
        irsend --device /dev/lircd1 SEND_ONCE $REMOTE_NAME $digit
        sleep 0.3
    done
    ;;

    *)
        irsend --device /dev/lircd1 SEND_ONCE $REMOTE_NAME $cmd
        ;;
esac
[root at appleton rc.d]#

When it's all up and running, here's what you should see in /dev

[root at appleton rc.d]# ls -l /dev/lirc*
crw-rw-rw-  1 root mythtv 61, 0 Apr 24 18:46 /dev/lirc
crw-rw-rw-  1 root mythtv 61, 0 Apr 24 18:46 /dev/lirc0
crw-rw-rw-  1 root mythtv 61, 1 Apr 24 18:47 /dev/lirc1
srw-rw-rw-  1 root root       0 Apr 24 18:47 /dev/lircd
srw-rw-rw-  1 root root       0 Apr 24 18:47 /dev/lircd1
[root at appleton rc.d]#

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
and
# ls -l /dev/lirc*
and
# ps -ef | grep lircd

Mark.


More information about the mythtv-users mailing list