Kwin_wayland_drm hanging temporarily

Hello!
Lately I’ve been getting these micro freezes, where the system freezes for some seconds. The log shows;

Kwin_wayland[1091]: kwin_wayland_drm: The main thread was hanging temporarily!

plasmashell 6.3.6
kwin 6.3.6

Edit : since the last freeze, I rebooted, because I noticed that while I had the system up to date, I still had to reboot for the latest kernel to come in use. It is now 6.15.6-1 that is active.

inxi -Faz
System:
  Kernel: 6.15.3-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 15.1.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-6.15-x86_64
    root=UUID=056bd6a9-c464-4351-83f3-fae7ba0af99a rw rootflags=subvol=@
    quiet splash resume=UUID=2fb0f355-cde7-4eb9-9259-9822d28c5af2
    udev.log_priority=3
  Desktop: KDE Plasma v: 6.3.6 tk: Qt v: N/A info: frameworks v: 6.15.0
    wm: kwin_wayland vt: 1 dm: SDDM Distro: Manjaro base: Arch Linux
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: ROG CROSSHAIR VIII FORMULA v: Rev X.0x
    serial: <superuser required> part-nu: SKU uuid: <superuser required>
    UEFI: American Megatrends v: 5002 date: 01/13/2025
Battery:
  ID-1: hidpp_battery_1 charge: 69% condition: N/A volts: 3.9 min: N/A
    model: Logitech G502 LIGHTSPEED Wireless Gaming Mouse type: N/A
    serial: <filter> status: discharging
