KDE Plasma 6.8 Intermittent 1–2 second freezes

After updating openSUSE Tumbleweed from Plasma 6.7 to 6.8, my desktop occasionally freezes for 1–2 seconds. Both my USB mouse and laptop trackpad stop responding, and the CPU monitoring widget on my desktop also stops updating during the freeze.

I have been running on Wayland and Intel GPU for quite a while now without issues. It was first after the upgrade I got this freeze issue.

My laptop has Intel and NVIDIA graphics, using i915 and Nouveau respectively. NVIDIA’s proprietary driver is not installed. Kernel: 7.2.11-1-default.

Each freeze coincides with this journal message:

kwin_wayland: The main thread was hanging temporarily!

At session startup, I also see:

MESA: error: ZINK: failed to choose pdev
drmSetClientCap for Atomic Mode Setting failed. Using legacy mode on GPU "/dev/dri/card0"

I was already using Wayland under Plasma 6.7 without these issues, so this isn’t caused by switching from X11 to Wayland. Could changes associated with retiring the X11 session have introduced a regression affecting existing Wayland users?

Is this a known regression? What additional information would help diagnose it?

1 Like

To start with share the graphics details from inxi -Gazand glxinfo -B.

A likely graphics related issue. Next time it happens, check the journal for clues with something like…

sudo journalctl -b -k --since "10 minutes ago" |
grep -Ei 'drm|i915|nouveau|gpu|hang|reset|fault|timeout|firmware'

We’re looking for GPU hangs, failed DRM operations, timeouts, or other graphics device errors.

Also look for desktop session messages…

journalctl --user -b --since "10 minutes ago" |
grep -Ei 'kwin|plasmashell|drm|mesa|egl|opengl'
inxi -Gazand
Graphics:
  Device-1: Intel TigerLake-H GT1 [UHD Graphics] vendor: Hewlett-Packard
    driver: i915 v: kernel alternate: xe arch: Xe process: Intel 10nm
    built: 2020-21 ports: active: DP-1,eDP-1 empty: DP-2,DP-3,HDMI-A-1
    bus-ID: 00:02.0 chip-ID: 8086:9a60 class-ID: 0300
  Device-2: NVIDIA GA107GLM [RTX A2000 Mobile] vendor: Hewlett-Packard
    driver: nouveau v: kernel non-free: 550-6xx.xx+
    status: current (as of 2026-07) arch: Ampere code: GAxxx
    process: TSMC n7 (7nm) built: 2020-2023 pcie: gen: 4 speed: 16 GT/s
    lanes: 8 link-max: lanes: 16 ports: active: none empty: DP-4,DP-5,HDMI-A-2
    bus-ID: 01:00.0 chip-ID: 10de:25b8 class-ID: 0300
  Device-3: Quanta HP HD Camera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-7:3 chip-ID: 0408:5441
    class-ID: fe01 serial: <filter>
  Device-4: Lenovo Performance Camera driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.1 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-9.3:12
    chip-ID: 17ef:4839 class-ID: 0102 serial: <filter>
  Display: wayland server: X.org v: 1.21.1.24 with: Xwayland v: 24.1.13
    compositor: kwin_wayland driver: X: loaded: modesetting unloaded: vesa
    alternate: fbdev,intel,nouveau,nv,nvidia dri: iris gpu: i915
    d-rect: 7680x2160 display-ID: 1
  Monitor-1: DP-1 pos: right model: HP Z38c serial: <filter> built: 2022
    res: mode: 3840x1600 hz: 60 scale: 110% (1.1) to: 3491x1455 dpi: 111
    gamma: 1.2 size: 880x367mm (34.65x14.45") diag: 953mm (37.5") modes:
    max: 3840x1600 min: 720x400
  Monitor-2: eDP-1 pos: primary,left model: BOE Display 0x0969 built: 2020
    res: mode: 3840x2160 hz: 120 scale: 185% (1.85) to: 2076x1168 dpi: 284
    gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5") ratio: 16:9
    modes: 3840x2160
  API: EGL v: 1.5 hw: drv: intel iris platforms: device: 1 drv: iris
    device: 2 drv: swrast gbm: drv: kms_swrast surfaceless: drv: iris wayland:
    drv: iris x11: drv: iris inactive: device-0
  API: OpenGL v: 4.6 vendor: intel mesa v: 26.2.4 glx-v: 1.4
    direct-render: yes renderer: Mesa Intel UHD Graphics (TGL GT1)
    device-ID: 8086:9a60 memory: 30.28 GiB unified: yes
  API: Vulkan v: 1.4.363 layers: 1 device: 0 type: integrated-gpu name: Intel
    UHD Graphics (TGL GT1) driver: mesa intel v: 26.2.4 device-ID: 8086:9a60
    surfaces: N/A device: 1 type: cpu name: llvmpipe (LLVM 23.1.2 256 bits)
    driver: mesa llvmpipe v: 26.2.4 (LLVM 23.1.2) device-ID: 10005:0000
    surfaces: N/A
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor wl: wayland-info
    x11: xdpyinfo, xprop, xrandr
Network:
  Device-1: Intel 500 Series Family CNVi Wi-Fi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:43f0 class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
  IF-ID-1: br-0cb2b6835565 state: down mac: <filter>
  IF-ID-2: br-10949fb72a3c state: down mac: <filter>
  IF-ID-3: br-5c924c7a83d0 state: down mac: <filter>
  IF-ID-4: br-69ff430196c6 state: down mac: <filter>
  IF-ID-5: br-ca659b5306ed state: down mac: <filter>
  IF-ID-6: docker0 state: down mac: <filter>
  Info: services: NetworkManager,wpa_supplicant
