舊的能源管理
- apmd
新的能源管理
- acpi - 查看資訊用, notebook 才用到.
- acpitool - command line ACPI client
- acpid - Advanced Configuration and Power Interface event daemon
- acpi-support - scripts for handling many ACPI events
apmd
acpi (在 server 上無咩用)
acpi - displays information on ACPI devices (from the /proc or the /sys filesystem)
- man 1 acpi
= /usr/bin/acpi
i.e.
-b | --battery # show battery information
acpid
- man 8 acpid, man 8 acpi_listen
= /usr/bin/acpi_listen
= /usr/sbin/acpid (/etc/init.d/acpid)
notify user-space programs of ACPI events
acpid read ---> /proc/acpi/event // kernel input: netlink
設定:
/etc/default/acpid
MODULES="battery ac processor button fan thermal video"
/etc/acpi/events
- powerbtn // config file
# We need to react on "button power.*" and "button/power.*" because of kernel changes. event=button[ /]power action=/etc/acpi/powerbtn.sh
/etc/acpi/powerbtn.sh <- script file
P.S.
不會讀取 ~ 尾的 file
reload config:
send SIGHUP
socket
/var/run/acpid.socket
acpid will send the text of all ACPI events to the client
acpi-support