KDE Wayland doesn't work on the 545 drivers

I saw all the new Wayland fixes in the new 545 drivers and decided to give KDE Wayland a spin. However, when I logged in, the desktop was refreshing at 1fps and performing really slowly. Checking the journalctl logs I see:

Oct 17 18:44:09 arch-desktop kwin_wayland[1087]: No backend specified, automatically choosing drm
Oct 17 18:44:09 arch-desktop kwin_wayland_wrapper[1087]: MESA-LOADER: failed to open simpledrm: /usr/lib/dri/simpledrm_dri.so: cannot open shared>
Oct 17 18:44:09 arch-desktop kwin_wayland_wrapper[1087]: kmsro: driver missing
Oct 17 18:44:09 arch-desktop kwin_wayland[1087]: OpenGL vendor string:                   NVIDIA Corporation
Oct 17 18:44:09 arch-desktop kwin_wayland[1087]: OpenGL renderer string:                 NVIDIA GeForce RTX 3090/PCIe/SSE2
Oct 17 18:44:09 arch-desktop kwin_wayland[1087]: OpenGL version string:                  3.1.0 NVIDIA 545.23.06
Oct 17 18:44:09 arch-desktop kwin_wayland[1087]: OpenGL shading language version string: 1.40 NVIDIA via Cg compiler
Oct 17 18:44:09 arch-desktop kwin_wayland[1087]: Driver:                                 NVIDIA
Oct 17 18:44:09 arch-desktop kwin_wayland[1087]: Driver version:                         545.23.6
Oct 17 18:44:09 arch-desktop kwin_wayland[1087]: GPU class:                              Unknown
Oct 17 18:44:09 arch-desktop kwin_wayland[1087]: OpenGL version:                         3.1
Oct 17 18:44:09 arch-desktop kwin_wayland[1087]: GLSL version:                           1.40
Oct 17 18:44:09 arch-desktop kwin_wayland[1087]: Linux kernel version:                   6.5.7
Oct 17 18:44:09 arch-desktop kwin_wayland[1087]: Requires strict binding:                no
Oct 17 18:44:09 arch-desktop kwin_wayland[1087]: GLSL shaders:                           yes
Oct 17 18:44:09 arch-desktop kwin_wayland[1087]: Texture NPOT support:                   yes
Oct 17 18:44:09 arch-desktop kwin_wayland[1087]: Virtual Machine:                        no
Oct 17 18:44:10 arch-desktop kwin_wayland[1087]: kwin_wayland_drm: Creating gbm surface failed! Function not implemented
Oct 17 18:44:10 arch-desktop kwin_wayland[1087]: kwin_wayland_drm: Creating gbm surface failed! Function not implemented
Oct 17 18:44:10 arch-desktop kwin_wayland_wrapper[1141]: (WW) Option "-listen" for file descriptors is deprecated
Oct 17 18:44:10 arch-desktop kwin_wayland_wrapper[1141]: Please use "-listenfd" instead.
Oct 17 18:44:10 arch-desktop kwin_wayland_wrapper[1141]: (WW) Option "-listen" for file descriptors is deprecated
Oct 17 18:44:10 arch-desktop kwin_wayland_wrapper[1141]: Please use "-listenfd" instead.
Oct 17 18:44:10 arch-desktop kwin_wayland[1087]: kwin_wayland_drm: Atomic modeset commit failed! Cannot allocate memory
Oct 17 18:44:10 arch-desktop kwin_wayland[1087]: kwin_wayland_drm: Failed to create gamma blob! Invalid argument

Afterwards, kwin_wayland will just constantly spam:

Oct 17 18:44:15 arch-desktop kwin_wayland[1087]: kwin_wayland_drm: Creating gbm surface failed! Function not implemented
Oct 17 18:44:15 arch-desktop kwin_wayland[1087]: kwin_wayland_drm: Creating gbm surface failed! Function not implemented
Oct 17 18:44:15 arch-desktop kwin_wayland[1087]: kwin_wayland_drm: Atomic modeset commit failed! Cannot allocate memory

How do I get this to work properly?

Info:

  • Operating System: Arch Linux
  • KDE Plasma Version: 5.27.8
  • KDE Frameworks Version: 5.110.0
  • Qt Version: 5.15.11
  • Kernel Version: 6.5.7-arch1-1 (64-bit)
  • Processors: 24 × AMD Ryzen 9 3900X 12-Core Processor
  • Memory: 31.3 GiB of RAM
  • Graphics Processor: NVIDIA GeForce RTX 3090/PCIe/SSE2
  • Product Name: X570 Taichi

I was able to workaround it by disabling simpledrm with the initcall_blacklist=simpledrm_platform_driver_init kernel parameter, but this breaks the TTY console during boot up so this isn’t a full solution.

If anyone’s curious, I got the info from here:
https://bbs.archlinux.org/viewtopic.php?pid=2126280#p2126280

Is there a way to get Wayland without breaking the TTY?

Can you please try enabling the fbdev=1 option when loading the nvidia-drm module? That should have the side effect of disabling simpledrm before replacing the framebuffer console with its own.

Nice, that actually works great. Doesn’t break the boot console at the beginning and also replaces it later with a high res console.

Hi @aplattner

Im having this issue still with the latest 545.xx drivers, even if fbdev=1 is set. The desktop basically is not useable and takes long time to start and having one fps.

My monitor configuration are 1x 240 Hz Monitor AOC, 1x 144Hz Monitor AOC. (if this has any impact)

Operating System: CachyOS Linux
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.111.0
Qt Version: 5.15.11
Kernel Version: 6.5.8-2-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 5900X 12-Core Processor
Memory: 31,2 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B550 AORUS ELITE AX V2

Both Screens are supporting Freesync/Gsync compatible.
Since VRR should work now on the 545.xx drivers, but I still also not have a toggle on
Kwin Wayland for this.
bugreport it attached

nvidia-bug-report.log.gz (2.5 MB)

@ptr1337 I just added the following to modprobe.d/nvidia.conf:

options nvidia_drm modeset=1 fbdev=1

Make sure you use nvidia_drm and not nvidia-drm

can somebody explain to me what fbdev does exactly? I don’t really notice any difference with or without it.

Hi @UrbenLegend

Im using following:

cat /etc/modprobe.d/nvidia.conf 
options nvidia NVreg_UsePageAttributeTable=1 NVreg_InitializeSystemMemoryAllocations=0 NVreg_DynamicPowerManagement=0x02
options nvidia_drm modeset=1 fbdev=1

I will try removing the options nvidia array and report back if it fixes it.

So, I have missed to package the libnvidia-gpucomp.so, which resulted into the 1 fps show on wayland.
Arch Linux also missed it with their package in testing and i have created a bugreport

I had zero issues with nvidia-utils-beta in AUR. Weird that they missed it in the main repo but didn’t in AUR.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.