Installing & Configuring LIRC
I was able to install LIRC from cvs, but for whatever reason, now doesn't seem to be possible. The instructions of how to do that from the LIRC website are not working for me.
I tried a different approach and downloaded version 0.8.1 from the LIRC website. put it in mythtv's home directory and uncompressed it there:
Now go to the lirc-0.8.1 directory where the files where created.
I will compile lirc with the following parameters, so it works for my Leadtek DTV-1000 and the infrared blaster. If you want to see the lost of devices that are supported do a ./configure --help.
$./configure --prefix=/usr -with-driver=devinput --with-transmitter
I want to make lirc to control an IR blaster and the remote control at the same time.
I found a lot of useful information on how to do this on this site:
As mentioned before, this is the hardware I'm using:
- I'm using a homebrew IR blaster connected to the serial port 1.
- And I'm using the remote control of the TV card Leadtek Winfast DTV1000
This is what I did to make it work:
First I created a /etc/lircd.conf that has the parameters of my TV card remote control and the keys to emmulate the FOXTEL remote control.
You can download that file here.
At the top of /etc/modprobe.conf, I added the following lines:
options lirc_serial irq=4 io=0x3f8
install lirc_serial setserial /dev/ttyS0 uart none; /sbin/modprobe --ignore-install lirc_serial
These lines set the parameters for the IR transmitter. For the TV card remote control, nothing needs to be done here.
In /etc/rc.d/rc.local I added the following lines to make these IR processes work:
#this starts the IR blaster
/usr/sbin/lircd --driver=default --device=/dev/lirc --output=/dev/lircd1 --pidfile=/var/run/lircd.pid
#this starts the TV card remote
Please notice that to start the TV card remote control I use the mythlircd script.
The reason why, is because the port can change depending on what's connected to the computer, i.e. usb keyboards, joysticks, etc.
This script reads the file /proc/bus/input/devices and looks for the string "DTV1000-T". If you are using other remote control just open the file /proc/bus/input/devices with an editor and find out what to look for so it finds the remote control.
At the end, the script calls this:
/usr/sbin/lircd --driver=dev/input --pidfile=/var/run/lircd1.pid --device=/dev/input/$event
where $event is the event number that matches the remote.
Click here to download mythlircd.
After that I created a lircrc config file in
This file has instructions for mythtv, mplayer and xine.
And created a symbolic link to it from the home directory
so other applications can use it too
$ln -s .mythtv/lircrc