.Dd Mon, 06 Feb 2006 17:42:25 +0100 .Dt INPUTLIRCD 8 .Sh NAME .Nm inputlircd .Nd zeroconf LIRC daemon using input event devices .Sh SYNOPSIS .Nm .Op Fl d Ar socket .Op Fl f .Op Fl c .Op Fl r Ar repeat-rate .Op Fl m Ar keycode .Op Fl n Ar device name .Op Fl u Ar username .Ar device .Op Ar device Li ... .Sh DESCRIPTION .Nm is a small LIRC daemon that reads from .Pa /dev/input/event Ns X devices and sends the received keycodes to connecting LIRC clients. .Nm needs no configuration, it uses the standardised names for the keycodes as used by the kernel. Many USB remote controls that present HID devices, as well as multimedia keyboards should work out of the box. .Pp .Nm expects a list of input event devices as commandline parameters. It will only read events from those devices. .Sh OPTIONS .Bl -tag -width flag .It Fl d Ar socket Location of the UNIX socket to which LIRC clients can connect. The default is .Pa /run/lirc/lircd . .It Fl f Run in the foreground. .It Fl c Capture modifier keys. This causes the CTRL, SHIFT, ALT and META keys to be treated as modifer keys that, when used in combination with another keys, change the LIRC event from that key rather than being sent as their own LIRC events. .It Fl r Ar repeat-rate Set the repeat rate (in milliseconds) of the remote control. The default is 0. Repeated keys that arrive less than .Ar repeat-rate milliseconds apart will be flagged as as repeat LIRC events. .It Fl g Grab the input device(s). This gives .Nm exclusive access to the input devices and stops events from propagating any further. .It Fl m Ar keycode Minimum keycode to send to LIRC clients. Keycodes lower than this number are filtered out. The default is 88, this filters out the alphanumeric section and the keypad section of normal keyboards, but allows all extended keys. The rationale is that clients should not be able to grab normal keypresses, this could be a security risk. .It Fl n Ar device name Name of an input device to read events from. This scans all available input event devices, and if the symbolic name of an event device matches .Ar device name , adds it to the list of devices to read from. The .Ar device name can contain wildcard patterns, see .Xr glob 7 . To get a list of available devices and their names, cat .Pa /proc/bus/input/devices or use .Xr lsinput 8 . .It Fl u Ar username Set user and group id to that of .Ar username after opening the devices and UNIX socket as root. The default is nobody. .It Fl t Ar path Provides the path to a file containing a mapping between input event key names and the commands which should be reported via lirc. The files should contain lines of the form .Pa KEY_FOO = bar . This is useful for backward compatibility. The default is not to use a translation table. .It Ar device One or more input event devices. If you want to use .Nm to process multimedia keys on the keyboard, then .Pa /dev/input/event0 is the most likely choice. If you have other input devices, such as USB remote controllers that act like a HID device, then you probably need one of the other event devices present. See .Pa /proc/bus/input/devices for a list of available input devices. If unsure, you can add all available input event devices. .El .Sh FILES .Bl -tag -width indent .It Pa /run/lirc/lircd Default location of the UNIX socket to which LIRC clients can connect. .It Pa /dev/input/event Ns X The kernel input layer's event device files. .It Pa /proc/bus/input/devices List of all input devices. .El .Sh SEE ALSO .Xr irw 1 , .Xr input-events 8 , .Xr setkeycodes 8 , .Pa /usr/include/linux/input-event-codes.h .