[Nexus One Android Development] samarium:
The 5% was by your ranges posted. IIRC my phone was also showing < 30mAh.

I just tried to get learn mode, however it failed again via:

# 3 second polling script:
Fri Nov 19 23:05:13 EST 2010 3669386 uV -147266 uA 22400 uAh 0x27
Fri Nov 19 23:05:16 EST 2010 3669386 uV -138757 uA 22400 uAh 0x27
Fri Nov 19 23:05:19 EST 2010 3669386 uV -189744 uA 22400 uAh 0x27
Fri Nov 19 23:05:23 EST 2010 3669386 uV -191888 uA 22400 uAh 0x27
Fri Nov 19 23:05:26 EST 2010 3664500 uV -176679 uA 22400 uAh 0x27
Fri Nov 19 23:05:29 EST 2010 3669386 uV -185255 uA 22400 uAh 0x27
Fri Nov 19 23:05:32 EST 2010 3669386 uV -185255 uA 22400 uAh 0x27
Fri Nov 19 23:05:35 EST 2010 3669386 uV -174468 uA 22400 uAh 0x27
Fri Nov 19 23:05:38 EST 2010 3669386 uV -175138 uA 22400 uAh 0x27
Fri Nov 19 23:05:41 EST 2010 3669386 uV -187131 uA 22400 uAh 0x27
Fri Nov 19 23:05:44 EST 2010 3669386 uV -169979 uA 22400 uAh 0x27
Fri Nov 19 23:05:47 EST 2010 3669386 uV -173932 uA 20800 uAh 0x27
Fri Nov 19 23:05:51 EST 2010 3669386 uV -182441 uA 19200 uAh 0x27
Fri Nov 19 23:05:54 EST 2010 3664500 uV -184317 uA 19200 uAh 0x27
Fri Nov 19 23:05:57 EST 2010 3664500 uV -229475 uA 19200 uAh 0x27
Fri Nov 19 23:06:00 EST 2010 3664500 uV -229475 uA 19200 uAh 0x27
Fri Nov 19 23:06:03 EST 2010 3718246 uV -244952 uA 19200 uAh 0x27
Fri Nov 19 23:06:06 EST 2010 3723132 uV 658007 uA 20800 uAh 0x27
Fri Nov 19 23:06:09 EST 2010 3723132 uV 798104 uA 22400 uAh 0x27
Fri Nov 19 23:06:13 EST 2010 3723132 uV 798305 uA 22400 uAh 0x27
Fri Nov 19 23:06:16 EST 2010 3728018 uV 790466 uA 24000 uAh 0x27
Fri Nov 19 23:06:19 EST 2010 3728018 uV 798238 uA 24000 uAh 0x27
[1] Terminated sh /sdcard/bat.sh 3

I had the CPU governor on powersave, was was preparing to sleep the screen, but I was surprised to see a shutdown message pop up on the phone when the current drain when from -184mA to -229 mA, and grabbed a cable to start charging and you can see the voltage immediately jump up. Unfortunately it seems there is still 20ish mAh in it while voltage it too high.

# 3 second probe of /d/battery_log
timestamp mV mA avg mA uAh dC % src mode reg full
44793 3679 -10 -174 27200 307 1 none off 0x27 0
44843 3674 -155 -150 25600 303 1 none off 0x27 0
44893 3669 -152 -146 24000 301 1 none off 0x27 0
timestamp mV mA avg mA uAh dC % src mode reg full
44793 3679 -10 -174 27200 307 1 none off 0x27 0
44843 3674 -155 -150 25600 303 1 none off 0x27 0
44893 3669 -152 -146 24000 301 1 none off 0x27 0
timestamp mV mA avg mA uAh dC % src mode reg full
44843 3674 -155 -150 25600 303 1 none off 0x27 0
44893 3669 -152 -146 24000 301 1 none off 0x27 0
44945 3669 -182 -169 19200 298 0 none off 0x27 0
timestamp mV mA avg mA uAh dC % src mode reg full
44843 3674 -155 -150 25600 303 1 none off 0x27 0
44893 3669 -152 -146 24000 301 1 none off 0x27 0
44945 3669 -182 -169 19200 298 0 none off 0x27 0
timestamp mV mA avg mA uAh dC % src mode reg full
44843 3674 -155 -150 25600 303 1 none off 0x27 0
44893 3669 -152 -146 24000 301 1 none off 0x27 0
44945 3669 -182 -169 19200 298 0 none off 0x27 0

Interesting to see the above log shows battery at 0% for 9 seconds before shutdown. I was working on the assumption that it would have to get below 1/2 of 1% of 2750mAh before it would show 0%.

Much the same data if I look at the dmesg data from before the shutdown in /proc/last_kmsg:

