KDE Wayland session crashes immediatly

Started by SimonKl, 2025/08/04, 11:06:33

Previous topic - Next topic

SimonKl

Hi! So i just installed the KDE version of this distro, and did a couple fairly usual things:
- installed nvidia nonfree drivers as described in the manual (I have a 1080)
- added myself to the sudo group because I want to use sudo
- apt update, apt upgrade
- to install steam, added 32bit librariy repos (sudo dpkg --add-architecture i386; apt update)
- installed steam

right after I installed the nvidia drivers, I had to restart, and the the kde-wayland session just results in a black screen for 3 seconds or so, and then goes back to the login promp. X11 works. I did the steps afterwards thinking maybe things are gonna fix themselves, but turns out they dont.

running journalctl -b | grep -i 'wayland.*]: ' showed me this, repeating a bunch of times:

Aug 04 10:28:28 simon-b550gamingxv2 kwin_wayland_wrapper[2678]: kwin_wayland_drm: No suitable DRM devices have been found
Aug 04 10:28:28 simon-b550gamingxv2 kwin_wayland_wrapper[2678]: QThreadStorage: Thread 0x560f6fc014c0 exited after QThreadStorage 8 destroyed
Aug 04 10:28:28 simon-b550gamingxv2 kwin_wayland_wrapper[2678]: QThreadStorage: Thread 0x560f6fc014c0 exited after QThreadStorage 1 destroyed
Aug 04 10:28:28 simon-b550gamingxv2 kwin_wayland_wrapper[2678]: QThreadStorage: Thread 0x560f6fc014c0 exited after QThreadStorage 0 destroyed
Aug 04 10:28:28 simon-b550gamingxv2 kwin_wayland_wrapper[2730]: No backend specified, automatically choosing drm
Aug 04 10:28:28 simon-b550gamingxv2 kwin_wayland_wrapper[2730]: kwin_wayland_drm: No suitable DRM devices have been found
Aug 04 10:28:28 simon-b550gamingxv2 kwin_wayland_wrapper[2730]: QThreadStorage: Thread 0x55aabe8634c0 exited after QThreadStorage 8 destroyed
Aug 04 10:28:28 simon-b550gamingxv2 kwin_wayland_wrapper[2730]: QThreadStorage: Thread 0x55aabe8634c0 exited after QThreadStorage 1 destroyed[language=english][/language]
Aug 04 10:28:28 simon-b550gamingxv2 kwin_wayland_wrapper[2730]: QThreadStorage: Thread 0x55aabe8634c0 exited after QThreadStorage 0 destroyed
[.......]
Aug 04 10:49:27 simon-b550gamingxv2 xwaylandvideobridge[38676]: qt.qpa.xcb: could not connect to display
Aug 04 10:49:27 simon-b550gamingxv2 xwaylandvideobridge[38676]: qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
Aug 04 10:49:27 simon-b550gamingxv2 xwaylandvideobridge[38676]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Aug 04 10:49:27 simon-b550gamingxv2 xwaylandvideobridge[38676]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Aug 04 10:49:27 simon-b550gamingxv2 xwaylandvideobridge[38676]: Available platform plugins are: minimalegl, vnc, wayland-egl, offscreen, linuxfb, wayland, xcb, minimal, eglfs, vkkhrdisplay.


Any ideas?

towo

Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

SimonKl

