Issues with kernel 6.11.0-1-default and Nvidia drivers

> inxi -GSaz
System:
  Kernel: 6.10.11-1-default arch: x86_64 bits: 64 compiler: gcc v: 14.2.0
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.10.11-1-default
    root=UUID=1736e8b1-acbf-467d-899a-564c1a6926af quiet security=selinux
    selinux=1 amd_pstate=active preempt=full nohz=on threadirqs psi=1
    pci=realloc pci=pcie_bus_perf pcie_port_pm=off
    pcie_aspm.policy=performance nvme.use_threaded_interrupts=1
    nvidia_drm.fbdev=1 nvidia.NVreg_EnableResizableBar=1
    snd_hda_intel.power_save=0 snd_hda_intel.align_buffer_size=0
    mitigations=auto
  Desktop: KDE Plasma v: 6.1.5 tk: Qt v: N/A info: frameworks v: 6.6.0
    wm: kwin_wayland tools: avail: xscreensaver vt: 2 dm: SDDM Distro: openSUSE
    Tumbleweed 20240927
Graphics:
  Device-1: NVIDIA GA102 [GeForce RTX 3090] vendor: PNY driver: nvidia
    v: 550.107.02 alternate: nouveau,nvidia_drm non-free: 550.xx+ status: current
    (as of 2024-09; EOL~2026-12-xx) arch: Ampere code: GAxxx
    process: TSMC n7 (7nm) built: 2020-2023 pcie: gen: 4 speed: 16 GT/s
    lanes: 16 ports: active: none off: DP-1,HDMI-A-1 empty: DP-2,DP-3
    bus-ID: 07:00.0 chip-ID: 10de:2204 class-ID: 0300
  Device-2: Microdia Webcam Vitade AF driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-2.3:6
    chip-ID: 0c45:6366 class-ID: 0102 serial: <filter>
  Display: wayland server: X.org v: 1.21.1.12 with: Xwayland v: 24.1.2
    compositor: kwin_wayland driver: X: loaded: nvidia gpu: nvidia
    d-rect: 4480x2520 display-ID: 0
  Monitor-1: DP-1 pos: top-right res: 2560x1440 size: N/A modes: N/A
  Monitor-2: HDMI-A-1 pos: bottom-l res: 1920x1080 size: N/A modes: N/A
  API: EGL v: 1.5 hw: drv: nvidia platforms: device: 0 drv: nvidia device: 2
    drv: swrast gbm: drv: nvidia surfaceless: drv: nvidia wayland: drv: nvidia
    x11: drv: zink inactive: device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 550.107.02
    glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce RTX 3090/PCIe/SSE2
    memory: 23.44 GiB display-ID: :0.0
  API: Vulkan v: 1.3.290 layers: 10 device: 0 type: discrete-gpu
    name: NVIDIA GeForce RTX 3090 driver: N/A device-ID: 10de:2204
    surfaces: xcb,xlib,wayland

This is how it normally sits. I did try it with a minimal set of kernel params, so it’s not all that fluff there :wink: Specifically, they were:
quiet security=selinux selinux=1 amd_pstate=active psi=1 mitigations=auto

Hopefully something else stick out, here.

@pallaswept a wide selection of options there :wink: So the Nvidia driver is in use and working, so likely a Desktop Environment problem, or maybe selinux…

There is nothing turned on… active: none off: DP-1,HDMI-A-1 should see something like active: HDMI-A-1,HDMI-A-3,HDMI-A-4

I just realized that only wayland is causing problems, x11 works for me!

1 Like

Strange about the monitors. Both of those are on, which is nice because I’m watching a game on one and typing to you on the other :slight_smile:

Haha yeh, I admit I was tempted to just edit it, since I knew it had been tested without all that noise, but I wanted to shoot straight and give you what you asked for. I did reboot and test it one more time just to be certain that it works the same without, so you can safely pretend all those parms dont exist.

This installation has been riding the “are we nvidia yet” train for a couple of years, and half the kernel options are accumulated workarounds for various bugs that have been fixed meanwhile. It’s my intention to reinstall from scratch when this driver works, so I’ll clean everything then. The ‘nuke it from orbit’ approach to a stock install :space_invader:

Odd, OP’s logs are for X11 failing. Perhaps you have a different issue?

That seemed promising but permissive mode didn’t help. I wonder if maybe I need to set permissive and reinstall the driver, as in, maybe selinux interfered with the build or the installation. I’ll try that tomorrow.

Obviously this is common but not widespread, I really don’t feel the need to ring an alarm bell here now, but I don’t know where to log this against…kernel, driver, DE, selinux… other? I guess we’ll figure it out eventually :smiley:

Nvidia has commented this problem: DRM fbdev / Wayland presentation support with Linux kernel 6.11 and above - Linux - NVIDIA Developer Forums

5 Likes

@ernold Hi and welcome to the Forum :smile:
Good link, thanks :smile:

