Skip to content

Using a remote

Terényi, Balázs edited this page May 30, 2017 · 3 revisions

You can also use a remote to control Slimmer. To accomplish this you have to configure LIRC and its lircd-uinput module to transform remote key presses to Linux keyboard events. You will also need an udev rule to set a fixed name to the device file under /dev. After that you can configure Slimmer with its --input <input device file> parameter to monitor this file for keyboard events.

Slimmer watches only the following keys: KEY_BACKSPACE, KEY_LEFT, KEY_RIGHT, KEY_ENTER and KEY_SPACE, so LIRC has to inject these key presses and releases into the system.

Example udev rule:

### 2017.03.15 Mapping /dev/lirc0 to /dev/input/myremote
KERNEL=="event*",SUBSYSTEM=="input",ATTRS{name}=="lircd",SYMLINK="input/myremote"
Clone this wiki locally