This solution did work just the other day for me. I had to set focus_absolute=1600 to get a clear picture inside of my 3D printer.
Today however, I get: $ v4l2-ctl -c focus_absolute=1600 -d /dev/v4l-subdev1 Failed to open /dev/v4l-subdev1: Invalid argument
Has some recent OS package update changed this functionality?
Thanks Wong, this is a great command! I just used it and it works marvels. v4l2-ctl -c focus_absolute=300 -d /dev/v4l-subdev1
I have a few technical questions:
What are the units for the variable “focus_absolute”? Is it measured in micrometers?
Was the entire stroke displacement divided by an arbitrary number? If so, what are the safe lower and upper limits for displacement without damaging the motor?
Has anyone measured the velocity of displacement (in millimeters per millisecond)?
How does v4l2-ctl work? Does it directly interface with low-level commands for controlling the motor?
5.How is this related to the Focal Length of the camera?
Regards!