I'm pulling a sneaky trick on my MythBox. I'm using an infrared keyboard and a learning remote so that I can simply teach the remote all of the key combinations to operate Myth and the ugly keyboard can live in a closet.
I still need to use lirc with an
irblaster to control my Dish Network set-top box and I can't get the booger to play nice.
- I installed the lirc and lirc-kmp-default (matching my kernel) with smart.
- I created .etc/lircd.conf for my set-top box with a file found on the lirc web site.
- I ran
Code:
/bin/mknod /dev/lircd c 72 0
- I created /etc/rc.d/rc.local with these lines:
Code:
/sbin/modprobe lirc_serial
/usr/sbin/lircd --device=/dev/lirc0 --output=/dev/lircd
/usr/sbin/lircd --driver=default --device=/dev/lirc1 --output=/dev/lircd1 --pidfile=/var/run/lircd1.pid
- ...added these lines to /etc/modprobe.conf.local:
Code:
alias char-major-61-1 lirc_serial
options lirc_serial irq=4 io=0x3f8
####IR setup####
install lirc_serial setserial /dev/ttyS0 uart none; /sbin/modprobe --ignore-install lirc_serial
(I know that port address for COM1 is correct, but I'm unsure about the IRQ)
- ...created the script /usr/local/bin/change_chan.sh:
Code:
#!/bin/sh
REMOTE_NAME=dish
for digit in $(echo $1 | sed -e 's/./& /g'); do
irsend --device=/dev/lircd1 SEND_ONCE $REMOTE_NAME $digit
sleep 0.4 # note, you may have to tweak the interdigit delay up a bit
done
irsend --device=/dev/lircd1 SEND_ONCE $REMOTE_NAME select
along with the requisite
Code:
chmod 755 /usr/local/bin/change_chan.sh
- ...rebooted
and a test command, such as /usr/local/bin/change_chan.sh 12, nets me repeated complaints:
Code:
irsend: could not connect to socket
irsend: No such file or directory
typically 3 to 5 times before dropping me back to the prompt.
lsmod does not show lirc_serial being loaded, but it loads without complaint via modprobe.
Even then, I get the error from the command line. I've checked the GUI runlevel editor and it shows the lirc daemon as stopped, and it won't start unless I modprobe lirc_serial in first.
I still get no joy, though.
What do I do next?
TIA,
J