[mythtvnz] Setting up an irblaster

Corrin Lakeland mythtvnz@lists.linuxnut.co.nz
Wed, 22 Feb 2006 12:56:23 +1300


On Tuesday 21 February 2006 00:37, Dagan Galarneau wrote:

>
> In the end, I downloaded the latest snapshot version of lirc and compiled
> it myself, rather than running the stock Mandriva version.  Everything
> magically started working pretty much instantly.

Wow, same thing happened to me! Thanks :-)

Conclusion, run CVS rather than whatever came with your distro I guess :-)

Now on to optimising the script (using the C version) and getting the MCE 
remote working at the same time :-)

Corrin

PS: For anybody looking for a brief howto, here is what I have

lakeland@dango:/usr/local/src/lirc/lirc-cvs$ cat configure.sh
#!/bin/bash

./configure \
--prefix /usr \
--with-moduledir=/lib/modules/2.6.15.4/misc \
--with-transmitter \
--with-x \
--with-driver=serial \
--with-major=61 \
--with-port=0x3f8 \
--with-irq=4 \
"$@"

lakeland@dango:~$ lircd --version
lircd 0.8.1-CVS

lakeland@dango:~$ cat changechannel.sh
#!/bin/sh
REMOTE_NAME=Pace_RC-30
for digit in $(echo $1 | sed -e 's/./& /g'); do
irsend --device=/dev/lircd SEND_ONCE $REMOTE_NAME $digit
sleep 0.4 # note, you may have to tweak the interdigit delay up a bit
done

lakeland@dango:~$ setserial /dev/ttyS0
/dev/ttyS0, UART: unknown, Port: 0x03f8, IRQ: 4

lakeland@dango:~$ lsmod | grep lirc
lirc_serial            12256  0
lirc_dev               13796  1 lirc_serial