P. 1
Rhel 5 Complete Refrence

Rhel 5 Complete Refrence

4.91

|Views: 7,836|Likes:
Published by api-3846449

More info:

Published by: api-3846449 on Oct 18, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

06/15/2014

pdf

text

original

This file provides information about the state of the Advanced Power Management (APM)
system and is used by the apm command. If a system with no battery is connected to an AC
power source, this virtual file would look similar to the following:

1.16 1.2 0x07 0x01 0xff 0x80 -1% -1 ?

Running the apm -v command on such a system results in output similar to the following:

APM BIOS 1.2 (kernel driver 1.16ac) AC on-line, no system battery

For systems which do not use a battery as a power source, apm is able do little more than put
the machine in standby mode. The apm command is much more useful on laptops. For example,
the following output is from the command cat /proc/apm on a laptop while plugged into a
power outlet:

1.16 1.2 0x03 0x01 0x03 0x09 100% -1 ?

When the same laptop is unplugged from its power source for a few minutes, the content of the

apm file changes to something like the following:

1.16 1.2 0x03 0x00 0x00 0x01 99% 1792 min

The apm -v command now yields more useful data, such as the following:

APM BIOS 1.2 (kernel driver 1.16) AC off-line, battery status high: 99% (1

day, 5:52)

/proc/apm

15

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->