@pallaswept that would be the case for you… I’ve only used fbdev=1 nvidia_drm.nomodeset=1 for nvidia as primary GPU.

1 Like

AHA! It’s not that, but you gave me the hint.

Link above, is not us. It describes black screen, with inability to render, where I see lots of distorted colourful imagery. I tried without that option regardless, to no avail. Thanks tho ernold!

fbdev and nvidia_drm.nomodeset are not existing parameters. nvidia_drm.fbdev is (see above link), and nvidia_drm.modeset, is, and is usually required for any GUI and USED to be packaged with the driver in a conf file which is why I removed it from my command line when I started testing 555/560 drivers - yes, I do actually clean up those params if the need presents itself :smiley: You gave me the hint to try it and I’m happy to say it worked!

So, I don’t know what happened to 50-nvidia-default.conf but I’m going to go make my kernel command line longer again. This is what I get for cleaning up my mess on my PC. I’ never cleaning again! :joy:

THANK YOU ALL for helping!!
@Maverick1024 @ramdomPTM pinging you so you notice this has the fix in it

Separate post for important question:

What is ‘stock’ here?

or:
It’s obvious that all of you have something specifying the modeset param for the nvidia_drm module. What is that something?

Do you all have the old config file still? Is there a new config file that didn’t roll out to a few of us? I know from your reports that you didn’t put it in your command lines, and obviously the files are not in the current package or I’d have them, so what unpackaged file do you have which provides this parameter?

Thanks for the tip, but actually I experimented carefully with only one of nvidia tumbleweed and cuda repo enabled and all driver package installed solely from that one repo. I do know the importance of not mixing repos here, and just want to test if newer display drivers from cuda repo would work. Still, thank you for your notification!

Me too. For now I’m switching to Plasma X11 session.

I do have options nvidia-drm modeset=1 fbdev=1 in /usr/lib/modprobe.d/50-nvidia-default.conf. If I read it right, the problem is that nvidia_drm.fbdev=1 is no longer valid. Please enlighten me what kernel parameters do I need to add to boot.

Aha, the file has moved, that’s why I could only find the .rpmsave… Thanks!
Strange though, I also have that file… and it’s obviously not working because I needed the param in my kernel command line.

Ahh, that would make sense, I guess the implication here is, that KDE was relying on fbdev functoning, which is why mine worked, because I had that on… Until it broke in 6.11, and then without being able to use fbdev, KDE relies on kms, and thus requires the nvidia_drm.modeset=1 to replace the now-missing fbdev.

This is what I have for the nvidia modules in my kernel command line, right now:

nvidia_drm.modeset=1 nvidia_drm.fbdev=1 nvidia.NVreg_EnableResizableBar=1

Pretty sure that last one is not relevant, the second one is not functional (6.11/550.107 bug), and the first one is redundant because it’s in that config file. So, I’ve zero clue how it became broken or how I’ve fixed it.

1 Like

Hey this is my first post here and I just wanted to thank you/confirm a lot of things you’ve said here. I found this thread way too late as a relatively new user to linux/tumbleweed. In one of your original replies you mentioned how weird the behavior was with the semi-unresponsive plasma, and I suspect this is exactly what is happening on my machine because it sounded similar to my issue.

I don’t really tweak things or customize settings, I use “Stock” KDE tumbleweed as it were. I checked a lot of things people suggested here just from my own troubleshooting experiences; for example reinstalling drivers, checking different repos and even installing the 560 driver. Nothing was working for me, though I did notice x11 worked like others suggested. I rolled back to 6.10 and figured I would wait or see something on reddit but started to sweat when I didn’t, which brought me here.

Anyway, I can confirm that adding nvidia_drm.modeset=1 nvidia_drm.fbdev=1 to my kernel command line worked for me, so thanks!

Also as an additional piece of confirmation I too have nvidia-drm modeset=1 fbdev=1 in /usr/lib/modprobe.d/50-nvidia-default.conf

2 Likes

It depends on your definition of the “latest”. Technically driver is built for the target of /usr/src/linux-obj/x86_64/default symlink. This link is created by the kernel-default-devel package which has been installed last. That in your case this package also has the latest version is just a coincidence (although that is the most common case during normal update workflow).

You can do one of

  • Manually adjust symlinks /usr/src/linux and /usr/src/linux-obj/x86_64/default to point to the desired version and install the driver package.
  • Or - if you already installed the driver package - simply reinstall kernel-default-devel for the desired version. Assuming this package is still available of course (which probably is no more the case for Tumbleweed).

In both cases you will be left with symlinks pointing to some older kernel, which may result in driver update not building driver for the latest kernel version. Same problem in reverse direction.

It would be nice to have a script that builds driver for the specific kernel version and that could be used both by driver package and manually. Currently driver packages inline all necessary actions. Any takers?

