Plasma6 plasmashell kscreenlocker_g freeze after waking from suspend using nvidia

Using tumbleweed, over the past 3 months I always suffer from plasmashell frequent freezes that occurs post suspend/sleep using nvidia-G06 drivers.
I’d to pkill -1 plasmashell ; plasmashell --replace & multiple times after awake or even go to virtual konsoles and pkill -1 kscreenlocker_g to be able to unlock the desktop.
The desktop frequently hangs and there seem to be performance issue after suspend that does not easily recover.
plasmashell could be seen using 100% CPU and does not respond until killed/interrupted as mentioned.
Tried to strace the stuck process I could not get any useful info though.

Sometimes also the issue occurs with a screenlock, leave it until screen it turned off for few minutes then try to unlock.

Here is output of inxi -G

Graphics:
  Device-1: Intel Raptor Lake-S GT1 [UHD Graphics 770] driver: i915 v: kernel
  Device-2: NVIDIA AD103 [GeForce RTX 4080] driver: nvidia v: 570.153.02
  Display: x11 server: X.org v: 1.21.1.15 with: Xwayland v: 24.1.6 driver: X: loaded: nvidia
    unloaded: modesetting,nouveau,vesa failed: nv gpu: i915,nvidia,nvidia-nvswitch tty: 168x40
    resolution: 1: 2560x1440 2: 2560x1440
  API: EGL v: 1.5 drivers: iris,nouveau,nvidia,swrast platforms: gbm,surfaceless,device
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: mesa v: 25.0.5 note: console (EGL sourced)
    renderer: Mesa Intel Graphics (RPL-S), NVIDIA GeForce RTX 4080/PCIe/SSE2, zink Vulkan
    1.4(NVIDIA GeForce RTX 4080 (NVIDIA_PROPRIETARY)), llvmpipe (LLVM 20.1.3 256 bits)
  API: Vulkan v: 1.4.309 drivers: N/A surfaces: N/A
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo de: kscreen-console,kscreen-doctor
    gpu: nvidia-settings, nvidia-smi, radeontop wl: swaymsg,wayland-info
    x11: xdpyinfo, xprop, xrandr

Installed nvidia packages:

$ rpm -qa "*nvidia*"
libnvidia-egl-wayland1-1.1.19-49.1.x86_64
nvidia-video-G06-32bit-570.153.02-36.1.x86_64
kernel-firmware-nvidia-20250206-3.1.noarch
nvidia-driver-G06-kmp-longterm-570.153.02_k6.12.28_1-36.1.x86_64
nvidia-xconfig-570.153.02-2.1.x86_64
nvidia-settings-570.153.02-37.1.x86_64
libnvidia-egl-gbm1-1.1.2-7.9.x86_64
nvidia-gl-G06-32bit-570.153.02-36.1.x86_64
libnvidia-egl-wayland1-32bit-1.1.19-49.1.x86_64
nvidia-libXNVCtrl-570.153.02-37.1.x86_64
nvidia-compute-G06-570.153.02-36.1.x86_64
nvidia-compute-utils-G06-570.153.02-36.1.x86_64
libnvidia-egl-gbm1-32bit-1.1.2-7.7.x86_64
nvidia-gl-G06-570.153.02-36.1.x86_64
nvidia-texture-tools-2.1.2-3.1.x86_64
nvidia-common-G06-570.153.02-36.1.x86_64
nvidia-persistenced-570.153.02-2.1.x86_64
nvidia-compute-G06-32bit-570.153.02-36.1.x86_64
libnvidia-egl-x111-1.0.1-16.1.x86_64
libnvidia-egl-x111-32bit-1.0.1-16.1.x86_64
nvidia-modprobe-570.153.02-14.1.x86_64
nvidia-driver-G06-kmp-default-570.153.02_k6.14.6_1-36.1.x86_64
nvidia-video-G06-570.153.02-36.1.x86_64

system info:

$ cat /etc/os-release 
NAME="openSUSE Tumbleweed"
# VERSION="20250522"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20250522"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
# CPE 2.3 format, boo#1217921
CPE_NAME="cpe:2.3:o:opensuse:tumbleweed:20250522:*:*:*:*:*:*:*"
#CPE 2.2 format
#CPE_NAME="cpe:/o:opensuse:tumbleweed:20250522"
BUG_REPORT_URL="https://bugzilla.opensuse.org"
SUPPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"

