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
Task Type General Gripe
Category Packages
Status Closed
Assigned To Morten Linderud (Foxboron)
Robin Broda (coderobe)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

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
Comment by Toolybird (Toolybird) - Saturday, 15 October 2022, 20:19 GMT
Seems to be documented in the wiki as a kinda debugging aid [1]

[1] https://wiki.archlinux.org/title/acpid#Configuration
Comment by Andrey Vihrov (andreyv) - Sunday, 13 November 2022, 15:31 GMT
Started with https://sourceforge.net/p/acpid2/code/ci/b336c96e32c959ed3df15eaf5669f47ea589d977/. Appears to be an intended change, though I agree it is silly.

Can be disabled in the configuration, added an example to the wiki page.
Comment by Alexander (AlexanderR) - Friday, 09 December 2022, 06:24 GMT
Monitoring up/down/left/right events is intended feature of acpid. But logging them isn't — it happens because Arch package contains a generic catch-all event handler and handler.sh logs all "unfamiliar" events.

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).

Loading...