ACPIBUT(4)

πŸ“¦ version 11.0, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

acpibut β€” the ACPI Button driver, aka the little guy who hears you press the power button πŸ’… (this is acpibut(4) from the Kernel Interfaces Manual, section 4, bestie β€” very much kernel-adjacent, very much not a userland thing)


✨ SYNOPSIS ✨

acpibut* at acpi?

Yeah that's the whole vibe. It attaches at acpi? and that's it. Iconic minimalism honestly 🫢


πŸ’– DESCRIPTION πŸ’–

okay so the acpibut driver supports two kinds of ACPI buttons β€” just two, that's the whole squad:

  • Power β€” runs /etc/powerd/scripts/power_button
  • Sleep β€” runs /etc/powerd/scripts/sleep_button

so like, the mapping is literally: press a button β†’ it has a script β†’ that script is the script for that button. no cap πŸ”₯

And here's the main character moment: when a button is pressed, the powerd(8) daemon β€” if it's running β€” will execute the corresponding script. That "if running" is doing so much work, please respect it 😭 no daemon, no script, that's just how it is.


🌈 SEE ALSO 🌈

go read those too, iykyk πŸ“šβœ¨


πŸ¦‹ HISTORY πŸ¦‹

The acpibut driver appeared in NetBSD 1.6. a true elder, a legend, we stan a long-running driver πŸ‘‘


ngl this is one of the shortest manpages you'll ever read and honestly? she ate. concise queen πŸ“

and that's the whole page bestie β€” source/version vibes courtesy of Debian, dated April 25, 2010, so pour one out for a manpage that's been serving looks since before some of us could read πŸ’€πŸ’œ bye!! πŸ’…πŸŽ€

πŸ“¦ where this page comes from