KDE Wayland Not Utilizing Nvidia GPU on Fresh Install?

Hello,

I’ve jumped back to Tumbleweed after a month or so of distrohopping, so this is on a fresh install. However, for some reason on Tumbleweed KDE, Wayland seems to not properly utilize my Nvidia GPU. X11 has no problem. For Wayland, when I log in it does not recognize my second monitor, and my primary monitor’s resolution is set very low, instead of its normal ultrawide resolution of 3440x1440.

I tried adding nvidia_drm.modeset=1 to my Kernel paramters, but that just resulted in Tumbleweed giving an error after grub about not being able to load the Nvidia driver (or something along those lines, can pull message again if needed) and then being forced to boot into TTY.

Edit: Also to add, when I run cat /sys/module/nvidia_drm/parameters/modeset from the Wayland session, it returns N. The Arch wiki (NVIDIA - ArchWiki) makes it out like this should return Y, but I’m not sure how to proceed from that discrepancy at this point. It returns N in both X11 and Wayland, for what that is worth.

Some relevant logs from within the Wayland session:

fastfetch

[username]@localhost
----------------
OS: openSUSE Tumbleweed x86_64
Kernel: Linux 6.13.5-1-default
Uptime: 5 mins
Packages: 2903 (rpm), 9 (flatpak)
Shell: bash 5.2.37
Display (Unknown-1): 1024x768 @ 60 Hz in 13"
DE: KDE Plasma 6.3.2
WM: KWin (Wayland)
WM Theme: Breeze
Theme: Breeze (Dark) [Qt], Breeze-Dark [GTK2], Breeze [GTK3]
Icons: breeze-dark [Qt], breeze-dark [GTK2/3/4]
Font: Noto Sans (10pt) [Qt], Noto Sans (10pt) [GTK2/3/4]
Cursor: breeze (24px)
Terminal: konsole 24.12.2
CPU: AMD Ryzen 9 7950X3D (32) @ 5.76 GHz
GPU: NVIDIA GeForce RTX 4090 [Discrete]
Memory: 3.98 GiB / 62.42 GiB (6%)
Swap: 0 B / 2.00 GiB (0%)
Disk (/): 550.78 GiB / 3.64 TiB (15%) - btrfs
Local IP (eno1): 192.168.50.2/24
Locale: en_US.UTF-8

inxi -Gxxz

