From 5ac39e5ecbe12d03dc10189f48624e7bf3c92499 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Thu, 9 Feb 2023 13:18:18 +0100 Subject: [PATCH] acpid: don't generate events for cursor keys and keypad enter. Closes #41994. --- srcpkgs/acpid/patches/no-cursor-events.patch | 16 ++++++++++++++++ srcpkgs/acpid/template | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/acpid/patches/no-cursor-events.patch diff --git a/srcpkgs/acpid/patches/no-cursor-events.patch b/srcpkgs/acpid/patches/no-cursor-events.patch new file mode 100644 index 00000000000..983c291153c --- /dev/null +++ b/srcpkgs/acpid/patches/no-cursor-events.patch @@ -0,0 +1,16 @@ +--- a/input_layer.c ++++ b/input_layer.c +@@ -181,11 +181,13 @@ + "button/kbdillumdown KBILLUMDOWN 00000080 00000000" }, + { EV_KEY, KEY_COPY, 1, "button/copy COPY 00000080 00000000" }, + { EV_KEY, KEY_RESTART, 1, "button/restart RSTR 00000080 00000000" }, ++#if 0 + { EV_KEY, KEY_KPENTER, 1, "button/kpenter KPENTER 00000080 00000000" }, + { EV_KEY, KEY_UP, 1, "button/up UP 00000080 00000000" }, + { EV_KEY, KEY_LEFT, 1, "button/left LEFT 00000080 00000000" }, + { EV_KEY, KEY_RIGHT, 1, "button/right RIGHT 00000080 00000000" }, + { EV_KEY, KEY_DOWN, 1, "button/down DOWN 00000080 00000000" }, ++#endif + { EV_KEY, KEY_MENU, 1, "button/menu MENU 00000080 00000000" }, + { EV_KEY, KEY_BACK, 1, "button/back BACK 00000080 00000000" }, + { EV_KEY, KEY_HOMEPAGE, 1, "button/homepage HOMEPAGE 00000080 00000000" }, diff --git a/srcpkgs/acpid/template b/srcpkgs/acpid/template index 6e066b9409b..1c498a23332 100644 --- a/srcpkgs/acpid/template +++ b/srcpkgs/acpid/template @@ -1,7 +1,7 @@ # Template file for 'acpid' pkgname=acpid version=2.0.34 -revision=1 +revision=2 build_style=gnu-configure short_desc="ACPI Daemon (acpid) With Netlink Support" maintainer="Enno Boland "