lirc - Linux Infrared Remote Control

Property Value
Distribution FreeBSD 12
Repository FreeBSD Ports Latest amd64
Package filename lirc-0.9.0_10,1.txz
Package name lirc
Package version 0.9.0
Package release 10,1
Package architecture amd64
Package type txz
Category comms
License -
Download size 373.25 KB
Installed size 1.79 MB
LIRC is a package that allows you to decode and send infra-red signals
of many (but not all) commonly used remote controls.
The most important part of LIRC is the lircd daemon that will decode
IR signals received by the device drivers and provide the information
on a socket. It will also accept commands for IR signals to be sent if
the hardware supports this. The second daemon program called lircmd
will connect to lircd and translate the decoded IR signals to mouse
movements. You can e.g. configure X to use your remote control as an
input device.
The user space applications will allow you to control your computer
with your remote control. You can send X events to applications, start
programs and much more on just one button press. The possible
applications are obvious: Infra-red mouse, remote control for your TV
tuner card or CD-ROM, shutdown by remote, program your VCR and/or
satellite tuner with your computer, etc.
- DEBUG: off
- DOCS: on
- MINIMAL: off
- SMODE2: off
This port does not contain any FreeBSD device drivers for infrared
devices. This port installs the LIRC daemons and tools for interacting
with drivers that support the LIRC device interface.
You will need to obtain third party device drivers or port the Linux
drivers in ${WRKSRC}/drivers to use the LIRC port.
Update for 0.9:  Known working with this update are FTDI-based USB
IR receivers/transmitters like described here,
and if you use the recent multimedia/webcamd port then MCE USB based
ones driven by the Linux mceusb driver as well remotes coming with
USB DVB tuners that by default work with the Linux drivers used in
webcamd should also work, i.e. if webcamd creates a /dev/lircX
device node check if e.g.
mode2 -d /dev/lirc0
reports pulses and spaces when triggering the remote at the receiver,
if it does you probably will be able to use lirc.
Some other userland drivers will probably also work (like others
using libusb), they just were not tested.
The lirc documentation should be accessible at:
Some example configs should have been installed here:
The port now installs an example lircd.conf that's preconfigured
for use with webcamd, either with USB DVB tuner remotes supported
by the Linux drivers by default that webcamd uses, or for remotes
supplied with MCE USB IR receivers.  If you want to create a config
for a different remote using an IR receiver that works with mode2
you can try using irrecord like described here:
Update for webcamd >=
webcamd now supports /dev/input/eventX (X there can be for
example 0, 8, 16 etc) and uses it exclusively for almost all tuners,
only mceusb IR-only devices now support both interfaces.  So if you
don't get a /dev/lircX device node anymore and want to make lirc
use a remote with such a tuner you now need the lirc devinput driver,
if you start lircd via the rc.d script set lircd_flags and lircd_device
in rc.conf(5), like:
lircd_flags="-H devinput"
The example lircd.conf includes the devinput config file too so if
all goes well irw(1) should still work with such tuners and show
buttons pressed, and if not and the tuner's Linux driver uses the
rc.core interface you can often still add a custom keymap, only
with devinput you no longer want to use irrecord(1) but ir-keytable(1)
which is part of the multimedia/v4l-utils port.  Using that tool
you can e.g. check remote events coming in on /dev/input/eventX,
ir-keytable -d /dev/input/eventX -t
list the current keytable,
ir-keytable -d /dev/input/eventX -r
or add scancodes on the fly by loading a custom keymap,
ir-keytable -d /dev/input/eventX -w keymap.txt
(on Linux this can be automated using udev, don't know if we need
something like that also...)  Some (Linux-centric, so not all of
them apply) notes re ir-keytable(1) and the lirc devinput change
are also here:
===>   NOTICE:
The lirc port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:
More information about port maintainership is available at:


Package Version Architecture Repository
lirc-0.9.0_10,1.txz 0.9.0 i386 FreeBSD Ports Quarterly
lirc-0.9.0_10,1.txz 0.9.0 amd64 FreeBSD Ports Quarterly
lirc-0.9.0_10,1.txz 0.9.0 i386 FreeBSD Ports Latest
lirc - - -


Name Value
libICE = 1.0.9_3,1 -
libSM = 1.2.3,1 -
libX11 = 1.6.7,1 -
libftdi = 0.20_14 -
libirman = 0.5.2 -
python36 = 3.6.8_2


Name Value -


Type URL
Binary Package lirc-0.9.0_10,1.txz
Source Package comms/lirc

Install Howto

Install lirc txz package:

# pkg install lirc

See Also

Package Description
lis-2.0.20.txz Library of Iterative Solvers for linear systems
lisaem- Apple Lisa 2 Emulator
listadmin-2.40.txz Command-line alternative to Mailman Web interface
listener-2.2_1.txz Program to listen for and record sound activity
listres-1.0.4_2.txz List resources in widgets
listserialc-1.1.0.txz Simple multiplatform program to list serial ports with vid/pid/iserial
litecoin-0.17.1_2.txz Virtual Peer-to-Peer Currency Client (QT)
litecoin-daemon-0.17.1_2.txz Virtual Peer-to-Peer Currency (Daemon)
litecoin-utils-0.17.1_2.txz Virtual Peer-to-Peer Currency (CLI and Utilities)
liteide-36.3.txz Simple, open source, cross-platform Go IDE
litmus-0.13_1.txz WebDAV server protocol compliance test suite
liveMedia-2020.02.11,2.txz LIVE.COM Streaming Media
lives-2.10.2_6.txz Video editing system
lizard-1.0.txz Efficient compressor with very fast decompression
lizardfs-3.12.0_9.txz Open Source Distribruted Filesystem