Hi, I’m stuck with an IMX219 camera module on my Raspberry Pi 4B and I can’t get it working at all. The camera seems to be detected, but libcamera keeps reporting errors and I never got a single image out of it. I followed the setup instructions from the docs link I was given (did the whole ‘Which instruction are you following?’ thing) and it did not change anything. This is what keeps showing up:
[0:09:25.457448458] [1344] ERROR RPI raspberrypi.cpp:1794 Unicam has timed out!
[0:09:25.457501844] [1344] ERROR RPI raspberrypi.cpp:1795 Please check that your camera sensor connector is attached securely.
[0:09:25.457553545] [1344] ERROR RPI raspberrypi.cpp:1796 Alternatively, try another cable and/or sensor.
Any idea how to get it working? I never got it to run once.
Thanks, that helps. Can you paste your /boot/config.txt as well? I want to see the overlay lines and make sure nothing there is conflicting with the camera.
dtparam=i2c_arm=on
dtparam=i2s=on
#dtparam=spi=on
dtparam=audio=off
camera_auto_detect=0
display_auto_detect=1
dtoverlay=vc4-kms-v3d (I also tried adding ,cma-256 to it)
max_framebuffers=2
disable_overscan=1
[cm4] otg_mode=1
[pi4] arm_boost=1
[all] start_x=1 (tried with and without this line)
gpu_mem=128
dtoverlay=imx219
#enable_uart=1
That config actually looks correct — camera_auto_detect=0 plus dtoverlay=imx219 is exactly what we’d want for this module on a Pi 4. So the software setup side seems fine.
Can you walk me through what you’ve already tried physically, and anything else you changed?
Have you tried swapping the ribbon cable?
Is the connector fully seated, and in the right orientation on both ends?
OK, thanks for being thorough. Here’s where I’m at: we’ve tested this camera model ourselves and it works normally, so the module itself isn’t incompatible with a Pi 4.
Given that your config is correct and libcamera still times out, that error almost always comes down to the sensor connection path — the connector not being seated properly, or a bad cable/sensor. Since you’ve ruled out orientation and tried both cables and multiple OS images, can you confirm for me that the connection itself is definitely good and that at least one cable works?
If both of those check out, then the issue is most likely with the camera itself.
Thanks for confirming all of that. Putting it together:
Your config already has the recommended settings (camera_auto_detect=0 and dtoverlay=imx219), and libcamera still reports Unicam has timed out
You’ve swapped both cables, re-checked orientation multiple times, and tried different OS images
The same camera model works fine when tested on our side
The Unicam timeout errors point to the sensor connector/connection path or a faulty cable/sensor. Since the connection checks out and the recommended software settings are already in place, this points to a hardware fault in the camera module itself rather than a configuration or software issue. There isn’t a config change that will fix a sensor that isn’t responding at the driver level, so at this point the fault is on the hardware side.