[17948.977233] batt: 3%, 3664 mV, -323 mA (-269 avg), 30.7 C, 91 mAh
[17999.100341] batt: 3%, 3674 mV, -213 mA (-220 avg), 30.6 C, 88 mAh
[18063.428955] batt: 3%, 3654 mV, -549 mA (-501 avg), 30.6 C, 81 mAh
[18123.511901] batt: 2%, 3654 mV, -540 mA (-555 avg), 30.8 C, 72 mAh
[18183.594482] batt: 2%, 3664 mV, -363 mA (-541 avg), 31.0 C, 64 mAh
[18239.322418] batt: 2%, 3659 mV, -311 mA (-191 avg), 30.6 C, 59 mAh
[18292.455932] batt: 2%, 3649 mV, -568 mA (-341 avg), 30.6 C, 52 mAh
[18347.567779] batt: 2%, 3644 mV, -539 mA (-541 avg), 30.8 C, 44 mAh
[18407.661895] batt: 1%, 3644 mV, -538 mA (-567 avg), 31.1 C, 36 mAh
[18457.805633] batt: 1%, 3664 mV, -171 mA (-532 avg), 31.1 C, 30 mAh
[18500.637481] active wake lock ds2784-battery
[18500.693481] batt: 1%, 3679 mV, -10 mA (-174 avg), 30.7 C, 27 mAh
[18538.699432] batt: 1%, 3674 mV, -155 mA (-150 avg), 30.3 C, 25 mAh
[18588.860656] batt: 1%, 3669 mV, -152 mA (-146 avg), 30.1 C, 24 mAh
[18640.769439] batt: 0%, 3669 mV, -182 mA (-169 avg), 29.8 C, 19 mAh
[18648.278503] batt: charging FAST

I let it charge for 30 sec, and then power on, and these are the earliest measurements I got:

# cd /sys/de*/pl*/ds* && grep . [dsg]*
dumpreg:00: 4f 27 00 1a 00 2d 02 03 1a e6 1e 00 5f a0 17 6a
dumpreg:10: 00 a8 be c0 79 78 7f ec 01 a8 00 50 ff ff ff 00
dumpreg:20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
dumpreg:60: 42 ff 0d 11 d2 18 af 0f 07 43 19 c8 01 0d 0c 3a
dumpreg:70: 0a 0d 1d 19 04 07 04 06 04 0a 00 ed 1e 14 0a 1d
dumpreg:b0: 00 00
getFull40:Full40: 2750 mAh
getavgcurrent:637103
getcurrent:605278
getmAh:44800
getvoltage:3728018
setAEvolt:AEvolt: 3416
setage:Battery's age: 94
statusreg:0x27

And the polling script again, but at 60 second mode:

sh /sdcard/bat.sh
Fri Nov 19 23:08:30 EST 2010 3732904 uV 541427 uA 44800 uAh 0x27
Fri Nov 19 23:09:30 EST 2010 3752448 uV 761455 uA 59200 uAh 0x27
Fri Nov 19 23:10:30 EST 2010 3752448 uV 799243 uA 72000 uAh 0x27
Fri Nov 19 23:11:30 EST 2010 3757334 uV 844200 uA 86400 uAh 0x27
Fri Nov 19 23:12:30 EST 2010 3757334 uV 848957 uA 100800 uAh 0x27
Fri Nov 19 23:13:30 EST 2010 3757334 uV 840515 uA 115200 uAh 0x27
Fri Nov 19 23:14:30 EST 2010 3762220 uV 892239 uA 129600 uAh 0x27
Fri Nov 19 23:15:30 EST 2010 3767106 uV 900279 uA 144000 uAh 0x27
Fri Nov 19 23:16:30 EST 2010 3767106 uV 843530 uA 158400 uAh 0x27
Fri Nov 19 23:17:31 EST 2010 3771992 uV 895120 uA 172800 uAh 0x27
Fri Nov 19 23:18:31 EST 2010 3771992 uV 893043 uA 187200 uAh 0x27
Fri Nov 19 23:19:31 EST 2010 3776878 uV 896125 uA 201600 uAh 0x27
Fri Nov 19 23:20:31 EST 2010 3781764 uV 889157 uA 217600 uAh 0x27
Fri Nov 19 23:21:31 EST 2010 3781764 uV 897800 uA 232000 uAh 0x27
Fri Nov 19 23:22:31 EST 2010 3786650 uV 901016 uA 246400 uAh 0x27
Fri Nov 19 23:23:31 EST 2010 3791536 uV 893579 uA 262400 uAh 0x27

I've updated the age to 100 again.

I'll update this post in the morning as it seems to take about 4-5 hours to fully charged. Then I'll have the max charge point.