Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5394

Troubleshooting • Vulkan: no DRI3 support detected on VNC server (Debian)

$
0
0
Hi,
I'm using a Raspberry Pi 4 on the latest version Debian Bookworm 64-bits, and need to use vulkan in a VNC session. It works when wired to a screen: vkcube opens a window with a 3D rotating cube. However, it fails when the same command is used in a VNC session: vkcube returns "vulkan: no DRI3 support detected...".
The VNC session is started with TightVNC.

I checked the output of vulkaninfo in both cases, and the only difference is that, when wired to a screen, two GPUs appear in the Presentable Surfaces section, instead of one when the command is used in the VNC session. The additional gpu is defined as follows:

Code:

GPU id : 0 (V3D 4.2.14):Surface types: count = 2VK_KHR_xcb_surfaceVK_KHR_xlib_surfaceFormats: count = 2SurfaceFormat[0]:format = FORMAT_B8G8R8A8_SRGBcolorSpace = COLOR_SPACE_SRGB_NONLINEAR_KHRSurfaceFormat[1]:format = FORMAT_B8G8R8A8_UNORMcolorSpace = COLOR_SPACE_SRGB_NONLINEAR_KHRPresent Modes: count = 4PRESENT_MODE_IMMEDIATE_KHRPRESENT_MODE_MAILBOX_KHRPRESENT_MODE_FIFO_KHRPRESENT_MODE_FIFO_RELAXED_KHRVkSurfaceCapabilitiesKHR:-------------------------minImageCount = 3maxImageCount = 0currentExtent:width  = 256height = 256minImageExtent:width  = 256height = 256maxImageExtent:width  = 256height = 256maxImageArrayLayers = 1supportedTransforms: count = 1SURFACE_TRANSFORM_IDENTITY_BIT_KHRcurrentTransform = SURFACE_TRANSFORM_IDENTITY_BIT_KHRsupportedCompositeAlpha: count = 2COMPOSITE_ALPHA_OPAQUE_BIT_KHRCOMPOSITE_ALPHA_INHERIT_BIT_KHRsupportedUsageFlags: count = 6IMAGE_USAGE_TRANSFER_SRC_BITIMAGE_USAGE_TRANSFER_DST_BITIMAGE_USAGE_STORAGE_BITIMAGE_USAGE_COLOR_ATTACHMENT_BITIMAGE_USAGE_INPUT_ATTACHMENT_BITIMAGE_USAGE_ATTACHMENT_FEEDBACK_LOOP_BIT_EXTVkSurfaceCapabilities2EXT:--------------------------supportedSurfaceCounters:NoneVkSurfacePresentModeCompatibilityEXT:-------------------------------------presentModeCount = 1pPresentModes: count = 1VkSurfacePresentScalingCapabilitiesEXT:---------------------------------------supportedPresentScaling:NonesupportedPresentGravityX:NonesupportedPresentGravityY:NoneminScaledImageExtent:width  = 256height = 256maxScaledImageExtent:width  = 256height = 256VkSurfaceProtectedCapabilitiesKHR:----------------------------------supportsProtected = false
I guess I have to point to this additional GPU when opening the VNC server but did not find how to do it.

Currently, the VNC server is started with systemctl and the following .service file:

Code:

[Unit]Description=Open a virtual session on boot with user "capteur"After=multi-user.target[Service]Type=forkingUser=capteurExecStartPre=sleep 20ExecStart=vncserver[Install]WantedBy=multi-user.target
The xstartup script is the default one:

Code:

#!/bin/shxrdb "$HOME/.Xresources"xsetroot -solid grey#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &#x-window-manager &# Fix to make GNOME workexport XKL_XMODMAP_DISABLE=1/etc/X11/Xsession
Finally, I saw on this post (https://superuser.com/questions/1725797 ... ith-vulkan) that the issue might come from /etc/X11/xorg.conf.d, but couldn't find a way to fix it myself. So here is the only file in my /etc/X11/xorg.conf.d directory (again the default one):

Code:

Section "OutputClass"  Identifier "vc4"  MatchDriver "vc4"  Driver "modesetting"  Option "PrimaryGPU" "true"EndSection
I also noticed two files vncserver-virtual-vnc.conf and vncserver-virtual-dummy.conf sitting in /etc/X11/ so maybe they should be edited too.

Is there a way to enable DRI3 inside a VNC session, and if yes, what am I missing ?

I hope someone can help me with this,
Bye !

NB: Since I don't know if it's more a Raspberry Pi or a Linux question, I made the exact same post on SuperUser. I'll update this post if the issue is solved there and vice versa

Statistics: Posted by Eddie_r — Mon Mar 18, 2024 4:32 pm



Viewing all articles
Browse latest Browse all 5394

Trending Articles