key_monitor executable

Executable script for monitoring key events on a /dev/input/event* device and executing corresponding commands.

Arguments

  • --check flag: Only check the supplied arguments and configuration, then exit.

  • -c | --config: Absolute path or file name (to be auto-detected) for the key processing configuration.

  • Required positional argument: Logical name of the input event device to monitor, e.g. ‘pi-sig-injector’. May also be an absolute path to the event device, e.g. /dev/input/event14.

Additionally, the standard arguments from gpiosvr.shell.GpioControlShell.addStandardArgs() and ctlbase.shell.ServiceControlShell.addStandardArgs() are accepted.

If key events shall be aligned with LEDs connected to specific GPIOs, the arguments --strategy and possibly --socket are required to connect to the corresponding GPIO server. As an alternative to these arguments, the environment variables GPIO_STRATEGY and GPIO_SOCKET_PATH can be used, respectively.