First off, install lirc. No additional drivers or kernel modules are necessary since I will be using /dev/input
[root@htpc ~]# yum install lircNext, get the generic lirc.conf for devinput from the lirc web site
[root@htpc ~]# wget http://lirc.sourceforge.net/remotes/devinput/lircd.conf.devinput -O /etc/lirc/lircd.confThen, because there are two devices in /dev/input, I needed a way to tie them together in lircd. I did this by editing the /etc/sysconfig file and putting in the following lines. The device names will be different depending on the remote, but these work for the one that I got.
LIRCD_OPTIONS_1="--driver=devinput --device=/dev/input/by-id/usb-05a4_9881-event-kbd --pidfile=/var/run/lirc1.pid --listen=9988"Finally, edit the lircd init script and modify the start function so that two lircd daemons are started up with the options from /etc/sysconfig
LIRCD_OPTIONS_2="--driver=devinput --device=/dev/input/by-id/usb-05a4_9881-event-if01 --pidfile=/var/run/lirc2.pid --connect=localhost:9988"
daemon lircd $LIRCD_OPTIONS_1All that's left is to set lircd to start at boot and start the service
daemon lircd $LIRCD_OPTIONS_2
[root@htpc ~]# chkconfig lircd onAnd of course test
[root@htpc ~]# service lircd start
[root@htpc ~]# irwPressing the buttons on the remote control should show up in the output of irw.
References:
http://www.gossamer-threads.com/lists/mythtv/users/430004
http://old-de.opensuse.org/Linux_Infrared_Remote_Control
No comments:
Post a Comment