APM (Advanced Power Management) plugin

This plugin provides an interface to the /proc/apm file.

apm(key)parse /proc/apm and return the value of <key>

The following keys are valid:

driver_versionLinux driver version
bios_versionAPM BIOS Version. Usually 1.0, 1.1 or 1.2.
bios_flagsAPM flags from APM Installation Check
line_statusAC line status: 0=Off-line, 1=On-line, 2=On backup power, 255=Unknown
battery_statusBattery status: 0=High, 1=Low, 2=Critical, 3=Charging, 4=Selected battery not present, 255=unknown
battery_flagBattery flag
battery_percentRemaining battery life (percentage of charge)
battery_remainingRemaining battery life (time units)
time_unitstime units: min = minutes; sec = seconds

see the kernel source /usr/src/linux/arch/i386/kernel/apm.c for details.

  • plugin_apm.txt
  • Last modified: 2020/07/17 18:33
  • (external edit)