首页
首页 » 系统设置 » apmd(advanced power management BIOS daemon)

apmd(advanced power management BIOS daemon)

apmd(advanced power management BIOS daemon)
功能说明:高级电源管理服务程序。
语  法:apmd [-u v V W][-p <百分比变化量>][-w <百分比值>]
补充说明:apmd负责BIOS进阶电源管理(APM)相关的记录,警告与管理工作。
参  数:
  -p<百分比变化量>或--percentage<百分比变化量>  当电力变化的幅度超出设置的百分比变化量,即记录事件百分比变化量的预设值为5,若设置值超过100,则关闭此功能。 
  -u或--utc 将BIOS时钟设为UTC,以便从悬待模式恢复时,将-u参数传送至clock或hwclock程序。 
  -v或--verbose 记录所有的APM事件。 
  -V或--version 显示版本信息。 
  -w<百分比值>或--warn<百分比值> 当电池不在充电状态时,且电池电量低于设置的百分比值,则在syslog(2)的ALERT层记录警告信息。百分比值的预设置为10,若设置为0,则关闭此功能。  
  -W或--wall 发出警告信息给所有人。

apmd

apmd [options]

System administration command. apmd handles events reported by the Advanced Power Management BIOS driver. The driver reports on battery level and requests to enter sleep or suspend mode. apmd will log any reports it gets via syslogd and take steps to make sure that basic sleep and suspend requests are handled gracefully. You can fine-tune the behavior of apmd by editing the apmd_proxy script, which apmd runs when it receives an event. Note that the APM hardware standard is gradually being replaced by the ACPI (Advanced Configuration and Power Interface) standard, and apmd by acpid. On SUSE Linux, both APM and ACPI hardware are handled by powersave and powersaved.

Options

-c n, --check n

Set the number of seconds to wait for an event before rechecking the power level. Default is to wait indefinitely. Setting this causes the battery levels to be checked more frequently.

-p n, --percentage n

Log information whenever the power changes by n percent. The default is 5. Values greater than 100 will disable logging of power changes.

-P command, --apmd_proxy command

Specify the apmd_proxy command to run when APM driver events are reported. This is generally a shell script. The command will be invoked with parameters indicating what kind of event was received. The parameters are listed in the next section.

-v, --verbose

Verbose mode; all events are logged.

-V, --version

Print version and exit.

-w n, --warn n

Log a warning at ALERT level when the battery charge drops below n percent. The default is 10. Negative values disable low-battery-level warnings.

-W, --wall

Use wall to alert all users of a low battery status.

-q, --quiet

Disable low-battery-level warnings.

-?, --help

Print help summary and exit.

Parameters

The apmd proxy script is invoked with the following parameters:

start

Invoked when the daemon starts.

stop

Invoked when the daemon stops.

suspend [ system | user ]

Invoked when the daemon receives a suspend request. The second parameter indicates whether the request was made by the system or by the user. Suspend, also known as "hibernate," effectively powers the system down but has a quicker recovery than a normal boot process.

standby [ system | user ]

Invoked when the daemon receives a standby request. The second parameter indicates whether the request was made by the system or by the user. Standby mode powers off the monitor and disks, but the system continues to run and use power.

resume [ suspend | standby | critical ]

Invoked when the system resumes normal operation. The second parameter indicates the mode the system was in before resuming. critical suspends indicate an emergency shutdown. After a critical suspend, the system may be unstable, and you can use the resume command to help you recover from the suspension.

change power

Invoked when system power is changed from AC to battery or from battery to AC.

change battery

Invoked when the APM BIOS driver reports that the battery is low.

change capability

Invoked when the APM BIOS driver reports that some hardware that affects its capability has been added or removed.