Gentoo Wiki


To use the homebrew UIRT2 with lirc we have to set some LIRC options in either our make.conf or in the environment.

For the UIRT2 with transmitter the following options are required. (The would generate this.) export LIRC_OPTS="--with-driver=uirt2_raw --with-tty=/dev/tts/0 --with-port=none --with-irq=none"


File: /etc/make.conf
LIRC_OPTS="--with-driver=uirt2_raw --with-tty=/dev/tts/0 --with-port=none --with-irq=none"

Alternativly you can create your own remote control definition file. (And also test your UIRT2 for connection etc).

Start irrecord irrecord myremote_definition.conf -d /dev/tts/0

Notice that we supplied the actual location (Com1) of the UIRT2. Even though we set the compile flag, it doesn't default to that location. Also know that you have to have serial_core and 8250 modules loaded or have them compiled into your kernel.

Note: the UIRT2 does not require any other kernel drivers than these. E.g. no lirc_dev nor lirc_serial.

If irrecord fails, make sure the connections are OK and that lircd is NOT running.

If everything was successfull you have now created a definition file for your remote control. Please email it to so that others can benefit from your work.

Since irrecord showed us the communication part worked, we configure lircd and fire it up.

Edit the configuration file and let it point to your serial port.

File: /etc/conf.d/lircd
LIRC_OPTS="-d /dev/tts/0"
Retrieved from ""

Last modified: Tue, 19 Aug 2008 22:29:00 +0000 Hits: 243