0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-12-15 19:09:46 +00:00
Lakka-LibreELEC/packages/mediacenter/kodi/config/70-libinput-ignore-power-button.rules
Matthias Reichl 02d318ca2a kodi: extend power button udev rule to match on 32bit systems as well
Signed-off-by: Matthias Reichl <hias@horus.com>
2023-09-29 01:51:12 +02:00

16 lines
434 B
Plaintext

# Ignore power button input devices in libinput so logind can handle them
ACTION=="remove", GOTO="end"
SUBSYSTEM!="input", GOTO="end"
KERNEL!="event*", GOTO="end"
IMPORT{parent}="KEY"
# match devices that only generate KEY_POWER (code 116) events
ENV{KEY}=="10000000000000 0", ENV{LIBINPUT_IGNORE_DEVICE}="1"
# 32bit systems report the bitmap in 32bit chunks
ENV{KEY}=="100000 0 0 0", ENV{LIBINPUT_IGNORE_DEVICE}="1"
LABEL="end"