From b83859c3d3a0b9bd0a73e531cabdda433650357b Mon Sep 17 00:00:00 2001 From: Krul Ceter Date: Tue, 31 Jan 2023 20:24:51 +0300 Subject: [PATCH] acpid: ignore arrow key events Upstream added new keys to the list of input events in b336c96e32c959ed3df15eaf5669f47ea589d977 (see https://sourceforge.net/p/acpid2/code). Due to that change syslog gets flooded with arrow key events which are not used by /etc/acpi/handler.sh. --- srcpkgs/acpid/files/buttons | 2 ++ srcpkgs/acpid/template | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/acpid/files/buttons diff --git a/srcpkgs/acpid/files/buttons b/srcpkgs/acpid/files/buttons new file mode 100644 index 000000000000..c269364696e1 --- /dev/null +++ b/srcpkgs/acpid/files/buttons @@ -0,0 +1,2 @@ +event=button/(up|down|left|right|kpenter) +action= diff --git a/srcpkgs/acpid/template b/srcpkgs/acpid/template index 6e066b9409ba..a4b96daf8681 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 " @@ -10,10 +10,12 @@ homepage="https://sourceforge.net/projects/acpid2/" changelog="https://sourceforge.net/p/acpid2/code/ci/master/tree/Changelog?format=raw" distfiles="${SOURCEFORGE_SITE}/acpid2/acpid-${version}.tar.xz" checksum=2d095c8cfcbc847caec746d62cdc8d0bff1ec1bc72ef7c674c721e04da6ab333 -conf_files="/etc/acpi/events/anything /etc/acpi/handler.sh" +conf_files="/etc/acpi/events/anything /etc/acpi/events/buttons + /etc/acpi/handler.sh" post_install() { vinstall ${FILESDIR}/handler.sh 755 etc/acpi vinstall ${FILESDIR}/anything 644 etc/acpi/events + vinstall ${FILESDIR}/buttons 644 etc/acpi/events vsv acpid }