In mythtv-setup under ‘Input connections’ (or something) type
/home/mythtv/.mythtv/sendkeys.sh
Then create this sendkeys.sh script in the directory mentioned above.
#!/bin/sh
for digit in $(echo $1 | sed -e 's/./& /g'); do
red_eye /dev/ttyS0 $digit 2
sleep 0.4
done
Decided this works better…
#!/bin/csh
echo "changing to $1"
/usr/local/bin/red_eye /dev/ttyS0 $1 2 &
Place the red_eye c program from
http://redremote.co.uk/serial/resdown.html
in /usr/bin or similar and you’re done.