apm 中文man頁(yè)面
NAME 名字
apm - 查詢(xún)高級(jí)電源管理(APM) BIOS
總覽
apm [ - vVmsS ]
描述
apm 讀取 /proc/apm 并用人能看懂的格式輸出。因?yàn)樘峁┝耸滓碾姵貭顟B(tài),這個(gè)命令在有兼容的 APM BIOS 的筆記本電腦上非常有用。 apm 允許使機(jī)器進(jìn)入等待或掛起模式。
選項(xiàng)
- -V, --version
- 輸出 apm 程序的版本并立即退出。
- -v, --verbose
- 輸出關(guān)于 APM BIOS 的版本和 Linux APM 驅(qū)動(dòng)程序的版本的信息。
- -m, --minutes
- 輸出剩余的總共的分鐘數(shù)而不是 hh:mm 格式。
- -s, --suspend
- 如果可能使機(jī)器進(jìn)入掛起模式。
- -S, --standby
- 如果可能使機(jī)器進(jìn)入等待模式。
- -i, --ignore
- 告訴系統(tǒng)在使用 AC (交流) 電源時(shí)忽略系統(tǒng)生成的 APM 掛起或等待事件。對(duì)這樣的用戶(hù)有用:擁有膝上型電腦,在用電池為電源時(shí)希望 APM 事件發(fā)生,在使用 AC (交流) 電源時(shí)不希望 APM 事件發(fā)生。
- -n, --noignore
- 告訴系統(tǒng)在使用 AC 電源時(shí)不忽略系統(tǒng)生成的 APM 掛起或等待事件。這是缺省的模式;提供這個(gè)選項(xiàng)作為取消的前面的 " apm -i " 調(diào)用的方法。
缺陷
本程序要求內(nèi)核在 1.3.57 以上。除非在老的內(nèi)核上增加 APM 補(bǔ)丁否則不能運(yùn)行。原因是 /proc/apm 的格式被更改得非常迅速。
相關(guān)文件
/proc/apm
linux/drivers/char/apm_bios.c
著作者
本程序是由 Rik Faith (faith@cs.unc.edu)寫(xiě)的,在 GPL 條款下可以自由發(fā)布。對(duì)這個(gè)程序絕對(duì)沒(méi)有任何擔(dān)保。當(dāng)前的維護(hù)者是 Avery Pennarun (apenwarr@worldvisions.ca)。
參見(jiàn)
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)