# Add these lines to the end of your /boot/firmware/config.txt (or /boot/config.txt) # to explicitly enable the IMX219 camera module on Raspberry Pi 5. # IMX219 Camera Module v2 dtoverlay=imx219 # Ensure camera is enabled (legacy, usually not needed on Bookworm but safe) camera_auto_detect=1 # Optional: Increase GPU memory if needed for higher resolutions # gpu_mem=128