XWayland start failure

Hi,

I’m having an issue getting xwayland to start on a rock5b (aarch64, mesa panthor) device running Gentoo. I just wanted to check if anyone could point an error on my part before I report a bug about this.

When plasma starts, I get the following error in the logs:

Nov 16 11:13:44 rock5b kwin_wayland_wrapper[1093]: kwin_wayland_drm: Could not create a non-master DRM fd for leasing! Permission denied
Nov 16 11:13:44 rock5b kwin_wayland_wrapper[1093]: error marshalling arguments for drm_fd: dup failed: Bad file descriptor
Nov 16 11:13:44 rock5b kwin_wayland_wrapper[1093]: error in client communication (pid 1093)
Nov 16 11:13:44 rock5b kwin_wayland_wrapper[1164]: (EE) could not connect to wayland server

This is the versions I am using

[IP-] [  ] kde-plasma/kwin-6.4.5-r1:6
[IP-] [  ] x11-base/xwayland-24.1.9:0
[IP-] [  ] media-libs/mesa-25.2.7:0

My user is a member of the groups of the /dev/dri devices (video and render)

drwxr-xr-x 3 root root 180 Nov 16 11:13 .
drwxr-xr-x 18 root root 3880 Nov 16 11:13 ..
drwxr-xr-x 2 root root 160 Nov 16 11:13 by-path
crw-rw---- 1 root video 226, 0 Nov 16 11:13 card0
crw-rw---- 1 root video 226, 1 Nov 16 11:13 card1
crw-rw---- 1 root video 226, 2 Nov 16 11:13 card2
crw-rw-rw- 1 root render 226, 128 Nov 16 11:13 renderD128
crw-rw-rw- 1 root render 226, 129 Nov 16 11:13 renderD129
crw-rw-rw- 1 root render 226, 130 Nov 16 11:13 renderD130

Everything else seems to be working fine, except that all applications requiring X11 just hangs as xwayland is not running.

I tried to force the use of the 3 reported cards one by one manually using the KWIN_DRM_DEVICES env variable to no avail (only card0 works at all for the master kwin)

Thanks!

Stephane