FS#76204 - [acpid] defaults log keyboard up/down keys
Attached to Project:
Community Packages
Opened by Jarmo (JATothrim) - Friday, 14 October 2022, 14:54 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:10 GMT
Opened by Jarmo (JATothrim) - Friday, 14 October 2022, 14:54 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:10 GMT
|
Details
Description:
Noticed that acpid-2.0.34 default /etc/acpi/handler.sh logs keyboard UP / DOWN arrow keys into journal which is quite silly and annoying: [code]root[2453]: ACPI group/action undefined: button/up / UP root[2455]: ACPI group/action undefined: button/up / UP root[2460]: ACPI group/action undefined: button/down / DOWN root[2462]: ACPI group/action undefined: button/down / DOWN [/code] Additional info: * package version(s) acpid-2.0.34 kernel 5.19.13-arch1-1 * config and/or log files etc. Arch Linux package provided /etc/acpi/handler.sh and /etc/acpi/events/anything * link to upstream bug report, if any Steps to reproduce: Install community/acpid 2.0.34-1 Start acpid: systemctl start acpid Result: Your UP / DOWN arrow keys presses might now be logged into journal I think this is *not* an intended feature or or is it? |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:10 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/acpid/issues/2
Saturday, 25 November 2023, 20:10 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/acpid/issues/2
[1] https://wiki.archlinux.org/title/acpid#Configuration
Can be disabled in the configuration, added an example to the wiki page.
This is an annoyance as well as efficiency issue: acpid will spawn a new bash process on every press of directional keys, contributing to notebook battery drain.
The maintainer of package should disable this behaviour. In meantime we can work around this issue by creating a file in /etc/acpi/events/ with following contents:
event=^button/(up|right|down|left)
action=<drop>
The first line is an ordinary regexp (same as grep -E). Action named "<drop>" causes acpid to completely ignore the event (see the manpage).