|
|
网上很多地方都说要使用acpi相关功能的话,需要acpid这个后台进程,而开启这个进程就必须在内核中加入CONFIG_ACPI_PROC_EVENT=y,而menuconfig的help中是这么描述的:
A user-space daemon, acpi, typically read /proc/acpi/event
│ and handled all ACPI sub-system generated events.
│
│ These events are now delivered to user-space via
│ either the input layer, or as netlink events.
│
│ This build option enables the old code for legacy
│ user-space implementation. After some time, this will
│ be moved under CONFIG_ACPI_PROCFS, and then deleted.
│
│ Say Y here to retain the old behaviour. Say N if your
│ user-space is newer than kernel 2.6.23 (September 2007).
按照这个说法,是不是2.6.23以上的内核就不用sys-power/acpid这个东东了呢?
还有就是关于USE flag中的acpi是这么描述的:
# euse -i acpi
global use flags (searching: acpi)
************************************************************
[+ D ] acpi - Adds support for Advanced Configuration and Power Interface
local use flags (searching: acpi)
************************************************************
[+ D ] acpi (sys-apps/hal):
Enables HAL to attempt to read from /proc/acpi/event, if unavailable, HAL will read events from sys-power/acpid. If you need multiple acpi readers, ensure acpid is in your default runlevel (rc-update add acpid default) along with HAL. This will also enable HAL to read Toshiba and IBM acpi events which do not get sent via /proc/acpi/event
是不是可以理解为加"acpi"这个use flag就是增加对sys-power/acpid支持,也就是从/proc/acpi/event这个地方读取相关的信息? |
|