HomeFreeBSD

ACPI: Implement power button on !x86

Description

ACPI: Implement power button on !x86

ACPI sleep states are only implemented on x86 systems, so having the
ACPI power button attempt to enter "S5" (or other state as configured
via the hw.acpi.power_button_state sysctl) is not useful.

On non-x86 systems, implement the power button with a call to

shutdown_nice(RB_POWEROFF)

to shut down the system.

Reviewed by: Andrew
Tested on: Graviton 2
MFC after: 2 weeks
Sponsored by: Amazon
Differential Revision: https://reviews.freebsd.org/D47094

(cherry picked from commit f41ef9d80b3d272e08dd9e2ea3c1d8d3f2818066)

Details

Provenance
cpercivaAuthored on Oct 12 2024, 5:27 PM
Reviewer
andrew
Differential Revision
D47094: ACPI: Implement power button on !x86
Parents
rG7c8f273bfba2: acpi_gpiobus: OR GPIO_PIN_(IN|OUT)PUT into flags
Branches
Unknown
Tags
Unknown