camera-ui2 uses the same auto-focus function as the stock camera-ui, it is part of the camera-api (gstphotography) And I saw some wired auto-focus behavior with the stock camera-ui as well. [...] It is the same behavior, just tested. [...] Do you have syslog installed and can you look if there are any error messages logged.
[90846.XXXXXX] cam_focus (GPIO 68) is now active [90849.XXXXXX] af: af not configured [90850.XXXXXX] cam_focus (GPIO 68) is now inactive [90853.XXXXXX] cam_focus (GPIO 68) is now active [90856.XXXXXX] af: af not configured [90856.XXXXXX] cam_launch (GPIO 69) is now active [90858.XXXXXX] cam_launch (GPIO 69) is now inactive [90858.XXXXXX] cam_focus (GPIO 68) is now inactive