[Nexus One Android Development] RogerPodacter:
pershoot, did you have any luck with the timeout issue? the only reason i ask is i am testing your newest 40mA kernel, but my results just got ruined because the timeout bug happens randomly. this time it happened near the top of my charge. so for a brief 10 seconds, the battery takes over, which causes current_uA to go negative, thus failing condition #2, and turning off the charger. the test was looking VERY good at least. here's the results:

08/26/2010 08:54:14 [INFORMATION] batt: 90%, 4060 mV, -41 mA (-17 avg), 29.5 C, 1225 mAh
08/26/2010 08:54:18 [INFORMATION] active wake lock ds2784-battery
08/26/2010 08:54:18 [INFORMATION] batt: 90%, 4060 mV, -8 mA (-15 avg), 29.5 C, 1225 mAh
08/26/2010 08:54:27 [INFORMATION] active wake lock ds2784-battery
08/26/2010 08:54:27 [INFORMATION] batt: 90%, 4060 mV, -8 mA (-16 avg), 29.5 C, 1225 mAh
08/26/2010 08:55:04 [INFORMATION] batt: 90%, 4040 mV, -220 mA (-171 avg), 29.6 C, 1224 mAh
08/26/2010 08:55:54 [INFORMATION] batt: 90%, 4026 mV, -184 mA (-186 avg), 30.1 C, 1220 mAh
08/26/2010 08:56:44 [INFORMATION] batt: 89%, 4040 mV, -105 mA (-129 avg), 30.3 C, 1219 mAh
08/26/2010 08:57:08 [INFORMATION] active wake lock ds2784-battery
08/26/2010 08:57:08 [INFORMATION] batt: 89%, 4055 mV, -11 mA (-65 avg), 30.3 C, 1219 mAh
08/26/2010 08:57:16 [INFORMATION] active wake lock ds2784-battery
08/26/2010 08:57:16 [INFORMATION] batt: 89%, 4060 mV, -10 mA (-14 avg), 30.3 C, 1219 mAh
08/26/2010 08:57:29 [INFORMATION] batt: 89%, 4055 mV, -14 mA (-22 avg), 30.3 C, 1219 mAh
08/26/2010 08:57:43 [INFORMATION] batt: 89%, 4035 mV, -158 mA (-26 avg), 30.3 C, 1217 mAh
08/26/2010 08:58:33 [INFORMATION] batt: 89%, 4030 mV, -194 mA (-177 avg), 30.5 C, 1216 mA
08/26/2010 08:59:18 [INFORMATION] active wake lock ds2784-battery
08/26/2010 08:59:18 [INFORMATION] batt: 89%, 4050 mV, -10 mA (-160 avg), 30.8 C, 1214 mAh
08/26/2010 08:59:24 [INFORMATION] active wake lock ds2784-battery
08/26/2010 08:59:24 [INFORMATION] batt: 89%, 4050 mV, -33 mA (-17 avg), 31.3 C, 1216 mAh
08/26/2010 09:00:30 [INFORMATION] batt: 89%, 3996 mV, -324 mA (-508 avg), 32.3 C, 1209 mAh
08/26/2010 09:01:38 [INFORMATION] batt: 88%, 4021 mV, -180 mA (-233 avg), 33.1 C, 1204 mAh
08/26/2010 09:02:29 [INFORMATION] batt: 88%, 4001 mV, -290 mA (-182 avg), 33.6 C, 1201 mAh
08/26/2010 09:03:19 [INFORMATION] batt: 88%, 4011 mV, -277 mA (-246 avg), 34.0 C, 1200 mAh
08/26/2010 09:04:09 [INFORMATION] batt: 88%, 4006 mV, -220 mA (-224 avg), 34.2 C, 1196 mAh
08/26/2010 09:04:59 [INFORMATION] batt: 88%, 4006 mV, -209 mA (-221 avg), 34.5 C, 1193 mAh
08/26/2010 09:05:49 [INFORMATION] batt: 87%, 4001 mV, -165 mA (-293 avg), 34.7 C, 1190 mAh
08/26/2010 09:06:39 [INFORMATION] batt: 87%, 3982 mV, -292 mA (-311 avg), 35.2 C, 1187 mAh
08/26/2010 09:07:29 [INFORMATION] batt: 87%, 4006 mV, -172 mA (-203 avg), 35.5 C, 1184 mAh
08/26/2010 09:08:21 [INFORMATION] batt: 86%, 4021 mV, -84 mA (-145 avg), 35.5 C, 1180 mAh
08/26/2010 09:08:22 [INFORMATION] active wake lock ds2784-battery
08/26/2010 09:08:22 [INFORMATION] batt: 86%, 4011 mV, -83 mA (-38 avg), 35.5 C, 1180 mAh
08/26/2010 09:08:25 [INFORMATION] active wake lock ds2784-battery
08/26/2010 09:08:25 [INFORMATION] batt: 86%, 4030 mV, -16 mA (-20 avg), 35.6 C, 1179 mAh
08/26/2010 09:08:27 [INFORMATION] active wake lock ds2784-battery
08/26/2010 09:08:27 [INFORMATION] batt: 86%, 4006 mV, -27 mA (-24 avg), 35.7 C, 1179 mAh
08/26/2010 09:08:30 [INFORMATION] active wake lock ds2784-battery
08/26/2010 09:08:31 [INFORMATION] batt: 86%, 4030 mV, -16 mA (-19 avg), 36.0 C, 1179 mAh
08/26/2010 09:09:23 [INFORMATION] batt: 86%, 3991 mV, -322 mA (-261 avg), 36.7 C, 1174 mAh
08/26/2010 09:10:13 [INFORMATION] batt: 86%, 3986 mV, -217 mA (-310 avg), 36.7 C, 1171 mAh
08/26/2010 09:11:03 [INFORMATION] batt: 86%, 4006 mV, -123 mA (-150 avg), 36.2 C, 1169 mAh
08/26/2010 09:11:16 [INFORMATION] active wake lock ds2784-battery
08/26/2010 09:11:16 [INFORMATION] batt: 86%, 4001 mV, -13 mA (-15 avg), 35.2 C, 1168 mAh
08/26/2010 09:11:19 [INFORMATION] active wake lock ds2784-battery
08/26/2010 09:11:19 [INFORMATION] batt: 85%, 4021 mV, -36 mA (-21 avg), 33.6 C, 1164 mAh
08/26/2010 09:11:19 [INFORMATION] batt: charging SLOW
08/26/2010 09:12:16 [INFORMATION] batt: 86%, 4060 mV, 254 mA (47 avg), 32.6 C, 1166 mAh
08/26/2010 09:13:24 [INFORMATION] batt: 86%, 4045 mV, 54 mA (291 avg), 32.2 C, 1169 mAh
08/26/2010 09:14:14 [INFORMATION] batt: 86%, 4074 mV, 298 mA (302 avg), 32.1 C, 1172 mA
08/26/2010 09:14:39 [INFORMATION] batt: charging OFF
08/26/2010 09:14:46 [INFORMATION] batt: charging FAST
08/26/2010 09:15:04 [INFORMATION] batt: 86%, 4074 mV, 228 mA (179 avg), 31.8 C, 1176 mAh
08/26/2010 09:15:54 [INFORMATION] batt: 87%, 4079 mV, 264 mA (256 avg), 31.8 C, 1179 mAh
08/26/2010 09:16:44 [INFORMATION] batt: 87%, 4089 mV, 311 mA (331 avg), 32.3 C, 1184 mAh
08/26/2010 09:17:35 [INFORMATION] batt: 87%, 4094 mV, 307 mA (300 avg), 32.8 C, 1188 mAh
08/26/2010 09:18:25 [INFORMATION] batt: 88%, 4094 mV, 284 mA (282 avg), 33.2 C, 1193 mAh
08/26/2010 09:19:15 [INFORMATION] batt: 88%, 4099 mV, 274 mA (284 avg), 33.6 C, 1196 mAh
08/26/2010 09:20:10 [INFORMATION] batt: 88%, 4109 mV, 357 mA (360 avg), 34.0 C, 1203 mAh
08/26/2010 09:21:17 [INFORMATION] batt: 89%, 4109 mV, 338 mA (351 avg), 33.8 C, 1208 mAh
08/26/2010 09:22:08 [INFORMATION] batt: 89%, 4104 mV, 345 mA (358 avg), 33.7 C, 1212 mAh
08/26/2010 09:22:58 [INFORMATION] batt: 89%, 4118 mV, 348 mA (352 avg), 33.7 C, 1217 mAh
08/26/2010 09:23:48 [INFORMATION] batt: 89%, 4118 mV, 334 mA (346 avg), 33.5 C, 1222 mAh
08/26/2010 09:24:38 [INFORMATION] batt: 90%, 4118 mV, 333 mA (338 avg), 33.5 C, 1227 mAh
08/26/2010 09:25:29 [INFORMATION] batt: 90%, 4123 mV, 326 mA (329 avg), 33.5 C, 1232 mAh
08/26/2010 09:26:21 [INFORMATION] batt: 91%, 4123 mV, 317 mA (321 avg), 33.3 C, 1236 mAh
08/26/2010 09:27:12 [INFORMATION] batt: 91%, 4128 mV, 314 mA (284 avg), 33.2 C, 1240 mAh
08/26/2010 09:28:02 [INFORMATION] batt: 91%, 4128 mV, 304 mA (305 avg), 33.2 C, 1244 mAh
08/26/2010 09:28:53 [INFORMATION] batt: 91%, 4133 mV, 296 mA (300 avg), 33.0 C, 1249 mAh
08/26/2010 09:29:43 [INFORMATION] batt: 92%, 4133 mV, 265 mA (259 avg), 33.0 C, 1252 mAh
08/26/2010 09:30:33 [INFORMATION] batt: 92%, 4133 mV, 279 mA (271 avg), 32.8 C, 1256 mAh
08/26/2010 09:31:23 [INFORMATION] batt: 93%, 4133 mV, 273 mA (275 avg), 32.6 C, 1259 mAh
08/26/2010 09:32:13 [INFORMATION] batt: 93%, 4128 mV, 164 mA (209 avg), 32.6 C, 1262 mAh
08/26/2010 09:33:04 [INFORMATION] batt: 93%, 4133 mV, 230 mA (238 avg), 32.6 C, 1265 mAh
08/26/2010 09:33:54 [INFORMATION] batt: 93%, 4133 mV, 229 mA (225 avg), 32.6 C, 1268 mAh
08/26/2010 09:34:44 [INFORMATION] batt: 93%, 4138 mV, 251 mA (198 avg), 32.6 C, 1272 mAh
08/26/2010 09:35:34 [INFORMATION] batt: 94%, 4133 mV, 140 mA (240 avg), 32.6 C, 1275 mAh
08/26/2010 09:36:24 [INFORMATION] batt: 94%, 4143 mV, 236 mA (222 avg), 32.5 C, 1278 mAh
08/26/2010 09:37:14 [INFORMATION] batt: 94%, 4133 mV, 108 mA (234 avg), 32.3 C, 1281 mAh
08/26/2010 09:38:04 [INFORMATION] batt: 94%, 4143 mV, 228 mA (199 avg), 32.3 C, 1284 mAh
08/26/2010 09:38:55 [INFORMATION] batt: 95%, 4143 mV, 220 mA (222 avg), 32.3 C, 1288 mAh
08/26/2010 09:39:45 [INFORMATION] batt: 95%, 4148 mV, 214 mA (197 avg), 32.3 C, 1291 mAh
08/26/2010 09:40:35 [INFORMATION] batt: 95%, 4148 mV, 207 mA (188 avg), 32.2 C, 1292 mAh
08/26/2010 09:41:25 [INFORMATION] batt: 95%, 4148 mV, 204 mA (206 avg), 32.1 C, 1296 mAh
08/26/2010 09:42:15 [INFORMATION] batt: 95%, 4148 mV, 197 mA (181 avg), 31.8 C, 1297 mAh
08/26/2010 09:43:05 [INFORMATION] batt: 95%, 4148 mV, 106 mA (176 avg), 31.6 C, 1300 mAh
08/26/2010 09:43:56 [INFORMATION] batt: 96%, 4153 mV, 189 mA (174 avg), 31.3 C, 1302 mAh
08/26/2010 09:44:46 [INFORMATION] batt: 96%, 4153 mV, 182 mA (186 avg), 31.3 C, 1305 mAh
08/26/2010 09:45:36 [INFORMATION] batt: 96%, 4153 mV, 164 mA (178 avg), 31.1 C, 1308 mAh
08/26/2010 09:46:29 [INFORMATION] batt: 96%, 4153 mV, 178 mA (116 avg), 31.1 C, 1310 mAh
08/26/2010 09:47:22 [INFORMATION] batt: 96%, 4148 mV, 136 mA (131 avg), 31.1 C, 1312 mAh
08/26/2010 09:48:14 [INFORMATION] batt: 96%, 4153 mV, 145 mA (147 avg), 31.1 C, 1315 mAh
08/26/2010 09:49:04 [INFORMATION] batt: 96%, 4157 mV, 162 mA (155 avg), 31.1 C, 1316 mAh
08/26/2010 09:49:54 [INFORMATION] batt: 97%, 4157 mV, 159 mA (137 avg), 31.1 C, 1318 mAh
08/26/2010 09:50:44 [INFORMATION] batt: 97%, 4157 mV, 155 mA (156 avg), 31.1 C, 1320 mAh
08/26/2010 09:51:35 [INFORMATION] batt: 97%, 4157 mV, 149 mA (151 avg), 31.1 C, 1323 mAh
08/26/2010 09:52:25 [INFORMATION] batt: 97%, 4157 mV, 138 mA (102 avg), 31.0 C, 1324 mAh
08/26/2010 09:53:15 [INFORMATION] batt: 97%, 4162 mV, 144 mA (147 avg), 31.0 C, 1326 mAh
08/26/2010 09:54:05 [INFORMATION] batt: 98%, 4162 mV, 140 mA (142 avg), 30.8 C, 1326 mAh
08/26/2010 09:54:55 [INFORMATION] batt: 98%, 4162 mV, 135 mA (115 avg), 30.8 C, 1329 mAh
08/26/2010 09:55:45 [INFORMATION] batt: 98%, 4157 mV, 116 mA (102 avg), 30.8 C, 1331 mAh
08/26/2010 09:56:35 [INFORMATION] batt: 98%, 4162 mV, 131 mA (131 avg), 30.8 C, 1332 mAh
08/26/2010 09:57:25 [INFORMATION] batt: 98%, 4157 mV, 115 mA (129 avg), 30.8 C, 1334 mAh
08/26/2010 09:58:16 [INFORMATION] batt: 98%, 4162 mV, 126 mA (61 avg), 30.8 C, 1336 mAh
08/26/2010 09:59:06 [INFORMATION] batt: 98%, 4162 mV, 125 mA (87 avg), 30.8 C, 1336 mAh
08/26/2010 09:59:59 [INFORMATION] batt: 98%, 4157 mV, 78 mA (121 avg), 30.8 C, 1339 mAh
08/26/2010 10:00:49 [INFORMATION] batt: 98%, 4167 mV, 116 mA (116 avg), 30.8 C, 1340 mA
08/26/2010 10:01:39 [INFORMATION] batt: 98%, 4167 mV, 110 mA (114 avg), 30.7 C, 1342 mA
08/26/2010 10:02:29 [INFORMATION] batt: 99%, 4162 mV, 77 mA (103 avg), 30.6 C, 1342 mAh
08/26/2010 10:03:20 [INFORMATION] batt: 100%, 4167 mV, 113 mA (68 avg), 30.6 C, 1358 mAh
08/26/2010 10:04:10 [INFORMATION] batt: 100%, 4167 mV, 108 mA (93 avg), 30.7 C, 1360 mAh
08/26/2010 10:05:00 [INFORMATION] batt: 100%, 4167 mV, 103 mA (104 avg), 30.7 C, 1361 mA
08/26/2010 10:05:50 [INFORMATION] batt: 100%, 4167 mV, 105 mA (90 avg), 30.7 C, 1363 mAh
08/26/2010 10:06:40 [INFORMATION] batt: 100%, 4167 mV, 101 mA (102 avg), 30.7 C, 1364 mA
08/26/2010 10:07:31 [INFORMATION] batt: 100%, 4167 mV, 100 mA (78 avg), 30.6 C, 1364 mAh
08/26/2010 10:08:23 [INFORMATION] batt: 100%, 4172 mV, 94 mA (97 avg), 30.6 C, 1368 mAh
08/26/2010 10:09:14 [INFORMATION] batt: 100%, 4172 mV, 94 mA (95 avg), 30.6 C, 1368 mAh
08/26/2010 10:10:04 [INFORMATION] batt: 100%, 4172 mV, 91 mA (93 avg), 30.6 C, 1369 mAh
08/26/2010 10:10:54 [INFORMATION] batt: 100%, 4167 mV, 36 mA (90 avg), 30.6 C, 1371 mAh
08/26/2010 10:11:44 [INFORMATION] batt: 100%, 4172 mV, 88 mA (89 avg), 30.6 C, 1371 mAh
08/26/2010 10:12:35 [INFORMATION] batt: 100%, 4172 mV, 86 mA (86 avg), 30.5 C, 1372 mAh
08/26/2010 10:13:26 [INFORMATION] batt: 100%, 4172 mV, 83 mA (84 avg), 30.5 C, 1374 mAh
08/26/2010 10:14:16 [INFORMATION] batt: 100%, 4172 mV, 80 mA (63 avg), 30.3 C, 1376 mAh
08/26/2010 10:15:07 [INFORMATION] batt: 100%, 4172 mV, 76 mA (81 avg), 30.3 C, 1376 mAh
08/26/2010 10:15:07 [INFORMATION] batt: charging OFF [TIMEOUT]
08/26/2010 10:15:57 [INFORMATION] batt: 100%, 4143 mV, -109 mA (-165 avg), 30.3 C, 1374 mAh
08/26/2010 10:15:57 [INFORMATION] batt: charging BATTOFF [FULL]
08/26/2010 10:16:47 [INFORMATION] batt: 100%, 4157 mV, 0 mA (0 avg), 30.3 C, 1374 mAh
08/26/2010 10:17:37 [INFORMATION] batt: 100%, 4157 mV, 0 mA (0 avg), 30.3 C, 1374 mAh
08/26/2010 10:18:27 [INFORMATION] batt: 100%, 4157 mV, 0 mA (0 avg), 30.3 C, 1374 mAh
08/26/2010 10:19:18 [INFORMATION] batt: 100%, 4157 mV, 0 mA (0 avg), 30.3 C, 1374 mAh

this looked like it was well on its way to ~1400 or close to it. my hunch is that this timeout issue has been in our driver the entire time for the last few months. nothing we did specifically. in fact, that could be the cause for our battery jump. maybe these timeout errors have been tripping the full_charge too early. just a thought.