CPU:
  Info: model: AMD Ryzen 7 5800X bits: 64 type: MT MCP arch: Zen 3+ gen: 3
    level: v3 note: check built: 2022 process: TSMC n6 (7nm) family: 0x19 (25)
    model-id: 0x21 (33) stepping: 0 microcode: 0xA201030
  Topology: cpus: 1x dies: 1 clusters: 1 cores: 8 threads: 16 tpc: 2
    smt: enabled cache: L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB
    desc: 8x512 KiB L3: 32 MiB desc: 1x32 MiB
  Speed (MHz): avg: 1754 min/max: 556/4854 boost: enabled scaling:
    driver: amd-pstate-epp governor: performance cores: 1: 1754 2: 1754 3: 1754
    4: 1754 5: 1754 6: 1754 7: 1754 8: 1754 9: 1754 10: 1754 11: 1754 12: 1754
    13: 1754 14: 1754 15: 1754 16: 1754 bogomips: 121611
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: ghostwrite status: Not affected
  Type: indirect_target_selection status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow mitigation: Safe RET
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines; IBPB: conditional; IBRS_FW;
    STIBP: always-on; RSB filling; PBRSB-eIBRS: Not affected; BHI: Not
    affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Navi 14 [Radeon RX 5500/5500M /
    Pro 5500M] vendor: ASRock driver: amdgpu v: kernel arch: RDNA-1
    code: Navi-1x process: TSMC n7 (7nm) built: 2019-20 pcie: gen: 4
    speed: 16 GT/s lanes: 16 ports: active: DP-1,HDMI-A-1 empty: DP-2,DP-3
    bus-ID: 0d:00.0 chip-ID: 1002:7340 class-ID: 0300
  Display: wayland server: X.org v: 1.21.1.18 with: Xwayland v: 24.1.8
    compositor: kwin_wayland driver: X: loaded: amdgpu
    unloaded: modesetting,radeon alternate: fbdev,vesa dri: radeonsi
    gpu: amdgpu d-rect: 5760x3360 display-ID: 0
  Monitor-1: DP-1 pos: top-right model: LG (GoldStar) 27GN950
    serial: <filter> built: 2021 res: mode: 3840x2160 hz: 144 scale: 155% (1.55)
    to: 2477x1394 dpi: 163 gamma: 1.2 size: 600x340mm (23.62x13.39")
    diag: 690mm (27.2") ratio: 16:9 modes: max: 3840x2160 min: 640x480
  Monitor-2: HDMI-A-1 pos: bottom-l model: Idek Iiyama PLE2607WS
    serial: <filter> built: 2008 res: mode: 1920x1200 hz: 60 scale: 100% (1)
    dpi: 89 gamma: 1.2 size: 550x344mm (21.65x13.54") diag: 649mm (25.5")
    ratio: 16:10 modes: max: 1920x1200 min: 720x400
  API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
    device: 1 drv: swrast gbm: drv: kms_swrast surfaceless: drv: radeonsi
    wayland: drv: radeonsi x11: drv: radeonsi
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 25.1.5-arch1.1
    glx-v: 1.4 direct-render: yes renderer: AMD Radeon RX 5500 XT (radeonsi
    navi14 LLVM 20.1.7 DRM 3.63 6.15.3-1-MANJARO) device-ID: 1002:7340
    memory: 7.81 GiB unified: no display-ID: :1.0
  API: Vulkan v: 1.4.313 layers: 4 device: 0 type: discrete-gpu name: AMD
    Radeon RX 5500 XT (RADV NAVI14) driver: mesa radv v: 25.1.5-arch1.1
    device-ID: 1002:7340 surfaces: N/A
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor wl: wayland-info x11: xdpyinfo,xprop
Audio:
  Device-1: Advanced Micro Devices [AMD/ATI] Navi 10 HDMI Audio vendor: ASRock
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 0d:00.1 chip-ID: 1002:ab38 class-ID: 0403
  Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio
    vendor: ASUSTeK driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s
    lanes: 16 bus-ID: 0f:00.4 chip-ID: 1022:1487 class-ID: 0403
  API: ALSA v: k6.15.3-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.4.6 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Aquantia AQC111 NBase-T/IEEE 802.3bz Ethernet [AQtion]
    vendor: ASUSTeK driver: atlantic v: kernel pcie: gen: 3 speed: 8 GT/s
    lanes: 1 link-max: lanes: 4 port: N/A bus-ID: 05:00.0 chip-ID: 1d6a:11b1
    class-ID: 0200
  IF: enp5s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Intel I211 Gigabit Network vendor: ASUSTeK driver: igb v: kernel
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 06:00.0
    chip-ID: 8086:1539 class-ID: 0200
  IF: enp6s0 state: down mac: <filter>
  Device-3: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 bus-ID: 07:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlp7s0 state: down mac: <filter>
  IF-ID-1: wg0-mullvad state: unknown speed: 10000 Mbps duplex: full
    mac: N/A
  Info: services: NetworkManager, systemd-timesyncd, wpa_supplicant
Bluetooth:
  Device-1: Intel AX200 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-6:4 chip-ID: 8087:0029
    class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 2 state: up address: N/A
  Device-2: Microsoft Nano Transceiver v1.0 for Bluetooth
    driver: hid-generic,usbhid type: USB rev: 2.0 speed: 12 Mb/s lanes: 1
    mode: 1.1 bus-ID: 3-3.4:9 chip-ID: 045e:0745 class-ID: 0300
Drives:
  Local Storage: total: 8.3 TiB used: 976.19 GiB (11.5%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:3 vendor: Samsung model: SSD 990 PRO 4TB
    size: 3.64 TiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 4B2QJXD7 temp: 48.9 C
    scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Samsung model: SSD 990 PRO 4TB
    size: 3.64 TiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 4B2QJXD7 temp: 48.9 C
    scheme: GPT
  ID-3: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 830 Series
    size: 119.24 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 3B1Q scheme: MBR
  ID-4: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 860 QVO 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 1B6Q scheme: GPT
Partition:
  ID-1: / raw-size: 247.56 GiB size: 247.56 GiB (100.00%)
    used: 165.75 GiB (67.0%) fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:6
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%)
    used: 616 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:4
  ID-3: /home raw-size: 3.49 TiB size: 3.44 TiB (98.40%)
    used: 810.17 GiB (23.0%) fs: ext4 dev: /dev/nvme1n1p1 maj-min: 259:1
  ID-4: /var/log raw-size: 247.56 GiB size: 247.56 GiB (100.00%)
    used: 165.75 GiB (67.0%) fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:6
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: yes
    compressor: zstd max-pool: 20%
  ID-1: swap-1 type: partition size: 63.5 GiB used: 273.2 MiB (0.4%)
    priority: -2 dev: /dev/nvme0n1p2 maj-min: 259:5
Sensors:
  System Temperatures: cpu: 44.0 C mobo: 39.0 C gpu: amdgpu temp: 50.0 C
    mem: 0.0 C
  Fan Speeds (rpm): cpu: 783 gpu: amdgpu fan: 0
Info:
  Memory: total: 32 GiB available: 31.25 GiB used: 4.97 GiB (15.9%)
  Processes: 451 Power: uptime: 4d 4h 15m states: freeze,mem,disk
    suspend: deep avail: s2idle wakeups: 0 hibernate: platform avail: shutdown,
    reboot, suspend, test_resume image: 12.48 GiB services: org_kde_powerdevil,
    power-profiles-daemon, upowerd Init: systemd v: 257 default: graphical
    tool: systemctl
  Packages: pm: pacman pkgs: 1436 libs: 373 tools: pamac,yay pm: flatpak
    pkgs: 0 Compilers: clang: 20.1.7 gcc: 15.1.1 Shell: Zsh v: 5.9 default: Bash
    v: 5.2.37 running-in: konsole inxi: 3.3.38

Mod edit:- Title made more search-friendly; command output placed within preformatted text box. No charge. In future please format code or command output to forum guidelines.
@mod : thank you for your edition. I’ll try to remember that.

It seems to be related to the following bug report upstream (KDE);

kwin_wayland[6386]: kwin_wayland_drm: The main thread was hanging temporarily! appears several times within the discussion; and I note there are several other reports that seem closely related.

I presume this might be fixed with 6.4, but all one can do is wait for some positive news. You might keep an eye on the Unstable Update announcement threads in case they give any early indication, and of course keep monitoring whatever KDE might have to say on the matter.

@scotty65 maintains a thread (or two) which might also be worth bookmarking;

Regards.

3 Likes

It will be both fixed with 6.4 and with ddcutil 2.2.1 (10 July 2025).

Could you perhaps add some more information, and/or a link to wherever this is documented?

The KDE bug report you’ve mentioned says “Fixed in 6.4”.
It also mentions a potentially linked bug fixed in ddcutil 2.2.1.
Though I still get the freeze with ddcutil 2.2.1 (to be confirmed as I’m not sure I had restarted after the update).

Ah, I see. I thought you may have found additional information. Indeed (it says) “Fixed in 6.4”.

The issue with ddcutil was apparently fixed back in March. I’m guessing the commenter was reaching for straws in suggesting it was related to 501073;

  • ddcutil-2.2.1-1 is in Testing and Unstable branches currently; though Stable only has 2.2.1-0.

The same commenter later found this;
“It seems the problem is already being solved here”:

I don’t know what’s the difference between ddcutil-2.2.1-0 and ddcutil-2.2.1-1, but the recent ddcutil-2.2.1-0 update didn’t fix it for me as I just had a freeze again, so hopefully Plasma 6.4 will.