kernel version, kernel command line, and nvidia related dmesg stuff:

$ dmesg | grep -i nvidia
[    0.000000] [      T0] Command line: BOOT_IMAGE=/boot/vmlinuz-6.14.6-1-default root=UUID=d49c0bd0-fddd-456d-aeca-a78bc1df24f3 quiet splash showopts rd.luks.options=discard,no-read-workqueue,no-write-workqueue nouveau.modeset=0 rd.plymouth=0 plymouth.enable=0 mitigations=auto nvidia_drm.modeset=1 intel_iommu=on iommu=pt rd.driver.pre=vfio-pci irqaffinity=22,23 vfio_iommu_type1.allow_unsafe_interrupts=1 kvm.ignore_msrs=1 i915.enable_guc=3 nvidia_drm.fbdev=1 rd.driver.blacklist=nouveau
[    0.016851] [      T0] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.14.6-1-default root=UUID=d49c0bd0-fddd-456d-aeca-a78bc1df24f3 quiet splash showopts rd.luks.options=discard,no-read-workqueue,no-write-workqueue nouveau.modeset=0 rd.plymouth=0 plymouth.enable=0 mitigations=auto nvidia_drm.modeset=1 intel_iommu=on iommu=pt rd.driver.pre=vfio-pci irqaffinity=22,23 vfio_iommu_type1.allow_unsafe_interrupts=1 kvm.ignore_msrs=1 i915.enable_guc=3 nvidia_drm.fbdev=1 rd.driver.blacklist=nouveau
[    0.999777] [    T557] nvidia: loading out-of-tree module taints kernel.
[    0.999783] [    T557] nvidia: module license 'NVIDIA' taints kernel.
[    0.999785] [    T557] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[    0.999785] [    T557] nvidia: module license taints kernel.
[    1.115531] [    T557] nvidia-nvlink: Nvlink Core is being initialized, major device number 241
[    1.116310] [    T557] nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
[    1.160566] [    T557] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  570.153.02  Tue May 13 16:34:43 UTC 2025
[    1.167205] [    T557] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  570.153.02  Tue May 13 16:21:23 UTC 2025
[    1.167956] [    T557] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[    2.306774] [    T557] [drm] Initialized nvidia-drm 0.0.0 for 0000:01:00.0 on minor 0
[    2.306807] [    T557] nvidia 0000:01:00.0: vgaarb: deactivate vga console
[    2.352831] [    T557] fbcon: nvidia-drmdrmfb (fb0) is primary device
[    2.467684] [    T557] nvidia 0000:01:00.0: [drm] fb0: nvidia-drmdrmfb frame buffer device
[    8.187382] [   T2489] nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.

I’ve just made a zypper dup and sure that the issue persists.

What else can be done to troubleshoot the issue or report a bug?

I’ve also simplified the kernel boot command line options as follows and I’m still having the same issue:

quiet splash showopts rd.luks.options=discard,no-read-workqueue,no-write-workqueue rd.plymouth=0 plymouth.enable=0 mitigations=auto

The issue for sure is nvidia related, as when I boot without nvidia card, no problem occurs.

@Raviu can you show the output from cat /proc/driver/nvidia/params | sort and inxi -GSaz

