From cfdb0315e9873a9c99fe63228ec00570e8c45d61 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Fri, 22 Nov 2019 14:52:17 +0100 Subject: [PATCH 1/3] evrepeat: add new package to configure input device repeat settings Signed-off-by: Matthias Reichl --- packages/sysutils/evrepeat/package.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 packages/sysutils/evrepeat/package.mk diff --git a/packages/sysutils/evrepeat/package.mk b/packages/sysutils/evrepeat/package.mk new file mode 100644 index 0000000000..a92de04eef --- /dev/null +++ b/packages/sysutils/evrepeat/package.mk @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv) + +PKG_NAME="evrepeat" +PKG_VERSION="0.0.1" +PKG_SHA256="f1d14a12d700b9650562f8ec8ca593e6033f2e18b3d1fd1f44af29875152547e" +PKG_LICENSE="GPL" +PKG_SITE="https://github.com/HiassofT/evrepeat" +PKG_URL="https://github.com/HiassofT/evrepeat/archive/$PKG_VERSION.tar.gz" +PKG_DEPENDS_TARGET="toolchain" +PKG_LONGDESC="Tool to view and change linux input device repeat settings" + From c90dcd24232c6cc528d60eb0bf0fd662f90aed9a Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Fri, 22 Nov 2019 14:53:11 +0100 Subject: [PATCH 2/3] remote: depend on evrepeat Signed-off-by: Matthias Reichl --- packages/virtual/remote/package.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/virtual/remote/package.mk b/packages/virtual/remote/package.mk index 14aff9c3d0..b5a7f8f9ad 100644 --- a/packages/virtual/remote/package.mk +++ b/packages/virtual/remote/package.mk @@ -7,6 +7,6 @@ PKG_VERSION="1" PKG_LICENSE="GPL" PKG_SITE="http://www.openelec.tv" PKG_URL="" -PKG_DEPENDS_TARGET="toolchain eventlircd libirman v4l-utils" +PKG_DEPENDS_TARGET="toolchain eventlircd libirman v4l-utils evrepeat" PKG_SECTION="virtual" PKG_LONGDESC="Meta package for installing various tools needed for remote support" From 72f83fe02b355225dc2badd2b3bf4aecde21e574 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Fri, 22 Nov 2019 14:58:39 +0100 Subject: [PATCH 3/3] 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 --- .../{v4l-utils => evrepeat}/udev.d/70-input-repeat.rules | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) rename packages/sysutils/{v4l-utils => evrepeat}/udev.d/70-input-repeat.rules (59%) diff --git a/packages/sysutils/v4l-utils/udev.d/70-input-repeat.rules b/packages/sysutils/evrepeat/udev.d/70-input-repeat.rules similarity index 59% rename from packages/sysutils/v4l-utils/udev.d/70-input-repeat.rules rename to packages/sysutils/evrepeat/udev.d/70-input-repeat.rules index 541276b87d..58fb1386da 100644 --- a/packages/sysutils/v4l-utils/udev.d/70-input-repeat.rules +++ b/packages/sysutils/evrepeat/udev.d/70-input-repeat.rules @@ -9,10 +9,6 @@ ATTRS{name}=="eventlircd", GOTO="end" 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" +RUN+="/usr/bin/evrepeat -d 500 $devnode" LABEL="end"