Jean-Pierre Martineau and Claude Opus 5.5
db4cc657fe
The Cardputer's battery reading survives the Cap's noisy bus
...
With the Cap powered, I2C bus 1 doesn't only fail reads: some come
back garbled (a capacity of 56414, clamped to a confident 100), and
the kernel's bq27xxx driver caches whatever it read, failure or
garbage, for five seconds. Retrying 0.1 s apart only re-read the
cache, so every retry missed.
Now an unreadable or out-of-range percent is asked again 5.5 s later,
past the cache; a step of more than 5 points between polls waits for
the next poll to confirm it, which catches garbage that lands inside
0-100; and the sysfs reads leave the event loop, since a failing
transfer on that bus takes its time. Measured on the device with the
Cap on: a steady 96%, where it showed nothing or 100 before.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com >
2026-10-05 16:13:02 -04:00
..
2026-07-07 17:38:39 -04:00
2026-09-13 13:09:18 -04:00
2026-10-04 11:52:41 -04:00
2026-10-04 11:52:41 -04:00
2026-09-13 13:09:18 -04:00
2026-09-23 23:15:32 -04:00
2026-10-05 16:13:02 -04:00
2026-09-29 02:09:04 -04:00
2026-09-25 04:37:51 -04:00
2026-10-04 11:52:41 -04:00
2026-10-04 11:52:41 -04:00
2026-09-13 13:09:18 -04:00
2026-10-04 11:52:41 -04:00
2026-10-05 03:00:48 -04:00
2026-10-05 00:21:34 -04:00
2026-09-25 17:10:09 -04:00
2026-10-04 11:52:41 -04:00
2026-10-04 17:49:24 -04:00
2026-09-13 13:09:18 -04:00
2026-09-24 22:48:08 -04:00
2026-09-13 13:09:18 -04:00
2026-09-16 23:35:59 -04:00
2026-09-16 23:35:59 -04:00
2026-09-21 20:44:37 -04:00
2026-10-05 03:00:48 -04:00
2026-10-04 11:52:41 -04:00
2026-10-04 11:52:41 -04:00
2026-09-16 23:26:43 -04:00
2026-10-04 11:52:41 -04:00
2026-10-04 17:15:03 -04:00
2026-09-27 10:59:17 -04:00
2026-09-16 20:29:02 -04:00
2026-10-04 17:24:10 -04:00
2026-09-13 13:09:18 -04:00
2026-09-13 13:09:18 -04:00
2026-10-05 02:20:09 -04:00
2026-09-13 13:09:18 -04:00
2026-09-13 13:09:18 -04:00
2026-09-13 13:09:18 -04:00
2026-10-04 11:52:41 -04:00
2026-10-02 00:55:59 -04:00
2026-10-04 22:32:02 -04:00
2026-10-03 19:44:28 -04:00
2026-09-13 13:15:06 -04:00
2026-09-28 02:20:36 -04:00
2026-09-19 16:42:51 -04:00
2026-10-04 17:49:24 -04:00
2026-10-04 11:52:41 -04:00
2026-10-04 11:52:41 -04:00
2026-10-05 02:07:10 -04:00
2026-09-30 21:17:41 -04:00
2026-09-13 13:09:18 -04:00
2026-09-13 13:09:18 -04:00
2026-09-13 13:09:18 -04:00
2026-10-04 11:52:41 -04:00
2026-10-04 11:52:41 -04:00
2026-09-13 15:50:53 -04:00
2026-09-16 00:30:50 -04:00
2026-10-04 11:52:41 -04:00
2026-09-13 13:09:18 -04:00
2026-09-13 13:09:18 -04:00
2026-09-16 01:43:47 -04:00
2026-10-04 11:52:41 -04:00
2026-10-05 16:00:13 -04:00
2026-10-04 11:52:41 -04:00
2026-10-04 11:52:41 -04:00
2026-09-24 03:12:52 -04:00
2026-10-05 15:29:40 -04:00
2026-10-04 11:52:41 -04:00
2026-09-13 13:09:18 -04:00
2026-10-04 11:52:41 -04:00
2026-09-25 02:06:44 -04:00
2026-10-04 11:52:41 -04:00
2026-09-13 13:09:18 -04:00
2026-09-13 13:09:18 -04:00
2026-10-05 00:21:34 -04:00
2026-10-05 03:00:48 -04:00
2026-10-04 11:52:41 -04:00
2026-09-13 13:09:18 -04:00
2026-10-04 11:52:41 -04:00
2026-10-05 00:21:34 -04:00
2026-10-04 11:52:41 -04:00
2026-10-05 04:21:38 -04:00
2026-09-13 13:09:18 -04:00
2026-09-13 13:09:18 -04:00
2026-09-16 00:55:18 -04:00
2026-10-04 11:52:41 -04:00
2026-10-05 15:29:40 -04:00
2026-09-16 00:55:18 -04:00
2026-09-13 13:09:18 -04:00
2026-10-04 11:52:41 -04:00
2026-10-04 11:52:41 -04:00
2026-09-13 13:09:18 -04:00
2026-10-05 16:00:13 -04:00
2026-10-04 11:52:41 -04:00
2026-10-04 11:52:41 -04:00
2026-10-04 11:52:41 -04:00
2026-09-30 21:14:55 -04:00
2026-09-16 20:29:02 -04:00
2026-09-13 13:09:18 -04:00