All,
Since the patch posted above seems to work well for me (when receiving IR at least), and since there seems to be no other way to use the USB-UIRT under linux for MythTV I've put together some instructions which may help others using the above patch.
I hope this helps someone.
Peter
NB: these instructions cover the steps I took, if they help you fine and good, if not, then I accept no responsibility.
HOW-TO use your USB-UIRT with LIRC
This is based on FC2 and using apt-get from atrpms.net. I have used the patch, devised & posted above by Kenny. I don’t really understand how it works, but it does seem to work well for receiving IR commands and learning new remotes (I don’t, yet, have a need for IR transmit on my Linux machine).
The Linux kernel 2.6.8 includes all drivers for the USB-UIRT, after plugging it in to the USB port, check ‘# dmesg’ output, and you should see something similar to;
ftdi_sio 5-1:1.0: USB-UIRT Infrared Tranceiver converter detected
usb 5-1: USB-UIRT Infrared Tranceiver converter now attached to ttyUSB0
usbcore: registered new driver ftdi_sio
You need to install (& patch) LIRC for the USB-UIRT to be useable in MythTV,
www.mythtv.org (well, that’s what I want to use it for). Install the following packages from FC2 / iso images (
http://download.fedora.redhat.com/pub/f ... dora/RPMS/ ). I used;
automake-1.8.5
autoconf-2.59.3
libtool-1.5.6-1
Download gcc/ c++ stuff needed by LIRC during compile time (LIRC compile failed with a lib/cpp sanity check error, this fixed it);
# apt-get install gcc-c++
Download lirc-0.7.0pre7.tar.bz2 to /home/mythtv
Untar (tar –jxvf lirc-0.7.0pre7.tar.bz2)
# mv /home/mythtv/lirc* /usr/src/.
Apply USB-UIRT patch (downloaded from
www.usbuirt.com support forum or
http://www.the-b.org/~kenny/patches/lir ... a.patch.gz)
# cd /usr/src/lirc-0.7.0pre7
# patch –p1 < /home/mythtv/lirc-0.7.0pre7-usbuirt0.1a.patch
# ./setup.sh (choose usb-uirt under serial devices)
# make
# make install
Change rights on /dev/lircd (as per LIRC documentation at
www.lirc.org)
# chmod 666 /dev/lircd
Use ‘irrecord –f <filename>’ to compile a lircd.conf file to map remote IR commands to keys. Copy created file to /etc/lircd.conf
Create /dev/lirc
I believe LIRC should create this device/link during install time, but appears not to for USB-UIRT. Therefore create it manually (review dmesg output to check ttyUSB0 is correct)
# ln -sf ttyUSB0 /dev/lirc
Start up LIRCD
/usr/local/sbin/lircd
Use ‘irw’ to test all buttons on remote (review console output for results)
NB: It appears that USB-UIRT doesn’t need any kernel modules.
Get LIRC to start automatically;
# cd /etc/rc.d
# cat >> rc.local
echo "Starting lircd"
/usr/local/sbin/lircd
^D
#