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!