Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

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 Toolybird (Toolybird) - Saturday, 15 October 2022, 20:20 GMT
Task Type General Gripe
Category Packages
Status Assigned
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 0%
Votes 2
Private No


Noticed that acpid-2.0.34 default /etc/acpi/ 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

Additional info:
* package version(s)
kernel 5.19.13-arch1-1
* config and/or log files etc.
Arch Linux package provided /etc/acpi/ 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
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

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

Comment by Andrey Vihrov (andreyv) - Sunday, 13 November 2022, 15:31 GMT
Started with 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 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:


The first line is an ordinary regexp (same as grep -E). Action named "<drop>" causes acpid to completely ignore the event (see the manpage).