result:
ii  firmware-nvidia-graphics                                 20250410-2                               all          Binary firmware for Nvidia GPU chips
ii  firmware-nvidia-gsp                                      550.163.01-2                             amd64        NVIDIA GSP firmware
ii  glx-alternative-nvidia                                   1.2.2                                    amd64        allows the selection of NVIDIA as GLX provider
ii  libegl-nvidia0:amd64                                     550.163.01-2                             amd64        NVIDIA binary EGL library
ii  libegl-nvidia0:i386                                      550.163.01-2                             i386         NVIDIA binary EGL library
ii  libgl1-nvidia-glvnd-glx:amd64                            550.163.01-2                             amd64        NVIDIA binary OpenGL/GLX library (GLVND variant)
ii  libgl1-nvidia-glvnd-glx:i386                             550.163.01-2                             i386         NVIDIA binary OpenGL/GLX library (GLVND variant)
ii  libgles-nvidia1:amd64                                    550.163.01-2                             amd64        NVIDIA binary OpenGL|ES 1.x library
ii  libgles-nvidia1:i386                                     550.163.01-2                             i386         NVIDIA binary OpenGL|ES 1.x library
ii  libgles-nvidia2:amd64                                    550.163.01-2                             amd64        NVIDIA binary OpenGL|ES 2.x library
ii  libgles-nvidia2:i386                                     550.163.01-2                             i386         NVIDIA binary OpenGL|ES 2.x library
ii  libglx-nvidia0:amd64                                     550.163.01-2                             amd64        NVIDIA binary GLX library
ii  libglx-nvidia0:i386                                      550.163.01-2                             i386         NVIDIA binary GLX library
ii  libnvidia-allocator1:amd64                               550.163.01-2                             amd64        NVIDIA allocator runtime library
ii  libnvidia-allocator1:i386                                550.163.01-2                             i386         NVIDIA allocator runtime library
ii  libnvidia-cfg1:amd64                                     550.163.01-2                             amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-egl-gbm1:amd64                                 1.1.2.1-1                                amd64        GBM EGL external platform library for NVIDIA
ii  libnvidia-egl-gbm1:i386                                  1.1.2.1-1                                i386         GBM EGL external platform library for NVIDIA
ii  libnvidia-egl-wayland1:amd64                             1:1.1.18-1                               amd64        Wayland EGL External Platform library -- shared library
ii  libnvidia-egl-wayland1:i386                              1:1.1.18-1                               i386         Wayland EGL External Platform library -- shared library
ii  libnvidia-eglcore:amd64                                  550.163.01-2                             amd64        NVIDIA binary EGL core libraries
ii  libnvidia-eglcore:i386                                   550.163.01-2                             i386         NVIDIA binary EGL core libraries
ii  libnvidia-encode1:amd64                                  550.163.01-2                             amd64        NVENC Video Encoding runtime library
ii  libnvidia-encode1:i386                                   550.163.01-2                             i386         NVENC Video Encoding runtime library
ii  libnvidia-glcore:amd64                                   550.163.01-2                             amd64        NVIDIA binary OpenGL/GLX core libraries
ii  libnvidia-glcore:i386                                    550.163.01-2                             i386         NVIDIA binary OpenGL/GLX core libraries
ii  libnvidia-glvkspirv:amd64                                550.163.01-2                             amd64        NVIDIA binary Vulkan Spir-V compiler library
ii  libnvidia-glvkspirv:i386                                 550.163.01-2                             i386         NVIDIA binary Vulkan Spir-V compiler library
ii  libnvidia-gpucomp:amd64                                  550.163.01-2                             amd64        NVIDIA binary GPU compiler library
ii  libnvidia-gpucomp:i386                                   550.163.01-2                             i386         NVIDIA binary GPU compiler library
ii  libnvidia-ml1:amd64                                      550.163.01-2                             amd64        NVIDIA Management Library (NVML) runtime library
ii  libnvidia-pkcs11-openssl3:amd64                          550.163.01-2                             amd64        NVIDIA PKCS #11 Library (OpenSSL 3)
ii  libnvidia-ptxjitcompiler1:amd64                          550.163.01-2                             amd64        NVIDIA PTX JIT Compiler library
ii  libnvidia-ptxjitcompiler1:i386                           550.163.01-2                             i386         NVIDIA PTX JIT Compiler library
ii  libnvidia-rtcore:amd64                                   550.163.01-2                             amd64        NVIDIA binary Vulkan ray tracing (rtcore) library
ii  nvidia-alternative                                       550.163.01-2                             amd64        allows the selection of NVIDIA as GLX provider
ii  nvidia-driver                                            550.163.01-2                             amd64        NVIDIA metapackage
ii  nvidia-driver-bin                                        550.163.01-2                             amd64        NVIDIA driver support binaries
ii  nvidia-driver-libs:amd64                                 550.163.01-2                             amd64        NVIDIA metapackage (OpenGL/GLX/EGL/GLES libraries)
ii  nvidia-driver-libs:i386                                  550.163.01-2                             i386         NVIDIA metapackage (OpenGL/GLX/EGL/GLES libraries)
ii  nvidia-egl-common                                        550.163.01-2                             amd64        NVIDIA binary EGL driver - common files
ii  nvidia-egl-icd:amd64                                     550.163.01-2                             amd64        NVIDIA EGL installable client driver (ICD)
ii  nvidia-egl-icd:i386                                      550.163.01-2                             i386         NVIDIA EGL installable client driver (ICD)
ii  nvidia-installer-cleanup                                 20240109+1                               amd64        cleanup after driver installation with the nvidia-installer
ii  nvidia-kernel-common                                     20240109+1                               amd64        NVIDIA binary kernel module support files
ii  nvidia-kernel-dkms                                       550.163.01-2                             amd64        NVIDIA binary kernel module DKMS source
ii  nvidia-kernel-support                                    550.163.01-2                             amd64        NVIDIA binary kernel module support files
ii  nvidia-legacy-check                                      550.163.01-2                             amd64        check for NVIDIA GPUs requiring a legacy driver
ii  nvidia-modprobe                                          570.133.07-1                             amd64        utility to load NVIDIA kernel modules and create device nodes
ii  nvidia-persistenced                                      550.163.01-1                             amd64        daemon to maintain persistent software state in the NVIDIA driver
ii  nvidia-settings                                          550.163.01-1                             amd64        tool for configuring the NVIDIA graphics driver
ii  nvidia-smi                                               550.163.01-2                             amd64        NVIDIA System Management Interface
ii  nvidia-support                                           20240109+1                               amd64        NVIDIA binary graphics driver support files
ii  nvidia-suspend-common                                    550.163.01-2                             amd64        NVIDIA driver - systemd power management scripts
ii  nvidia-vdpau-driver:amd64                                550.163.01-2                             amd64        Video Decode and Presentation API for Unix - NVIDIA driver
ii  nvidia-vulkan-common                                     550.163.01-2                             amd64        NVIDIA Vulkan driver - common files
ii  nvidia-vulkan-icd:amd64                                  550.163.01-2                             amd64        NVIDIA Vulkan installable client driver (ICD)
ii  nvidia-vulkan-icd:i386                                   550.163.01-2                             i386         NVIDIA Vulkan installable client driver (ICD)
ii  xserver-xorg-video-nvidia                                550.163.01-2                             amd64        NVIDIA binary Xorg driver

