Error installing ToF camera


New out of the box ToF raspberry pi camera being installed on a fresh Bullseye (version 11) 64 bit Raspberry OS, installed on a 8GB PI-4.

When installing the Time-Of-Oflight Raspberry Pi camera according to the installation guide (both on the web page and pdf) in in phase 4 it generates an error:

v4l2_device_open_v4l2_subdev WARNING Link '…/…/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.0/video4linux/video0' does not contain '/v4l-subdev'
VIDIOC_S_CTRL: Bad file descriptor
VIDIOC_S_CTRL: Bad file descriptor
Segmentation fault

ending the compilation (fase 4 ) in an error state. I have raised a ticket with Arducam support team. But maybe someone has encountered the same problem or knows the solution to the problem?

I will post the solution in due time,

Thanks, Frank.

Update: I checked the maual installation on Github, I think the installation steps are not doing what they should do. The config.txt should be changed during installation, this is not properly executed.

I retried an installing on a freshly installed bullseye, I changed the config.txt according to the manual installation, reboot, still the same error occurs: does not contain ‘/v4l-subdev’.

Maybe any suggestions?


Do you have multiple cameras hooked up to your device?

ls /dev/video*
ls /dev/v4l-subdev*

Hi Edward,

Yes exactly that was the problem! It looked as if it was still in the installation phase, but it already started the demo that generated the error. Please see also below for the answer from support team how to solve the issue if you really need the two camera’s:


It looks like that you are connecting two cameras to your Raspberry Pi.

If so, you need to identify the video mode in the demo code.

For example in C/C++:

int video = 1; //if camera is /dev/video1,video)

In python:

camIdx = 1 # If the path of the camera is /dev/video1,camIdx )

Of course, the simplest way to test the Tof camera is remove another camera and only connect Tof camera to your Raspberry Pi. Then run the demo code again.

Thanks for you fast response, I’m ready to start experimenting with this fascinating device,

regards, Frank.