ACPIBTN(4)
π ACPIBTN(4) β the ACPI button page, explained by your favorite nerd bestie
okay so real talk, this is a kernel interfaces manual page, section 4, and it's literally all about acpibtn, the ACPI button driver. yes bestie, the buttons. the ones you press. slay.
β¨ NAME β¨
acpibtn β the ACPI button driver. that's it, that's the vibe. π
π¦ SYNOPSIS π¦
acpibtn* at acpi?
one line, no notes, iconic. it attaches at acpi? and the * means more than one can show up. periodt.
π₯ DESCRIPTION π₯
so acpibtn handles the events that get triggered by ACPI buttons. and like⦠currently only three things are supported, ngl:
- the power button
- the sleep button
- lid status events
that's the whole roster. main character energy only.
πΈ the power button
lowkey the most important one. the power button event gets handled according to the machdep.pwraction sysctl(8). valid values are:
0β do nothing. literally nothing. it just sits there, unbothered, minding its business.1β perform a regular system shutdown and power off the machine, but only if thehw.allowpowerdownsysctlis set to1. that condition is doing a lot of work, don't skip it, iykyk.2β put the system into suspend (deep sleep) state.
π€ the sleep button
the sleep button event puts the system into suspend (deep sleep) state. that's the entire description. short, sweet, ate. π
π«Ά the lid status
the lid status event is handled according to the machdep.lidaction sysctl. valid values are:
0β do nothing. once again, nothing. resting.1β put the system into suspend (deep sleep) state.2β put the system into hibernation. and bestie this one's a whole journey, so buckle up:
system memory is saved to disk (swap space) and the machine is powered down. for machines supporting the acpi(4) style hibernate functionality β note that caveat, it's important β on resume a full kernel boot will occur, followed by the reading of the saved memory image. the image will then be unpacked and the system resumed at the point immediately after the hibernation request. like a nap with no consequences. π
also, the lid status is set up as a sensor, so you can monitor it with sysctl(8) or sensorsd(8). little sensor, doing big things.
π SEE ALSO π
go read them, they're all right there, no excuses. β¨
π HISTORY π
the acpibtn driver first appeared in OpenBSD 3.9. vintage. retro. a classic. π
π AUTHORS π
the acpibtn driver was written by Marco Peereboom <marco@openbsd.org>. thank you for your service, king. π
heads up bestie:machdep.pwraction,machdep.lidaction, andhw.allowpowerdownare sysctls β you tweak them withsysctl(8), and the power-off-at-1behavior is conditional onhw.allowpowerdownbeing1. don't come for me if you skipped that line. π«Ά
and that's the page, fr fr. this beauty comes from the Debian build, dated September 3, 2021, and it's section 4 energy all the way through. byeee π¦π
π¦ where this page comes from
- nixpkgs unstable: cvs-export
- Copyright (c) 2006 Michael Knudsen <mk@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms