On 12/19/2014 03:11 AM, Riccardo Mottola wrote: > being the author of GNUstep's batmon and being owner of several laptops and > having developed and > tested on them, I have some un-authoritative information.
I ran a little log to record time and the output of apm, This is what it looks like... ......much timmage... Logging started at 14:11:41 with 95% > Battery state: high, 84% remaining, 67 minutes life estimate > A/C adapter state: not connected > Performance adjustment mode: manual (2667 MHz) > Sat Dec 20 14:20:47 PST 2014 > Battery state: high, 82% remaining, 64 minutes life estimate > A/C adapter state: not connected > Performance adjustment mode: manual (2667 MHz) > Sat Dec 20 14:22:10 PST 2014 > Battery state: CRITICAL, 7% remaining, 5 minutes life estimate > A/C adapter state: not connected > Performance adjustment mode: manual (2667 MHz) > Sat Dec 20 14:23:00 PST 2014 So in the last 50 seconds the battery dropped from 82% to 7%. WTF??? Prior to that the rate it was dropping was consistant with its predicted run time. I ran it to exhaustion (and paid the fsck price). > Battery state: CRITICAL, 0% remaining, 0 minutes life estimate > A/C adapter state: not connected > Performance adjustment mode: manual (2667 MHz) > Sat Dec 20 14:28:06 PST 2014 ... > Battery state: CRITICAL, 0% remaining, 0 minutes life estimate > A/C adapter state: not connected > Performance adjustment mode: manual (2667 MHz) > Sat Dec 20 14:33:16 PST 2014 So it ran 5 minutes longer than the prediction. The system log log showed similar situation, indicating that the actual cliff occured (or was logged) at 14:22:27, and my little timer loop above didn't catch this until 14:23:00. > Dec 20 14:07:14 Toby apmd: battery status: high. external power status: not > connected. estimated > battery life 100% > Dec 20 14:22:27 Toby apmd: battery status: CRITICAL. external power status: > not connected. > estimated battery life 8% (6 minutes) > Dec 20 14:22:37 Toby last message repeated 3 times > Dec 20 14:22:47 Toby apmd: battery status: CRITICAL. external power status: > not connected. > estimated battery life 7% (5 minutes) apm seems to be reporting percent of last charge, not % of design-full-charge. That may be part of the problem. -- Those who do not understand Unix are condemned to reinvent it, poorly.

