Hi, thanks for the reply and instructions on how to move forward.
I did a fresh install of bullseye os: uname -a “5.15.84-v8+”
Ran sudo apt update & upgrade. I noticed it came with picamera2, installed libcamera through wget, then chmod +x, libcamera_dev, libcamera_apps, then ./installpivarietypkgs.sh -d. Tried it with sudo instead, and installed and it modified my config.txt. i remodified it so that the config has:
[pi4]
arm_boost=1
#dtoverlay=arducam_64mp
dtoverlay=vc4-kms-v3d,cma-512
[all]
dtparam=i2c_vc=on
dtparam=i2c_arm=on
dtoverlay=arducam64_mp
i also noticed that maybe picamera2 gets in the way of libcamera, or something like that because libcamera-still did not work after installing libcamera dev and apps. so i unistalled picamera2, with sudo apt remove python3-picamera2, then reinstalled 0.0.12 and libcamera-hello started to work.
i tried your code:
v4l2-ctl -l -d /dev/v4l-subdev1
and it returned:
Camera controls
focus_absolute 0x009a090a(int) : min=0 max=1023 step=1 default=0
value=341
i also ran:
libcamera-still --autofocus-on-capture=1 --width 4624 --height 3472 --nopreview --output autofocus-on-capture-1-setWH.jpg
but, it returned a blurry pic.
i rebooted thinking maybe it needed a reboot, and ran the same code you sent, but it still returned a blurry pic.
I also tried on 0.0.10, but the pic stays blurry, too. I haven’t tried 0.0.11.
Would you suggest using picamera2 to change the AF or do i need libcamera to work first?