Section: System Administration Utilities (8)
Updated: Last change: Aug 2016
lircmd - Translate infrared signals into mouse events.
lircmd [options] [config-file]
reads decoded buttonpress events from a
lircd(8)output socket and converts them to mouse events. These events are made available either on the lircmd output socket (by default
/usr/local/var/run/lirc/lircmd) or, using the
--uinputoption, on a /dev/input device like
/dev/input/event12 .This daemon can simulate a MouseSystems, IntelliMouse or IMPS/2 type mouse. The function depends on a configuration file, by default /usr/local/etc/lirc/lircmd.conf . This file determines which button from which remote causes a mouse move or a mouse button click. Special button which activates or deactivates the mouse mode can also be defined.
The normal usage is to configure X11 to use the events produced by lircmd as an input source. See SEE ALSO.
Using the --uinput option the user device created by the kernel has a dynamic name which typically changes after a reboot. The lirc distribution contains a udev rule which, if installed, creates a fixed link named /dev/lircmd which always can be used.
By default, using the --uinput option requires lircmd to run as root since the /dev/uinput device can be accessed only by root. The lirc distribution contains example udev rules and lircd-setup(8) configurations which can be used to make the device accessible by other users. In this way, lircmd can be run as a regular user.
The socket protocol contains undocumented parts. The data on the output socket is
lircmd will use syslogd to output error messages. It depends on your system configuration where they will show up.
The options file is by default /usr/local/etc/lirc/lirc_options.conf; lircmd handles the values under the [lircmd] section in this file. The location can be changed using the -O/--options-file command-line option or using the environment variable LIRC_OPTIONS_PATH. The values here are used as defaults for any option not present on command line.
lircmd is a daemon. It should be started in some system-dependent init script. Besides the systemd setup which is installed by default there are also example scripts for other distros and init systems in the contrib directory. lircmd has to be started after lircd as it connects to the socket lircd provides.
Since the device name used when registrating the --uinput device is fixed, only one instance of lircmd using this option can run on a given system.
The socket protocol is a documentation-wise mess.
http://lirc.org/html/configure.html#lircmd.conf
lircd(8)
lircd-setup(8)
This document was created by
man2html,
using the manual pages.
Time: 02:14:59 GMT, June 23, 2017