firmware icon indicating copy to clipboard operation
firmware copied to clipboard

Raspberry Pi Camera module not detected!

Open Mr-mongoose-com opened this issue 3 years ago • 8 comments

When Raspberry Pi camera module is inserted into the slot beside the headphone jack, with the blue sticker facing the Ethernet port, when running vcgencmd get_camera returns supported=1 detected=0. run sudo raspi-config and the connection to the peripheral is enabled.

Mr-mongoose-com avatar Jan 14 '22 16:01 Mr-mongoose-com

Unless you are saying this problem only occurs with a an updated version of firmware, it doesn't sound like a firmware issue.

If the camera is not detected, it is likely the camera is faulty, the cable is faulty or it is not connected correctly.

popcornmix avatar Jan 17 '22 17:01 popcornmix

vcgencmd get_camera only applies if the legacy camera stack is enabled. If using Bullseye with libcamera configured then it will report no cameras detected.

6by9 avatar Jan 17 '22 17:01 6by9

Perhaps we should change the output of get_camera with libcamera (e.g. command not supported with libcamera). What's the simplest check that camera is connected in libcamera world?

popcornmix avatar Jan 17 '22 17:01 popcornmix

Add an "ignored" flag to camera_subsystem_get_attached_devices (exported function, so there will be a few references), and increment that flag for any cameras that are configured for libcamera. Leave it with me, but higher priorities at present.

6by9 avatar Jan 17 '22 17:01 6by9

Firmware patch created that reports the number of camera interfaces configured for libcamera.

6by9 avatar Feb 07 '22 19:02 6by9

I also have this issue. It works with legacy OS, but not with newest version.

MarkusAaJohannessen avatar Jul 11 '22 14:07 MarkusAaJohannessen

What does vcgencmd version report on system that doesn't work?

popcornmix avatar Jul 13 '22 10:07 popcornmix

For those ending up here with newer hardware and newer libcamera versions, vcgencmd equivalent would be:

$ cam --list
$ cam --camera 1 --list-properties
$ cam --camera 1 --list-controls
$ cam --camera 1 --capture=10 --file=./

It's not a 1:1 copy, but it will test functionality and capabilities via the libcamera-tools package.

Torxed avatar Aug 13 '23 07:08 Torxed