apm 中文man頁面
NAME 名字
apm - 查詢高級電源管理(APM) BIOS
總覽
apm [ - vVmsS ]
描述
apm 讀取 /proc/apm 并用人能看懂的格式輸出。因為提供了首要的電池狀態(tài),這個命令在有兼容的 APM BIOS 的筆記本電腦上非常有用。 apm 允許使機器進入等待或掛起模式。
選項
- -V, --version
- 輸出 apm 程序的版本并立即退出。
- -v, --verbose
- 輸出關于 APM BIOS 的版本和 Linux APM 驅動程序的版本的信息。
- -m, --minutes
- 輸出剩余的總共的分鐘數而不是 hh:mm 格式。
- -s, --suspend
- 如果可能使機器進入掛起模式。
- -S, --standby
- 如果可能使機器進入等待模式。
- -i, --ignore
- 告訴系統(tǒng)在使用 AC (交流) 電源時忽略系統(tǒng)生成的 APM 掛起或等待事件。對這樣的用戶有用:擁有膝上型電腦,在用電池為電源時希望 APM 事件發(fā)生,在使用 AC (交流) 電源時不希望 APM 事件發(fā)生。
- -n, --noignore
- 告訴系統(tǒng)在使用 AC 電源時不忽略系統(tǒng)生成的 APM 掛起或等待事件。這是缺省的模式;提供這個選項作為取消的前面的 " apm -i " 調用的方法。
缺陷
本程序要求內核在 1.3.57 以上。除非在老的內核上增加 APM 補丁否則不能運行。原因是 /proc/apm 的格式被更改得非常迅速。
相關文件
/proc/apm
linux/drivers/char/apm_bios.c
著作者
本程序是由 Rik Faith (faith@cs.unc.edu)寫的,在 GPL 條款下可以自由發(fā)布。對這個程序絕對沒有任何擔保。當前的維護者是 Avery Pennarun (apenwarr@worldvisions.ca)。
參見
xapm(1), apmd(8)
#p#
NAME
apm - query Advanced Power Management (APM) BIOS
SYNOPSIS
apm [ -vVmsS ]
DESCRIPTION
apm reads /proc/apm and presents the output in a human-readable format. Since primarily battery status information is provided, this command is most useful on laptops with a compliant APM BIOS. apm also allows the machine to be put into standby or suspend mode.
OPTIONS
- -V, --version
- Print the apm program version and exit immediately.
- -v, --verbose
- Print information about the APM BIOS version and Linux APM driver version.
- -m, --minutes
- Print total minutes remaining instead of using an hh:mm format.
- -s, --suspend
- Put the machine into suspend mode if possible.
- -S, --standby
- Put the machine into standby mode if possible.
- -i, --ignore
- Tell the system to ignore system-generated APM suspend and standby events when on AC power. This may be useful to users who have laptops and want APM events when on battery power, but not when on AC power.
- -n, --noignore
- Tell the system not to ignore system-generated APM suspend and standby events when on AC power. This is the default mode; this option is provided as a way to undo a prior "apm -i" call.
BUGS
FILES
/proc/apmlinux/drivers/char/apm_bios.c
AUTHOR
This program was written by Rik Faith (faith@cs.unc.edu) and may be freely distributed under the terms of the GNU General Public License. There is ABSOLUTELY NO WARRANTY for this program. The current maintainer is Avery Pennarun (apenwarr@worldvisions.ca).SEE ALSO
xapm(1), apmd(8)