[Nexus One Android Development] RogerPodacter:
ok i am testing this file, and just FYI at 96% the charger shut off with a TIMEOUT message. then resumed 10 seconds later. i've never seen the timeout error before, so it might need modified. could be a random coincidence too.

also as i typed this, the charge finished, and it still stopped at <= 80 mA. it never made it down to 20 mA, and the final mAh value is same as always, ~1360 mAh. bump charge typically gets us up to 1390 or 1400 mAh.

38.0 C, 1297 mAh
08/24/2010 21:12:17 [INFORMATION] batt: 95%, 4148 mV, 180 mA (200 avg), 38.0 C, 1299 mAh
08/24/2010 21:13:12 [INFORMATION] batt: 95%, 4148 mV, 184 mA (179 avg), 38.0 C, 1302 mAh
08/24/2010 21:14:02 [INFORMATION] batt: 95%, 4148 mV, 190 mA (170 avg), 37.8 C, 1304 mAh
08/24/2010 21:14:52 [INFORMATION] batt: 96%, 4153 mV, 185 mA (187 avg), 37.7 C, 1307 mAh
08/24/2010 21:15:42 [INFORMATION] batt: 96%, 4153 mV, 179 mA (182 avg), 37.7 C, 1308 mAh
08/24/2010 21:16:32 [INFORMATION] batt: 96%, 4148 mV, 163 mA (175 avg), 37.5 C, 1312 mAh
08/24/2010 21:17:23 [INFORMATION] batt: 96%, 4153 mV, 172 mA (155 avg), 37.2 C, 1315 mAh
08/24/2010 21:18:13 [INFORMATION] batt: 96%, 4153 mV, 167 mA (170 avg), 37.0 C, 1316 mAh
08/24/2010 21:19:03 [INFORMATION] batt: 96%, 4153 mV, 138 mA (165 avg), 36.7 C, 1318 mAh
08/24/2010 21:19:53 [INFORMATION] batt: 96%, 4153 mV, 137 mA (115 avg), 36.5 C, 1320 mAh
08/24/2010 21:20:43 [INFORMATION] batt: 96%, 4143 mV, 80 mA (89 avg), 36.5 C, 1320 mAh
08/24/2010 21:21:33 [INFORMATION] batt: 96%, 4153 mV, 132 mA (55 avg), 36.5 C, 1321 mA
08/24/2010 21:21:33 [INFORMATION] batt: charging OFF [TIMEOUT]
08/24/2010 21:22:23 [INFORMATION] batt: 96%, 4070 mV, -443 mA (-333 avg), 37.2 C, 1316 mAh
08/24/2010 21:22:23 [INFORMATION] batt: charging FAST
08/24/2010 21:23:13 [INFORMATION] batt: 96%, 4148 mV, 120 mA (124 avg), 36.8 C, 1318 mAh
08/24/2010 21:24:04 [INFORMATION] batt: 96%, 4148 mV, 148 mA (144 avg), 36.8 C, 1320 mAh
08/24/2010 21:24:54 [INFORMATION] batt: 96%, 4138 mV, 116 mA (107 avg), 36.8 C, 1321 mAh
08/24/2010 21:25:44 [INFORMATION] batt: 97%, 4148 mV, 107 mA (90 avg), 36.7 C, 1323 mAh
08/24/2010 21:26:34 [INFORMATION] batt: 97%, 4133 mV, 84 mA (87 avg), 36.7 C, 1324 mAh
08/24/2010 21:27:27 [INFORMATION] batt: 100%, 4143 mV, 78 mA (29 avg), 37.0 C, 1364 mA
08/24/2010 21:27:27 [INFORMATION] batt: charging BATTOFF [FULL]
08/24/2010 21:28:19 [INFORMATION] batt: 100%, 4133 mV, 0 mA (0 avg), 37.0 C, 1364 mAh
08/24/2010 21:29:09 [INFORMATION] batt: 100%, 4133 mV, 0 mA (0 avg), 36.7 C, 1364 mAh

also, i dont think adding the percentage check <99 accomplishes the task. i think we were hoping that the original code would still function, but just letting the charge continue all the way down until the battery pulls less than 20 mA. the problem with percentage check is that this is pretty much always happening with 100% showing, and just topping it off. hope that makes sense.

EDIT: wait, did i goof? i flashed from recovery, then booted up the phone. i wonder if the change didnt take effect until i reboot a second time. just like when i edit my build.prop and reboot, it never takes effect until i reboot a second time. let me try.

EDIT2: also, the timestamp of dmesg log (filtered for BATT) is off by a significant amount. i've sometimes seen it 1 minute behind after a long time. but i've only been running a half hour, and the timestamp is 15 minutes behind the actual time. not sure what could have happened.