$ cat /proc/driver/nvidia/params 
ResmanDebugLevel: 4294967295
RmLogonRC: 1
ModifyDeviceFiles: 1
DeviceFileUID: 0
DeviceFileGID: 484
DeviceFileMode: 432
InitializeSystemMemoryAllocations: 1
UsePageAttributeTable: 4294967295
EnableMSI: 1
EnablePCIeGen3: 0
MemoryPoolSize: 0
KMallocHeapMaxSize: 0
VMallocHeapMaxSize: 0
IgnoreMMIOCheck: 0
EnableStreamMemOPs: 0
EnableUserNUMAManagement: 1
NvLinkDisable: 0
RmProfilingAdminOnly: 1
PreserveVideoMemoryAllocations: 1
EnableS0ixPowerManagement: 1
S0ixPowerManagementVideoMemoryThreshold: 256
DynamicPowerManagement: 3
DynamicPowerManagementVideoMemoryThreshold: 200
RegisterPCIDriver: 1
EnablePCIERelaxedOrderingMode: 0
EnableResizableBar: 0
EnableGpuFirmware: 18
EnableGpuFirmwareLogs: 2
RmNvlinkBandwidthLinkCount: 0
EnableDbgBreakpoint: 0
OpenRmEnableUnsupportedGpus: 1
DmaRemapPeerMmio: 1
ImexChannelCount: 2048
CreateImexChannel0: 0
GrdmaPciTopoCheckOverride: 0
RegistryDwords: ""
RegistryDwordsPerDevice: ""
RmMsg: ""
GpuBlacklist: ""
TemporaryFilePath: "/var/tmp"
ExcludedGpus: ""
$ sudo inxi -GSaz
System:
  Kernel: 6.14.6-1-default arch: x86_64 bits: 64 compiler: gcc v: 14.2.1 clocksource: tsc
    avail: hpet,acpi_pm parameters: BOOT_IMAGE=/boot/vmlinuz-6.14.6-1-default
    root=UUID=d49c0bd0-fddd-456d-aeca-a78bc1df24f3 quiet splash showopts
    rd.luks.options=discard,no-read-workqueue,no-write-workqueue rd.plymouth=0 plymouth.enable=0
    mitigations=auto
  Console: pty pts/14 DM: 1: LightDM v: 1.32.0 note: stopped 2: SDDM note: stopped
    Distro: openSUSE Tumbleweed 20250522
Graphics:
  Device-1: Intel Raptor Lake-S GT1 [UHD Graphics 770] vendor: Micro-Star MSI driver: i915
    v: kernel alternate: xe arch: Xe process: Intel 10nm built: 2020-21 ports: active: HDMI-A-1
    empty: DP-1, DP-2, HDMI-A-2, HDMI-A-3, HDMI-A-4 bus-ID: 00:02.0 chip-ID: 8086:a780
    class-ID: 0380
  Device-2: NVIDIA AD103 [GeForce RTX 4080] vendor: Micro-Star MSI driver: nvidia v: 570.153.02
    alternate: nouveau,nvidia_drm non-free: 550/565.xx+ status: current (as of 2025-01)
    arch: Lovelace code: AD1xx process: TSMC n4 (5nm) built: 2022+ pcie: gen: 4 speed: 16 GT/s
    lanes: 16 ports: active: none off: DP-5 empty: DP-3,DP-4,HDMI-A-5 bus-ID: 01:00.0
    chip-ID: 10de:2704 class-ID: 0300
  Display: x11 server: X.org v: 1.21.1.15 with: Xwayland v: 24.1.6 compositor: kwin_x11 driver:
    X: loaded: modesetting unloaded: vesa alternate: fbdev,intel dri: iris
    gpu: i915,nvidia,nvidia-nvswitch tty: 168x40
  Monitor-1: DP-5 model: ViewSonic VX3276-QHD serial: <filter> built: 2020 res: 2560x1440
    dpi: 93 gamma: 1.2 size: 698x393mm (27.48x15.47") diag: 801mm (31.5") ratio: 16:9 modes:
    max: 2560x1440 min: 640x480
  Monitor-2: HDMI-A-1 model: ViewSonic VX3211-2K serial: <filter> built: 2022 res: 2560x1440
    dpi: 93 gamma: 1.2 size: 698x392mm (27.48x15.43") diag: 801mm (31.5") ratio: 16:9 modes:
    max: 2560x1440 min: 720x240
  API: EGL v: 1.5 hw: drv: intel iris drv: nvidia nouveau drv: nvidia platforms: device: 0
    drv: nvidia device: 1 drv: nouveau device: 2 drv: iris device: 3 drv: swrast gbm: drv: nvidia
    surfaceless: drv: nvidia inactive: wayland,x11
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: mesa v: 25.0.5 note: console (EGL sourced)
    renderer: NVIDIA GeForce RTX 4080/PCIe/SSE2, zink Vulkan 1.4(NVIDIA GeForce RTX 4080
    (NVIDIA_PROPRIETARY)), Mesa Intel Graphics (RPL-S), llvmpipe (LLVM 20.1.3 256 bits)
  API: Vulkan v: 1.4.309 layers: 2 device: 0 type: discrete-gpu name: NVIDIA GeForce RTX 4080
    driver: N/A device-ID: 10de:2704 surfaces: N/A device: 1 type: integrated-gpu
    name: Intel Graphics (RPL-S) driver: N/A device-ID: 8086:a780 surfaces: N/A device: 2
    type: cpu name: llvmpipe (LLVM 20.1.3 256 bits) driver: N/A device-ID: 10005:0000
    surfaces: N/A
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo de: kscreen-console,kscreen-doctor
    gpu: nvidia-settings, nvidia-smi, radeontop wl: swaymsg,wayland-info
    x11: xdpyinfo, xprop, xrandr

