16MP Autofocus Camera - set fixed number

  1. Where did you get the camera module(s)?
    from ArduCam web shop
  2. Model number of the product(s)?
    The 16MP Autofocus Camera
  3. What hardware/platform were you working on?
    Raspberry/Raspberry Pi Bullseye
  4. Instructions you have followed. (link/manual/etc.)
    official
  5. Problems you were having?
    I can’t set focus with fixed number in a (bash) script:
    v4l2-ctl -c focus_absolute=300
    fails
  6. The dmesg log from your hardware?
    unknown control ‘focus_absolute’

Any ideas?

Try this:

v4l2-ctl -c focus_absolute=300 -d /dev/v4l-subdev1

The focus motor and camera sensor are two different devices, so you need to specify it manually.

It works great! Thank you so much!