Graphics:
  Device-1: NVIDIA AD102 [GeForce RTX 4090] driver: nvidia v: 570.124.04
    arch: Lovelace pcie: speed: 2.5 GT/s lanes: 16 bus-ID: 01:00.0
    chip-ID: 10de:2684
  Display: wayland server: X.org v: 1.21.1.15 with: Xwayland v: 24.1.6
    compositor: kwin_wayland driver: X: loaded: N/A unloaded: modesetting,vesa
    failed: nvidia alternate: fbdev,nouveau,nv gpu: nvidia display-ID: 0
  Monitor-1: Unknown-1 res: 1024x768 hz: 60 dpi: 96 diag: 338mm (13.3")
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia gbm: drv: kms_swrast
    surfaceless: drv: nvidia wayland: drv: swrast x11: drv: swrast
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: mesa v: 25.0.0 glx-v: 1.4
    direct-render: yes renderer: llvmpipe (LLVM 19.1.7 256 bits)
    device-ID: ffffffff:ffffffff display-ID: :0.0
  API: Vulkan v: 1.4.304 surfaces: xcb,xlib device: 0 type: discrete-gpu
    driver: N/A device-ID: 10de:2684
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: nvidia-smi wl: wayland-info
    x11: xdpyinfo, xprop, xrandr

lsmod | grep nvidia

nvidia_uvm           3997696  0
nvidia_drm            135168  4
nvidia_modeset       2150400  4 nvidia_drm
nvidia              13111296  31 nvidia_uvm,nvidia_modeset
drm_ttm_helper         16384  1 nvidia_drm
video                  81920  3 asus_wmi,asus_nb_wmi,nvidia_modeset

nvidia-smi

Thu Mar  6 08:15:52 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 570.124.04             Driver Version: 570.124.04     CUDA Version: 12.8     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 4090        On  |   00000000:01:00.0 Off |                  Off |
|  0%   41C    P8             17W /  450W |       2MiB /  24564MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|  No running processes found                                                             |
+-----------------------------------------------------------------------------------------+

journalctl -b --no-hostname
journalctl link

For sharing lengthy content use https://paste.opensuse.org/ or https://pastebin.com/

Thanks! I’ve updated the post with the journalctl logs as well then.

This doesn’t look right…

Display: wayland server: X.org v: 1.21.1.15 with: Xwayland v: 24.1.6
    compositor: kwin_wayland driver: X: loaded: N/A unloaded: modesetting,vesa
    failed: nvidia alternate: fbdev,nouveau,nv gpu: nvidia display-ID: 0

Please show what you have installed
zypper se -si nvidia
I’m just wondering if the drivers should be updated, but will leave the NVIDIA experts to comment further on this.

For full transparency, I ran this line in X11, but packages shouldn’t matter between DEs.

sudo zypper se -si nvidia

S  | Name                                      | Type    | Version                  | Arch   | Repository
---+-------------------------------------------+---------+--------------------------+--------+--------------
i  | kernel-firmware-nvidia                    | package | 20250206-1.1             | noarch | repo-oss
i  | libnvidia-egl-gbm1                        | package | 1.1.2-7.2                | x86_64 | repo-non-free
i  | libnvidia-egl-gbm1-32bit                  | package | 1.1.2-7.3                | x86_64 | repo-non-free
i  | libnvidia-egl-wayland1                    | package | 1.1.17-43.4              | x86_64 | repo-non-free
i  | libnvidia-egl-wayland1-32bit              | package | 1.1.17-43.3              | x86_64 | repo-non-free
i  | libnvidia-egl-x111                        | package | 1.0.1-9.4                | x86_64 | repo-non-free
i  | libnvidia-egl-x111-32bit                  | package | 1.0.1-9.4                | x86_64 | repo-non-free
i  | nvidia-common-G06                         | package | 570.124.04-32.1          | x86_64 | repo-non-free
i+ | nvidia-compute-G06                        | package | 570.124.04-32.1          | x86_64 | repo-non-free
i  | nvidia-compute-G06-32bit                  | package | 570.124.04-32.1          | x86_64 | repo-non-free
i+ | nvidia-compute-utils-G06                  | package | 570.124.04-32.1          | x86_64 | repo-non-free
i+ | nvidia-gl-G06                             | package | 570.124.04-32.1          | x86_64 | repo-non-free
i  | nvidia-gl-G06-32bit                       | package | 570.124.04-32.1          | x86_64 | repo-non-free
i  | nvidia-modprobe                           | package | 570.124.04-11.1          | x86_64 | repo-non-free
i  | nvidia-open-driver-G06-signed-kmp-default | package | 570.124.04_k6.13.4_1-1.1 | x86_64 | repo-oss
i  | nvidia-persistenced                       | package | 570.124.04-2.1           | x86_64 | repo-non-free
i+ | nvidia-video-G06                          | package | 570.124.04-32.1          | x86_64 | repo-non-free
i  | nvidia-video-G06-32bit                    | package | 570.124.04-32.1          | x86_64 | repo-non-free
i+ | openSUSE-repos-Tumbleweed-NVIDIA          | package | 20250303.f74564e-1.1     | x86_64 | repo-oss

Maybe not, but useful to disclose the driver version in a situation like this, and there is clearly an issue with the nvidia driver (as reported by inxi). The driver package version you listed doesn’t correspond to the version associated with secure boot certificates?

Mar 06 08:10:16 kernel: integrity: Loading X.509 certificate: UEFI:MokListRT (MOKvar table)
Mar 06 08:10:16 kernel: integrity: Loaded X.509 cert 'Local build for nvidia-driver-G06 550.120 on 2024-10-06: 9fb75fec623f09e65eee917a5b9ca85c860a2bb3'
Mar 06 08:10:16 kernel: integrity: Loading X.509 certificate: UEFI:MokListRT (MOKvar table)
Mar 06 08:10:16 kernel: integrity: Loaded X.509 cert 'Local build for nvidia-driver-G06 550.135 on 2024-11-26: 357f97e23805ecca10f2b93105262fb5e0ed3398'
Mar 06 08:10:16 kernel: integrity: Loading X.509 certificate: UEFI:MokListRT (MOKvar table)
Mar 06 08:10:16 kernel: integrity: Loaded X.509 cert 'Local build for nvidia-driver-G06 550.135 on 2025-01-09: c519effd9bd046f46658c43a9e505d5f51d5fd6b'
Mar 06 08:10:16 kernel: integrity: Loading X.509 certificate: UEFI:MokListRT (MOKvar table)
Mar 06 08:10:16 kernel: integrity: Loaded X.509 cert 'Local build for nvidia-driver-G06 570.86.16 on 2025-02-05: 9f625e9a9d745584532355536a33eaab5e347c18'
Mar 06 08:10:16 kernel: integrity: Loading X.509 certificate: UEFI:MokListRT (MOKvar table)
Mar 06 08:10:16 kernel: integrity: Loaded X.509 cert 'Brugha_1738906296_2e8a07ef: fac57e009b33984bf7560025a72404a745241730'
Mar 06 08:10:16 kernel: integrity: Loading X.509 certificate: UEFI:MokListRT (MOKvar table)
Mar 06 08:10:16 kernel: integrity: Loaded X.509 cert 'brugha_1739476903_d4c76bb3: d4ea54653915cbb73c0d6c52bb855147c8a581a4'
Mar 06 08:10:16 kernel: integrity: Loading X.509 certificate: UEFI:MokListRT (MOKvar table)
Mar 06 08:10:16 kernel: integrity: Loaded X.509 cert 'Universal Blue: ublue kernel: 2c25061558b5020c4b0d9ca56062e00c6cdb046a'
Mar 06 08:10:16 kernel: integrity: Loading X.509 certificate: UEFI:MokListRT (MOKvar table)
Mar 06 08:10:16 kernel: integrity: Loaded X.509 cert 'localhost-live.lan_1741044937_588be369: ad5c3003b00318825047c67cec2c22e0d502e029'
Mar 06 08:10:16 kernel: Loading compiled-in module X.509 certificates
Mar 06 08:10:16 kernel: Loaded X.509 cert 'openSUSE Secure Boot Signkey: fd9f2c12e599d67cc7f9067541adf426b712469e'

Oops my mistake - I missed…

Mar 06 08:10:16 kernel: integrity: Loaded X.509 cert 'Local build for nvidia-driver-G06 570.86.16 on 2025-02-05: 9f625e9a9d745584532355536a33eaab5e347c18'

Do you have libnvidia-egl-wayland1 installed?

Just speculating as to the underlying cause of

Mar 06 08:10:26 kded6[2362]: kmsro: driver missing
Mar 06 08:10:26 kded6[2362]: libEGL warning: egl: failed to create dri2 screen

Yes.

S  | Name                         | Summary                                       | Type
---+------------------------------+-----------------------------------------------+--------
i  | libnvidia-egl-wayland1       | The EGLStream-based Wayland external platform | package
i  | libnvidia-egl-wayland1-32bit | The EGLStream-based Wayland external platform | package

Hmmm, there is an issue with the MOK keys:

Installed driver version :

but MOK key is only for old :

1 Like

Oh, nice catch.

I went to go manually import the MOK key using the command at SDB:NVIDIA drivers - openSUSE Wiki, but interestingly I do not have any /usr/share/nvidia-pubkeys folder.

Ok, disabling secure boot lets me properly log into Wayland! I’m not sure why keys are not being generated for NVIDIA drivers (i.e., no nvidia-pubkeys folder) or how to fix that. I’d ideally like to turn on secure boot, even if it isn’t the most impactful, since it is (typically) pretty low maintenance. But I appreciate the help so far at a minimum helping me find a workaround.

1 Like