Linux apmd Command
The Linux apmd command is used for advanced power management services.
apmd handles logging, warnings, and management related to BIOS Advanced Power Management (APM).
Syntax
apmd [-u v V W][-p <百分比变化量>][-w <百分比值>]
Parameters:
- -p
or --percentage When the magnitude of power change exceeds the set percentage, an event is logged. The default percentage is 5; if the value exceeds 100, this function is disabled. - -u or --utc: Set the BIOS clock to UTC so that when resuming from suspend mode, the -u parameter is passed to the clock or hwclock program.
- -v or --verbose: Log all APM events.
- -V or --version: Display version information.
- -w
or --warn When the battery is not charging and its level falls below the set percentage, a warning is logged at the ALERT level of syslog(2). The default percentage is 10; if set to 0, this function is disabled. - -W or --wall: Send a warning message to everyone.
Example
Log all power management events
# apmd -v
Set the BIOS clock
# apmd -utc //Set BIOS clock to UTC
Linux Command Reference