Pi Camera timeout settings

The default Pi Camera timeout of 1 second is often exceeded during long scans, causing the thread in the server to never return, crashing the server. See issue openflexure-microscope-server#293 (closed)

This timeout can be set manually by editing /usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml, adding a line "camera_timeout_value_ms": 10000,

@julianstirling has a one liner that will do this automatically from the terminal, provided the line hasn't already been added

sudo perl -i -pe 's/^(( *)\"output0_mandatory_stream":(?: *)true(?: *),)/$1\n$2"camera_timeout_value_ms": 10000,/g' /usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml

Marking this as critical because it causes crashes during scans

Assignee Loading
Time tracking Loading