apm 中文man页面

系统
apm 读取 /proc/apm 并用人能看懂的格式输出。因为提供了首要的电池状态,这个命令在有兼容的 APM BIOS 的笔记本电脑上非常有用。 apm 允许使机器进入等待或挂起模式。

NAME 名字

apm - 查询高级电源管理(APM) BIOS  

总览

apm [ - vVmsS ]  

描述

apm 读取 /proc/apm 并用人能看懂的格式输出。因为提供了首要的电池状态,这个命令在有兼容的 APM BIOS 的笔记本电脑上非常有用。 apm 允许使机器进入等待或挂起模式。  

选项

-V, --version
输出 apm 程序的版本并立即退出。
-v, --verbose
输出关于 APM BIOS 的版本和 Linux APM 驱动程序的版本的信息。
-m, --minutes
输出剩余的总共的分钟数而不是 hh:mm 格式。
-s, --suspend
如果可能使机器进入挂起模式。
-S, --standby
如果可能使机器进入等待模式。
-i, --ignore
告诉系统在使用 AC (交流) 电源时忽略系统生成的 APM 挂起或等待事件。对这样的用户有用:拥有膝上型电脑,在用电池为电源时希望 APM 事件发生,在使用 AC (交流) 电源时不希望 APM 事件发生。
-n, --noignore
告诉系统在使用 AC 电源时不忽略系统生成的 APM 挂起或等待事件。这是缺省的模式;提供这个选项作为取消的前面的 " apm -i " 调用的方法。

缺陷

本程序要求内核在 1.3.57 以上。除非在老的内核上增加 APM 补丁否则不能运行。原因是 /proc/apm 的格式被更改得非常迅速。  

相关文件

/proc/apm
linux/drivers/char/apm_bios.c  

著作者

本程序是由 Rik Faith (faith@cs.unc.edu)写的,在 GPL 条款下可以自由发布。对这个程序绝对没有任何担保。当前的维护者是 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

 

This program requires a post-1.3.57 kernel. This program will not work with older kernels or with the APM patches, since the format for /proc/apm has changed radically. 

FILES

/proc/apm
linux/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)

 

责任编辑:韩亚珊 来源: CMPP.net
相关推荐

2011-08-24 16:48:36

man中文man

2011-08-15 10:21:09

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-25 15:39:42

fcloseall中文man

2011-08-25 15:00:15

cfgetispeed中文man

2011-08-19 18:35:50

issue中文man

2011-08-25 17:03:51

pclose中文man

2011-08-25 17:40:25

setvbuf中文man

2011-08-23 14:21:16

poweroff中文man

2011-08-24 15:52:59

intro中文man

2011-08-23 13:40:31

2011-08-25 15:54:08

ferror中文man

2011-08-25 14:40:27

basename中文man

2011-08-25 17:24:54

puts中文man

2011-08-25 18:34:55

ungetc中文man

2011-08-23 10:03:40

useradd中文man

2011-08-23 16:24:57

smbmnt中文man

2011-08-23 10:29:02

chpasswd中文man

2011-08-23 10:34:22

convertquot中文man
点赞
收藏

51CTO技术栈公众号