FreeBSD Ports

comms/lirc 0.9.0_14,1

Linux Infrared Remote Control

Repository
FreeBSD ports
Maintainer
[email protected]
License
GPLv2
Categories
comms
Package size
401.7 KiB, 1733.0 KiB installed

Description

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.

Install

As a binary package — by origin, or by package name:

pkg install comms/lirc
pkg install lirc

From the ports tree:

cd /usr/ports/comms/lirc/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	lirc>0:comms/lirc
LIB_DEPENDS=	liblirc_client.so:comms/lirc

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.9.0_14,10.9.0_14,10.9.0_13,10.9.0_14,10.9.0_14,1
FreeBSD:14:quarterly0.9.0_14,10.9.0_14,1n/a0.9.0_14,10.9.0_14,1
FreeBSD:15:latest0.9.0_14,10.9.0_14,1n/a0.9.0_14,10.9.0_14,1
FreeBSD:15:quarterly0.9.0_14,10.9.0_14,1n/an/an/a
FreeBSD:16:latest0.9.0_14,10.9.0_14,1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

The full lists below include those, and their dependencies in turn.

All build dependencies 28
All run dependencies 20

No port depends on this one.

Configuration

Options name: comms_lirc

OptionDefaultDescription
DEBUGoffBuild with debugging support
DOCSoffBuild and/or install documentation
EXAMPLESoffBuild and/or install examples
MINIMALoffBuild with minimal dependencies
UARTLIRCoffInstall serial LIRC driver
USES
autoreconf gmake libtool localbase python tar:bzip2 xorg
Service scripts
lircd

Message after installing

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,

	http://www.huitsing.nl/irftdi/

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:

	/usr/local/share/doc/lirc/html/index.html

Some example configs should have been installed here:

	/usr/local/share/examples/lirc/remotes

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:

	file:///usr/local/share/doc/lirc/html/help.html#new_remote

Update for webcamd >= 3.0.0.1:

webcamd 3.0.0.1 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"
	lircd_device="/dev/input/event0"

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:

	http://forum.xbmc.org/showthread.php?t=101151

===>   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:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://docs.freebsd.org/en/articles/contributing/#ports-contributing

Files

Manual pages 13
  • ircat(1)
  • irexec(1)
  • irpty(1)
  • irrecord(1)
  • irsend(1)
  • irw(1)
  • irxevent(1)
  • lircd(8)
  • lircmd(8)
  • lircrcd(1)
  • mode2(1)
  • smode2(1)
  • xmode2(1)
pkg-plist 33
  • bin/ircat
  • bin/irexec
  • bin/irpty
  • bin/irrecord
  • bin/irsend
  • bin/irw
  • bin/irxevent
  • bin/lircrcd
  • bin/mode2
  • bin/pronto2lirc
  • bin/xmode2
  • include/lirc/lirc_client.h
  • lib/liblirc_client.a
  • lib/liblirc_client.so
  • lib/liblirc_client.so.0
  • lib/liblirc_client.so.0.2.1
  • share/man/man1/ircat.1.gz
  • share/man/man1/irexec.1.gz
  • share/man/man1/irpty.1.gz
  • share/man/man1/irrecord.1.gz
  • share/man/man1/irsend.1.gz
  • share/man/man1/irw.1.gz
  • share/man/man1/irxevent.1.gz
  • share/man/man1/lircrcd.1.gz
  • share/man/man1/mode2.1.gz
  • share/man/man1/smode2.1.gz
  • share/man/man1/xmode2.1.gz
  • share/man/man8/lircd.8.gz
  • share/man/man8/lircmd.8.gz
  • sbin/lircd
  • sbin/lircmd
  • @sample etc/lircd.conf.sample
  • @dir /var/run/lirc
distinfo 1
FileSizeSHA256
lirc-0.9.0.tar.bz28572866323afae6ad498d4369675f77ec3dbb680fe661bea586aa296e67f2e2daba4ff
Master sites 1
  • SF/lirc/LIRC/0.9.0

Commit history 0

No commits in the history this site was built from.