ACPI/zh-cn

ACPI（Advanced Configuration 和 Power Management Interface）是Article description:: [[power management 系统是 BIOS 的一部分. ]]

内核
ACPI 需要开启下列内核选项：

Emerge
Desktop environments react on the common events generated by ACPI. If a desktop environment is not installed or to have the system react on special events the ACPI package can be installed. Install the package:

USE 标记
Several packages know about the global USE flag. There are no use flags available for at this time.

SELinux
For acpid to be able to shutdown a SELinux system, make sure the package is installed and the  executable is re-labelled:

配置
The scripts found in define how the system reacts on ACPI events. They can be edited as necessary to meet the user's needs.

OpenRC
现在可以启动 acpid 服务. 使用 OpenRC 时运行：

要在系统启动时运行 acpid 服务，请将其添加到默认运行级别：

systemd
If systemd is being used as the init system, enable the acpid service on system boot by issuing:

现在启动服务：

进阶示例
The default ACPI setup may be satisfactory for some users, however a little extra configuration may be required to get the acpid daemon to treat some basic ACPI events properly (AC power plug in/out, multimedia keys, etc.).

Modifications can be make to along with  if necessary. Why not create a complicated setup that makes use of the and  capabilities? Simply put scripts and event files in those locations for advanced usage.

A basic file will probably be enough for most users, however the following is an example of what could be done using :