Drives:
  Local Storage: total: 953.87 GiB used: 330.44 GiB (34.6%)
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital model: PC SN730
    SDBPNTY-1T00-1006 size: 953.87 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: HPS2 temp: 35.9 C scheme: GPT
  SMART: yes health: PASSED on: 1y 261d 8h cycles: 674
    read-units: 58,971,673 [30.1 TB] written-units: 159,409,991 [81.6 TB]
  Message: No optical or floppy data found.
glxinfo -B
name of display: :1
display: :1  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel (0x8086)
    Device: Mesa Intel(R) UHD Graphics (TGL GT1) (0x9a60)
    Version: 26.2.4
    Accelerated: yes
    Video memory: 31753MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics (TGL GT1)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 26.2.4
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 26.2.4
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 26.2.4
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

When the freeze happens those journalctl command does not show anything new

okt. 20 09:10:14 AAP-CND2081462 kernel: [drm] Initialized nouveau 1.4.2 for 0000:01:00.0 on minor 0
okt. 20 09:10:14 AAP-CND2081462 kernel: nouveau 0000:01:00.0: [drm] Cannot find any crtc or sizes
okt. 20 09:10:14 AAP-CND2081462 kernel: nouveau 0000:01:00.0: [drm] Cannot find any crtc or sizes
okt. 20 09:10:14 AAP-CND2081462 kernel: nouveau 0000:01:00.0: [drm] Cannot find any crtc or sizes
okt. 20 08:33:23 AAP-CND2081462 kernel: usb 3-8: reset full-speed USB device number 4 using xhci_hcd
okt. 20 08:37:01 AAP-CND2081462 kernel: usb 3-8: reset full-speed USB device number 4 using xhci_hcd

The output from this journalctl showa after each freeze
journalctl --user -b -u plasma-kwin_wayland.service --no-pager -n 150

okt. 20 08:40:43 AAP-CND2081462 kwin_wayland[2453]: The main thread was hanging temporarily!

Ok, that shows that the Intel GPU is active, and driving both displays.

Do the freezes correlate with any particular activity, such as video playback, browser scrolling, desktop effects, or waking from sleep?

I haven’t found a reliable trigger. I’ve noticed freezes while scrolling web pages using keyboard keys, moving the pointer over links, window borders or taskbar icons, and moving it over empty areas.

The whole desktop appears to pause for 1–2 seconds, including my CPU monitoring widget. Each freeze coincides with “The main thread was hanging temporarily!” in KWin’s journal.

It also happens with the external monitor disconnected. I haven’t established any correlation with video playback, desktop effects, or waking from sleep.

Is it the same for fresh new user?

The startup error you noted
MESA: error: ZINK: failed to choose pdev drmSetClientCap for Atomic Mode Setting failed. Using legacy mode on GPU "/dev/dri/card0"
may be the crux of the issue here.

KWin or Mesa attempts to probe all available DRM nodes on the system. When a laptop is running with hybrid graphics, the idle discrete GPU suspends to a deep power-saving state. During the periodic polling of the graphics devices, it triggers the idle (NVIDIA) GPU to wake up, and as KWin handles this on its main rendering thread, this hardware wake-up block likely freezes your desktop for 1–2 seconds.

One of several bug reports I’ve seen…
https://bugs.kde.org/show_bug.cgi?id=521814

From a terminal you could try forcing legacy rendering with export KWIN_DRM_NO_AMS=1 to see if it helps as a quick test, or setting the DRM device explicitly as mentioned in the bug report.

Have not tried with a fresh new user - Can give that a try

It says that bug appeared in KDE 6.7 - But I never had this problem in 6.7, only when I upgraded to 6.8

You could try temporarily preventing the NVIDIA GPU from entering power-saving state to see if that makes a difference…

echo on | sudo tee /sys/bus/pci/devices/0000:01:00.0/power/control

If the freezes stop, that would support the theory that waking the discrete GPU is causing the issue. (The change is temporary and will normally reset at reboot.)

https://download.nvidia.com/XFree86/Linux-x86_64/610.43.03/README/dynamicpowermanagement.html

Yes, but some users have reported similar as far back 6.6.4…
https://bugs.kde.org/show_bug.cgi?id=519935

Plasma 6.8 includes changes to KWin’s GPU management, so it’s possible that a change in how KWin probes or accesses secondary GPUs has exposed the problem on your system.

Core/gpumanager: add KWIN_RENDER_NODES environment variable. Commit. See bug #521814
“Backends/drm: don’t remove GPUs without outputs” — Fixes bug #519461

“Backends/drm: remove DrmGpu when it becomes inactive”

A bug report may be the best path forward.

That solved my problem. I have not had the freeze problem after changing that value.

How can I set this so it will not be reset next time I reboot?

When preventing NVIDIA GPU to enter power-saving state, would that not use more power, and use more battery when not plugged in?

Good to know. Yes, it is only a workaround, and it may increase power consumption and reduce battery life. (The actual impact depends on the laptop and GPU’s power state.)

Anyway, to make it persistent you could create a udev rule /etc/udev/rules.d/80-nvidia-runtime-pm.rules containing the following entry

ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{power/control}="on"

Save when done and reboot.

I still recommend making an upstream bug report for this
https://bugs.kde.org/

2 Likes

https://bugs.kde.org/show_bug.cgi?id=527480

2 posts were split to a new topic: Plasma Wayland Intermittent Freezing

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