Howto setup LIRC with homebrew infrared receiver

0
Install Some Software

Now we install a few packages that are needed later on. Run

apt-get install dialog setserial

Install LIRC

First download the software from the lirc website. I strongly recommend not to use any .deb or .rpm package as they tend to make everything more complicated.
Go to the Lirc page and download the most recent package. Untar it with the command:

tar xvfz lirc-0.8.3.tar.gz

and start the semi-graphical setup:

./setup

You should only select your serial port and leave all the other settings. Select the 3rd menu entry, "Save configuration and run configure", wait until it has finished, then give (as root):

make
make install

Once Lirc is compiled and installed, set the serial port, load the lirc kernel module, and start the lirc daemon (lircd):

setserial /dev/ttySx uart none
depmod -a
modprobe lirc_serial
lircd


Install xmode2 (LIRC-X)

apt-get install lirc-x
xmode2

If everything has gone well, we can test the actual receiving hardware.
Take a remote control and start the "xmode2" program (if you don’t use
X start the character application, "mode2"); press then some buttons on
the remote.

Reference:
http://lnx.manoweb.com/lirc/?partType=section&partName=lirc
http://ubuntuforums.org/showthread.php?t=163496