Braves of heart could look at the output of rpm -q --trigggers nvidia-driver-G06-kmp-default and manually do the same.

1 Like

Hi,

so the best would be to wait for an updated NVIDIA driver? I switched in the meantime to X11 - X11 works for me without problems.

Best regards,
bmwGTR

Yes, adding “nvidia_drm.modeset=1” and “nvidia_drm.fbdev=1” to grub did the trick for me (with 6.11 & 550.107.02 & RTX4080 & plasma & wayland), too! So it seems that “50-nvidia-default.conf” (which contains those settings) is ignored!

1 Like

If drivers are loaded in initrd, this file (or any file with the correct content) has to be present there.

Looks like “50-nvidia-default.conf” was indeed included in initrd as part of the 6.11 upgrade on my working system:

LT-B:~ # lsinitrd |grep nvidia
-rw-r--r--   1 root     root         1797 Sep 13 15:27 usr/lib/modprobe.d/50-nvidia-default.conf
-rw-r--r--   1 root     root           18 Aug 12 13:51 usr/lib/modprobe.d/nvidia-default.conf
-rw-r--r--   1 root     root        14037 Sep 13 15:27 usr/lib/modules/6.11.0-1-default/kernel/drivers/hid/hid-nvidia-shield.ko.zst
-rw-r--r--   1 root     root         3029 Sep 13 15:27 usr/lib/modules/6.11.0-1-default/kernel/drivers/usb/typec/altmodes/typec_nvidia.ko.zst
-rw-r--r--   1 root     root      2755432 Sep 13 15:27 usr/lib/modules/6.11.0-1-default/updates/nvidia-modeset.ko
-rw-r--r--   1 root     root      6298288 Sep 13 15:27 usr/lib/modules/6.11.0-1-default/updates/nvidia-uvm.ko
LT-B:~ #

Worth checking on systems that are not working properly?

1 Like

I also have that file. In addition to those entries, the same command returns a great number of firmware files for me. I’ll trim the top:

....many hundreds of these...
-rw-r--r--   5 root     root          144 Sep 13 23:27 usr/lib/firmware/nvidia/tu117/gr/sw_veid_bundle_init.bin.xz
lrwxrwxrwx   1 root     root           12 Sep 13 23:27 usr/lib/firmware/nvidia/tu117/gsp -> ../tu116/gsp
drwxr-xr-x   2 root     root            0 Sep 13 23:27 usr/lib/firmware/nvidia/tu117/nvdec
lrwxrwxrwx   1 root     root           33 Sep 13 23:27 usr/lib/firmware/nvidia/tu117/nvdec/scrubber.bin.xz -> ../../tu116/nvdec/scrubber.bin.xz
drwxr-xr-x   2 root     root            0 Sep 13 23:27 usr/lib/firmware/nvidia/tu117/sec2
lrwxrwxrwx   1 root     root           28 Sep 13 23:27 usr/lib/firmware/nvidia/tu117/sec2/desc.bin.xz -> ../../tu116/sec2/desc.bin.xz
lrwxrwxrwx   1 root     root           29 Sep 13 23:27 usr/lib/firmware/nvidia/tu117/sec2/image.bin.xz -> ../../tu116/sec2/image.bin.xz
lrwxrwxrwx   1 root     root           27 Sep 13 23:27 usr/lib/firmware/nvidia/tu117/sec2/sig.bin.xz -> ../../tu116/sec2/sig.bin.xz
-rw-r--r--   1 root     root         1797 Sep 13 23:27 usr/lib/modprobe.d/50-nvidia-default.conf
-rw-r--r--   1 root     root           18 Aug 12 21:51 usr/lib/modprobe.d/nvidia-default.conf
-rw-r--r--   1 root     root        14037 Sep 13 23:27 usr/lib/modules/6.11.0-1-default/kernel/drivers/hid/hid-nvidia-shield.ko.zst
-rw-r--r--   1 root     root         3029 Sep 13 23:27 usr/lib/modules/6.11.0-1-default/kernel/drivers/usb/typec/altmodes/typec_nvidia.ko.zst
-rw-r--r--   1 root     root       263288 Sep 13 23:27 usr/lib/modules/6.11.0-1-default/updates/nvidia-drm.ko
-rw-r--r--   1 root     root     87871096 Sep 13 23:27 usr/lib/modules/6.11.0-1-default/updates/nvidia.ko
-rw-r--r--   1 root     root      2755432 Sep 13 23:27 usr/lib/modules/6.11.0-1-default/updates/nvidia-modeset.ko
-rw-r--r--   1 root     root      6298288 Sep 13 23:27 usr/lib/modules/6.11.0-1-default/updates/nvidia-uvm.ko

OK, I have “zypper locked” those since they are not needed by the installed GPU.

1 Like

Same problem here as described by @Micha and others.

X11 works fine, Wayland didn’t.

As @BotB-19 wrote editing Grub and adding those parameters fixed it.