MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.84k stars 495 forks source link

Issue with /dev/dri/ with no desktop running #7035

Open oxoocoffee opened 5 months ago

oxoocoffee commented 5 months ago

Creating a bug report/issue

Required Information

Additional Information (if applicable)

Steps to reproduce

  1. Boot from a fresh image on rPi 5 and complete installation with our desktop selected.

  2. Install build tools sudo apt install build-essential git cmake pkg-config libdrm-dev drm_info

  3. ls /dev/dri/

    drwxr-xr-x 2 root root        100 Apr 22 16:33 by-path
    crw-rw---- 1 root video  226,   0 Apr 22 16:33 card0
    crw-rw---- 1 root video  226,   1 Apr 22 16:33 card1
    crw-rw---- 1 root render 226, 128 Apr 22 16:33 renderD128
  4. Uncompress dri-test.tgz

  5. cd dri-test/build && cmake .. && make

Expected behaviour

Actual behaviour

Extra details

MichaIng commented 5 months ago

KMS is enabled, right?

grep dtoverlay=vc4-kms-v3d /boot/config.txt

Did you start the test program from within a desktop session? I don't know what it is doing, where "device" and "fd" (file descriptor?) are coming from, but maybe it requires a context or input to know which of the 2 DRI devices it should use?

Did you test this with RPi OS Bookworm?

oxoocoffee commented 5 months ago

@MichaIng

Yes. All tests were performed with dtoverlay=vc4-kms-v3d

oxoocoffee commented 4 months ago

While looking into this issue some more today I found this #5049

Change the config.txt file to dtoverlay=vc4-kms-v3d-pi4