[kooler]dead battery and APM

Bransford-Koons, Geoffrey R. GEOFFREY.R.BRANSFORD-KOONS at saic.com
Wed Mar 15 14:58:19 PST 2000


A while ago Lan wondered what really happens when your battery runs out 
under Linux and APM.  Well, I decided to find out.

So, in case any of you are interested, here are the results:

Details:
Laptop:	Hitachi 4350X (Pentium 150MMX, 32MB Ram)
OS:	RedHat 5.2 with most (but not all) updates installed.
Kernel:	2.0.36 (recompiled from sources to use APM and i586)
APM BIOS:	1.1
Kernel Driver: 	1.2
APM version:	2.4
Battery:		stock battery that has been in use for about two
years.
		I'd estimate about 100 to 150 charges or more.

Result:

When apm showed that the battery level down around 5%, about 9 
minutes left with a PC card network connection up and running, my
laptop started issuing warning chirps. This happened two or three
times over about 30 seconds and then the laptop went into suspend
mode.

I attached the power cord and pressed the unsuspend key combo.
The laptop resumed with no problems.

The apmd entries in /var/log/messages were:

Mar 15 13:41:41 traveller apmd[78]: Battery warning (5% 0:10)
Mar 15 13:42:37 traveller apmd[78]: Charge: * * * (5% 0:06)
Mar 15 13:42:37 traveller apmd[78]: Resume after 00:00:30 (5% 0:06)

One last note:  I was not in X at the time although I've suspended
this laptop in X and resumed with no problems.

Geoff.




More information about the KPLUG-List mailing list