DOKK / manpages / debian 11 / lirc / lircrcd.8.en
LIRCRCD(8) System Manager Manual LIRCRCD(8)

lircrcd - Synchronize lircrc state among client applications.

lircrcd [options] config-file

lircrcd reads the given .lircrc config file and synchronises the mode that the LIRC clients such as irexec(1), irxevent(1), etc., are in. Using lircrcd has to be explicitly enabled in the lircrc config file by adding the following line at the beginning of the file:

lircrc_class default

This must be done at the top-level file, not an included one. The lircrc_class string (here "default") could actually be anything; clients using the same string in their lircrc will be synchronized.

Display help message.
Display version.
The --permission option gives the file permission of the Unix domain socket lircrcd creates on startup in octal representation. Read the documentation for chmod for further details. If no --permission option is given when the socket is created the default is to give only the user owning the file read and write permissions (0600 in octal representation).
With the --output option you can select the Unix domain socket, which lircrcd will create. The default is to create a socket in VARRUNDIR (/var/run/lirc), see FILES.

lircrcd syntactically uses the same protocol as lircd described in the lircd(8) manpage. It supports the following commands:

Each program connecting to lircrcd identifies itself using this program. ident is the string that is used in the Prog = token inside the .lircrc file.

When the client receives the code string from lircd it will send it to lircrcd and will receive back the applicable config string from the .lircrc config file. It should resend the CODE command until nothing is returned back which means that nothing (more) should happen in response to code. This command is used each time the lirc_code2char() function is called by a client.

lircrcd will return the current mode string.

lircrcd will set the actual mode, reflecting a mode in the .lircrc file.

lircrcd creates its socket(s) in the VARRUNDIR directory (/var/run/lirc). The socket basename includes the user UID and the string from the lircrc_class option.

The documentation for lirc is maintained as html pages. They are located under html/ in the documentation directory.

Last change: Sep 2015 lircrcd 0.10.1