@malcolmlewis
Here is a full nvidia-bug-report.sh output
Seems attachments are not allowed here.
https://transfer.it/t/SLOs465XWR4L

I’ve reported it on nvidia too

I can confirm the bug on Tumbleweed longterm-6.12.x kernel too

@Raviu So I see your using S0xi on this system? EnableS0ixPowerManagement: 1

I use Intel ARC/RTX4000 on this system with GNOME but no S0ix…

My boot options are fbdev=1 nvidia_drm.modeset=1 rd.driver.blacklist=nouveau

The other thing I do is make sure libvulkan_intel isn’t installed and use a /etc/environment file containing `MESA_VK_DEVICE_SELECT=“10de:1eb1” for my RTX4000 so it’s used for vulkan and not the intel.

Now I use the run files for cuda/driver (MIT/GPL), but shouldn’t be an rpm issue.

I only run Wayland, you could try switching to that instead of X11.

I note on your earlier output guc=3, that is not needed on newer intel GPU’s it’s detected/used…

Something like suse-prime and bbswitch hasn’t been installed?

@malcolmlewis

So I see your using S0xi on this system? EnableS0ixPowerManagement: 1

Actually I do not know what this is, I found it enabled by

rpm -qf /usr/lib/modprobe.d/50-nvidia.conf
nvidia-common-G06-570.153.02-36.1.x86_64

Disabled and rebooted, made sure it’s off

$ grep S0 /proc/driver/nvidia/params 
EnableS0ixPowerManagement: 0

My boot options are fbdev=1 nvidia_drm.modeset=1 rd.driver.blacklist=nouveau

I’ve also applied your boot options now cat /proc/cmdline shows

quiet splash showopts rd.luks.options=discard,no-read-workqueue,no-write-workqueue rd.plymouth=0 plymouth.enable=0 mitigations=auto fbdev=1 nvidia_drm.modeset=1 rd.driver.blacklist=nouveau

The other thing I do is make sure libvulkan_intel isn’t installed and use a /etc/environment file containing `MESA_VK_DEVICE_SELECT=“10de:1eb1” for my RTX4000 so it’s used for vulkan and not the intel.

I cannot remove libvulkan_intel as it’s required by wine packages, however I’ve applied MESA_VK_DEVICE_SELECT

$ echo $MESA_VK_DEVICE_SELECT 
10de:2704

I’d several issues previously with wayland, and I know that X11 is better supported for nvidia up until now at least.

Something like suse-prime and bbswitch hasn’t been installed?

No, because I’m using dual multi-seat setup, each using its GPU.

By the way, I know at least 3 friends suffering from the same plasma6 freezing issue for few months already too using Tumbleweed on different laptop models with nvidia - and suse-prime -

I forgot to mention that the issue persists after applying all your recommended changes.

@Raviu Suggest you try Wayland as going forward this is what is supported…

Likewise if running newer Intel/AMD/Nvidia cards use switcherooctl, not suse-prime.

I don’t run Plasma so it could be related to the Desktop Environment… I have three Intel/Nvidia setups running GNOME without issues.

Tested on wayland, the issue seems to be resolved. I tried 2 times, plsama does not freeze, mpv restores video fine.
However I got other issues, like firefox not scaling well on my 1440p monitor. I tried the solution in HiDPI - ArchWiki to set widget.wayland.fractional-scale.enabled , but when I scale over 125% the fonts are blur. I did not have such issue on X11

@Raviu I suggest you start a new thread on the HiDPI issue.