ACPIBUT(4)
π 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
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2002, 2004 The NetBSD Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms