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_version | Linux driver version |
bios_version | APM BIOS Version. Usually 1.0, 1.1 or 1.2. |
bios_flags | APM flags from APM Installation Check |
line_status | AC line status: 0=Off-line, 1=On-line, 2=On backup power, 255=Unknown |
battery_status | Battery status: 0=High, 1=Low, 2=Critical, 3=Charging, 4=Selected battery not present, 255=unknown |
battery_flag | Battery flag |
battery_percent | Remaining battery life (percentage of charge) |
battery_remaining | Remaining battery life (time units) |
time_units | time units: min = minutes; sec = seconds |
see the kernel source /usr/src/linux/arch/i386/kernel/apm.c for details.