Commit graph

4 commits

Author SHA1 Message Date
Matthias Reichl
72f83fe02b move 70-input-repeat.rules from v4l-utils to evrepeat
Since 1.18.0 ir-keytable no longer supports the "--device" option
which means it can't be used to configure input repeat settings
of non-rc devices like keyboards, RF remotes etc.

Use the newly added evrepeat tool instead so we retain the same
500ms initial repeat delay as before the v4l-utils bump.

lircd-uninput is no longer used by default on LE so drop it's
repeat period configuration.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-11-22 16:11:38 +01:00
Matthias Reichl
37dc6ef716 v4l-utils: simplify 70-infrared.rules and fix kernel 4.20 issues
Using $id to get the rcX device name from the SUBSYSTEMS match,
as used by the upstrem v4l-utils udev rule, is easier and more
stable than using IMPORT{parent}, which needs to transmit info across
two levels (rcX->inputY->eventZ) and breaks with kernel 4.20.

Instead of running a shell script to check for the existance of
/storage/.config/rc_maps.cfg we can use the builtin udev TEST
function.

Also it's better to use ENV variables prefixed with a dot as
they are used only locally in the udev rule file and don't need
to be persisted in the udev database or exported to external tools.

Signed-off-by: Matthias Reichl <hias@horus.com>
2018-12-28 01:26:34 +01:00
Matthias Reichl
e69350f6ed v4l-utils: fix racy udev rule
ir-keytable -a can fail if it's run before the input and event
devices are created. Fix this by changing the udev rule to trigger
on event device creation instead of rc device creation.

Also drop the udev rules patch and simply replace the udev rule
with our version, this is easier to maintain.

Signed-off-by: Matthias Reichl <hias@horus.com>
2017-07-16 18:14:22 +02:00
Jonas Karlman
e299f01134 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.
2017-02-18 22:57:26 +01:00