towo

550-series driver is to old for plasma-wayland, you need at least 560.xx as minimum version.
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

SimonKl

Hu okay.. can I install those using apt? The newest I can find on debian sid are 550, which is confusing to me since so much newer stuff is out... (https://packages.debian.org/unstable/nvidia-driver)
If that is true, I'd suggest updating the manual with to show how to actually install recent drivers.(https://manual.siduction.org/gpu_en.html)

mdmarmer

#5
You need a patched driver.  You can download the driver from nvidia web page and patch it.  Or, I believe towo has patched the driver and made it available to apt:

a patched driver is available in https://packages.siduction.org/fixes/ unstable-nvidia

This was discussed recently in this forum, I think only in German, but I couldn't find the posts.

How to patch:
download the driver from the nvidia web site and patch it with instructions from here:
wget https://raw.githubusercontent.com/leigh123linux/nvidia_patch/refs/heads/main/Workaround-nv_vm_flags_-calling-GPL-only-code.patch
sh NVIDIA-Linux-x86_64-575.64.03.run --apply-patch Workaround-nv_vm_flags_-calling-GPL-only-code.patch
Then install the custom .run file

sh NVIDIA-Linux-x86_64-575.64.03-custom.run

this is from https://forums.developer.nvidia.com/t/nvidia-driver-linux-kernel-6-15/334564/12