Description
Hi,
While using the Raspberry Pi Camera module 3 with rpicam-hello, the camera autofocus works fine with visible light.
As long as the scene is in the dark with 850 nm light source, the autofocus struggles, pumps and does not get proper fixes.
The IR light source is more than enough bright, tested with two different IP cameras with their own IR LEDs off (a Reolink E1 Zoom, and a Eufy E220 running thingino), a modified Logitech C922 (had to "screw" a little the lens to get AF working nice under IR), a modified Canon DSLR 700D. So that's not the problem.
The autofocus works perfectly fine with visible light.
I tried tuning the json settings with the help from members in the rpi forum here, with no success, except showing there is a problem with PDAF. CDAF gives better results, but only at cam initialization, so no AF.
There I learnt that the autofocus was actually not exactly a hardware feature, but something working along the software. That's why I am opening this issue.
As of today, I did a test on a Pi 4 8 GB, running a fully updated bookworm:
uname -a
Linux pi4n001 6.12.25+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.25-1+rpt1 (2025-04-30) aarch64 GNU/Linux
cat /etc/rpi-issue
Raspberry Pi reference 2024-11-19
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 891df1e21ed2b6099a2e6a13e26c91dea44b34d4, stage4
At first, I was running libcamera provided with the OS and updated through apt.
Now I am running a build following these instructions, no new commits since I followed that guide.