Field note 01
Locking the C920's exposure
I used two Logitech C920s because they're cheap and common. I wanted to freeze their exposure so the arm sweeping through the frame would stop changing the picture. The first attempt came back pure white.
The revision I have (USB id 046d:08e5) does three things that a plain v4l2-ctl script does not account for. A manual control is flagged inactive while its auto flag is on, so the write fails with EACCES unless the auto flag goes first. About one second after auto_exposure goes from 3 to 1 the camera forces gain to 255 on its own, overwriting whatever was written in between; that was the white frame. And at every stream start in Manual Mode it re-derives the exposure. I watched 78 come up as 156, then 312.
The lock ended up as three layers. cam_lock.py capture lets auto settle for 4 s, reads what it chose, locks, waits 1.5 s for the gain reset to pass, then tunes gain until the locked picture matches auto's mean grey within 8 levels. A resident guard checks every second and re-applies within about a second of any drift, because LeRobot opens the cameras itself when a recording starts. A udev rule re-applies 3 s after a camera re-enumerates with factory defaults. so101-record refuses to start unless check --strict passes.
On 9 Nov at 23:06 the top camera locked at exposure 38 and gain 42 where auto had chosen 83 and 109, and the picture's mean grey stayed at 112.6 with the arm in and out of frame.
docs/camera-settings.md, jetson/cam_lock.py, jetson/calib/cam_settings.json · the full write-up

















