Skip to content

Commit

Permalink
eventlircd: prevent race with libinput / kodi
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
HiassofT committed Nov 4, 2018
1 parent 97d7dee commit ec0e7fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/sysutils/eventlircd/udev.d/98-eventlircd.rules
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit ec0e7fb

Please sign in to comment.