eventlircd: prevent race with libinput / kodi

Currently both eventlircd and kodi try to grab input devices
which leads to a nasty race. If kodi wins the race eventlircd
can't do the keycode to lirc translation and users are left
with non-working buttons like OK.

Setting the LIBINPUT_IGNORE_DEVICE udev property for input
devices handled by eventlircd prevents the race as libinput
will then ignore these devices and kodi won't try to grab them.

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2018-11-04 10:44:23 +01:00
parent 97d7dee7cf
commit ec0e7fb3a2

View File

@ -224,4 +224,7 @@ ATTRS{name}=="Amazon Fire TV Remote", \
LABEL="end-bluetooth"
# tell libinput to ignore devices handled by eventlircd
ENV{eventlircd_enable}=="true", ENV{LIBINPUT_IGNORE_DEVICE}="1"
LABEL="end"