v4l-utils: add 70-input-repeat.rules

This moves the repeat delay config from 98-eventlircd.rules,
changes the repeat period from 33ms to 80ms for lircd-uinput
and changes the repeat delay from 1s to 500ms for all input devices.
This commit is contained in:
Jonas Karlman 2017-02-12 17:56:16 +01:00
parent c6e0ad65d7
commit 194f304c22
2 changed files with 18 additions and 3 deletions

View File

@ -194,9 +194,6 @@ ENV{eventlircd_evmap}="osmc_rf.evmap"
LABEL="end-usb"
# Set default delays (1000ms for first repeat, to avoid multiple keypresses).
RUN+="/usr/bin/ir-keytable --delay=1000 --device=$devnode"
#-------------------------------------------------------------------------------
# Ask eventlircd to handle Bluetooth HID devices that show up as event devices
# and are known to be remote controls. For simplicity, the event map file names

View File

@ -0,0 +1,18 @@
ACTION=="add", SUBSYSTEM=="input", KERNEL=="event[0-9]*", GOTO="start"
GOTO="end"
LABEL="start"
# don't change eventlircd device settings
ATTRS{name}=="eventlircd", GOTO="end"
# don't change settings of rc remotes
SUBSYSTEMS=="rc", GOTO="end"
# set default repeat delay to 500ms like rc remotes
RUN+="/usr/bin/ir-keytable --delay=500 --device=$devnode"
# make lircd-uinput use same repeat period like keyboards in kodi
ATTRS{name}=="lircd-uinput", \
RUN+="/usr/bin/ir-keytable --period=80 --device=$devnode"
LABEL="end"