From ec0e7fb3a2d64fbbf3d75c1fec35d2509d794286 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Sun, 4 Nov 2018 10:44:23 +0100 Subject: [PATCH] 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 --- packages/sysutils/eventlircd/udev.d/98-eventlircd.rules | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/sysutils/eventlircd/udev.d/98-eventlircd.rules b/packages/sysutils/eventlircd/udev.d/98-eventlircd.rules index 09a6cd4c7b..e1d36d4ebe 100644 --- a/packages/sysutils/eventlircd/udev.d/98-eventlircd.rules +++ b/packages/sysutils/eventlircd/udev.d/98-eventlircd.rules @@ -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"