mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
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:
parent
c6e0ad65d7
commit
194f304c22
@ -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
|
||||
|
18
packages/sysutils/v4l-utils/udev.d/70-input-repeat.rules
Normal file
18
packages/sysutils/v4l-utils/udev.d/70-input-repeat.rules
Normal 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"
|
Loading…
x
Reference in New Issue
Block a user