I've just received a usb-uirt in the mail, and have had some luck getting it going for reception under gentoo gnu/linux. Here's what I did:
- download lirc 0.7.1
lirc-0.7.1.tar.bz2 from lirc.org
- download the
lirc-0.7.1-usb_uirt patch from
neveld's page- follow the
patch instructions- Code: Select all
tar xvfj lirc-0.7.1.tar.bz2
cd lirc-0.7.1
bzcat ../lirc-0.7.1-usb_uirt.patch.bz2 | patch -p1
./setup.sh
choose Driver Configuration->USB Devices->USB-UIRT2 (receive and transmit)
choose Save & Exit
- edit configure.sh as follows:
- Code: Select all
#!/bin/bash
./configure \
--with-moduledir=/lib/modules/2.6.12-gentoo-r9/misc \
--with-tty=/dev/tts/USB0 \
--with-x \
--with-syslog \
--with-driver=usb-uirt2_raw \
--with-major=61 \
--with-port=none \
--with-irq=none \
--prefix=/usr \
"$@"
Note the changed --with-tty line (for devfs) and --prefix line (to install to /usr, instead of /usr/local) and the --with-syslog for logging to syslog
- run
- Code: Select all
sh ./configure.sh && make && sudo make install
make install needs to be run as root. use sudo. su and make install or do the whole thing as root.
- if under gentoo: create/edit /etc/modules.d/lirc to contain
- Code: Select all
alias char-major-61 lirc_usb-uirt2_raw
and run update-modules
- otherwise: edit /etc/modules.conf, add the above alias and run depmod -a
- background watching the logs:
- Code: Select all
metalog: tail -f /var/log/everything/current&
syslog: tail -f /var/log/messages
- run lircd which should show:
- Code: Select all
[lircd-0.7.1] accepted new client on /dev/lircd
[lircd-0.7.1] uirt2usb_raw: UIRT version 0509 ok
if you see
- Code: Select all
[lircd-0.7.1] readlink() failed for "ttyUSB0"
then it's still trying to use /dev/ttyUSB0, so create a the link manually
- Code: Select all
cd /dev
ln -s tts/USB0 ttyUSB0
and restart lirc
- run irrecord
- Code: Select all
irrecord test.conf
and record remote keypresses. Remote has to be held within inches of front center of usb-uirt. Continue thru irrecord process.
- move test.conf to default
- Code: Select all
mv test.conf /etc/lircd.conf
and restart lircd.
- run irw and hit recorded buttons... button id should show as you press it.
I've not managed transmission yet, as I'm in need of a usb hub.
Does anyone know where