• sales

    +86-0755-88291180

camera problem

2025-05-15 17:57:32 Ask

Hello, I am doing what you want, the screen is working on the Raspberry Pi 5 but I have a problem like this


dtoverlay=vc4-kms-v3d

max_framebuffers=2


When I disable these, my camera v3 module does not work but my camera v3 model should work. When I enable these, the camera works but the gui interface does not come. Can this problem be solved?

raspberrypi5 camerav3 raspberrypi raspberry pi raspberry pi 5 camera v3
1answers
SpotPearGuestaa241
Answer time:
2025-05-16 18:24:47

Hello , I can help you !

Enable KMS

dtoverlay=vc4-kms-v3d

max_framebuffers=2


Solve the issue of not displaying GUI on the SPI display after enabling KMS

This issue occurs because there is no SPI display configuration file in the /etc/X11/xorg.conf.d/ directory. To resolve this, create a configuration file 98-spi-screen.conf:


1.Open the file using nano:


  sudo nano /etc/X11/xorg.conf.d/98-spi-screen.conf



2.Add the following parameters to the 98-spi-screen.conf file:


  Section "Device"

      Identifier "SPI Screen"    

      Driver "fbdev"

      Option "fbdev" "/dev/fb0"

  EndSection



3.Restart to apply the changes:


  sudo reboot


This ensures that Xorg loads the new configuration file during startup, enabling GUI output on the SPI display.


Resolve the Camera Not Enabling Issue

Normally, you can enable the camera by using the following command in the GUI terminal:

libcamera-hello


This command utilizes the GPU hardware resources.

To switch to using the CPU's software resources instead of the GPU, use:

libcamera-hello --qt-preview


After enabling the SPI display, there might be compatibility issues with the GPU drivers. Therefore, it's recommended to directly use libcamera-hello --qt-preview, which switches to using CPU resources for processing the camera image.


Let me know if you need further details!

Like0

report

Price: $15.89
Part Number: rpi-1.54inch-lcd
Brand: Spotpear