@NewPi these are my notes from when I got IrToy running, maybe you can find the patch files on google but if you fail just leave me a mail at
datscharf@gmail.com and I will send them to you:
----------------------------------------------------------------------------------------------------------------------------------------------------------------
git clone git://lirc.git.sourceforge.net/gitroot/lirc/lirc
This will create a directory lirc in the current directory and populate it with the latest lirc source files.
cd to the lirc directory, apply the irtoy driver patches:
zcat 0001-Add-driver-for-USB-Infrared-Toy-in-sample-mode.patch.gz | patch -p1
zcat 0002-Add-USB-Infrared-Toy-driver-to-setup-system.patch.gz | patch -p1
./autogen.sh
make
sudo make install
sudo mkdir /etc/lirc
sudo cp lircd.conf /etc/lirc/
sudo cp contrib/lirc.debian /etc/init.d/lirc
nano /etc/init.d/lirc
replace start and restart with:
start-stop-daemon --start --quiet --exec /usr/local/sbin/lircd -- --listen --driver=usb_irtoy --device=/dev/ttyACM0
Then enable the initscript
sudo update-rc.d lirc defaults
the whole file should look like this (without the dashed line):
--------------------------------------------------------------------------------------------------------------------------
### BEGIN INIT INFO
# Provides: lirc
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO#! /bin/sh
if test ! -d /var/run/lirc; then
mkdir /var/run/lirc
fi
test -f /usr/local/sbin/lircd || exit 0
test -f /usr/local/sbin/lircmd || exit 0
case "$1" in
start)
echo -n "Starting lirc daemon: lircd"
start-stop-daemon --start --quiet --exec /usr/local/sbin/lircd -- --listen --driver=usb_irtoy --device=/dev/ttyACM0
echo -n " lircmd"
start-stop-daemon --start --quiet --exec /usr/local/sbin/lircmd
echo "."
;;
stop)
echo -n "Stopping lirc daemon: lircmd"
start-stop-daemon --stop --quiet --exec /usr/local/sbin/lircmd
echo -n " lircd"
start-stop-daemon --stop --quiet --exec /usr/local/sbin/lircd
echo "."
;;
reload|force-reload)
start-stop-daemon --stop --quiet --signal 1 --exec /usr/local/sbin/lircd
start-stop-daemon --stop --quiet --signal 1 --exec /usr/local/sbin/lircmd
;;
restart)
echo -n "Stopping lirc daemon: lircmd"
start-stop-daemon --stop --quiet --exec /usr/local/sbin/lircmd
echo " lircd"
start-stop-daemon --stop --quiet --exec /usr/local/sbin/lircd
sleep 1
echo -n "Starting lirc daemon: lircd"
start-stop-daemon --start --quiet --exec /usr/local/sbin/lircd -- --listen --driver=usb_irtoy --device=/dev/ttyACM0
echo -n " lircmd"
start-stop-daemon --start --quiet --exec /usr/local/sbin/lircmd
echo "."
;;
*)
echo "Usage: /etc/init.d/lircd {start|stop|reload|restart|force-reload}"
exit 1
esac
exit 0
--------------------------------------------------------------------------------------------------------------------------