Kwin_wayland_drm: Pageflip timed out!

nvidia-bug-report.log.gz (1.5 MB)

When changing color temperature in the KDE:

KDE: System Settings > Colors & Themes > Night Light: Night light temperature slider

… the desktop on my DELL G2724D crashes. The desktop on the second monitor is not affected. It does not matter if the G2724D is setup as primary display or not.

Operating System: openSUSE Tumbleweed 20250403
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.14.0-1-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7800X3D 8-Core Processor
Memory: 31.0 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 4070/PCIe/SSE2
Driver: 570.133.07 
Monitor 1: DELL G2724D
Monitor 2: Philips Brilliance 272B

Output of dmesg:

[   95.385352] [   T1820] [drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Flip event timeout on head 1
[   98.521324] [   T1820] [drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Flip event timeout on head 1

Output of journalctl:

Apr 07 17:14:18 host kwin_wayland[1819]: kwin_wayland_drm: Pageflip timed out! This is a bug in the nvidia-drm kernel driver
Apr 07 17:14:18 host kwin_wayland[1819]: kwin_wayland_drm: Please report this at https://forums.developer.nvidia.com/c/gpu-graphics/linux
Apr 07 17:14:18 host kwin_wayland[1819]: kwin_wayland_drm: With the output of 'sudo dmesg' and 'journalctl --user-unit plasma-kwin_wayland --boot 0'
Apr 07 17:14:19 host kwin_wayland[1819]: kwin_wayland_drm: Pageflip timed out! This is a bug in the nvidia-drm kernel driver

Another user reported the same bug on KDE bug tracker:

1 Like

Hi and thanks for creating this bug report. I didn’t find your bug report spatz, so I created a duplicate on the KDE tracker 503560 – Wayland + Multiscreen + Different refresh rates + Changing brightness slider = Primary screen freezing

Dear Nvidia devs,

this bug might seem niche at first, but for gaming pc setups on Linux I believe it could be a pretty widepsread thing. A fix for this is highly appreciated.

Found out some more information:

  • Happens with different combination of screens, I tried these screen combination Monitor 1 + 2 and Monitor 1 + 3.
  • Monitor 1: AOC 24G4X 24"/61cm 1920x1080px, 18 kWh/1000h, EU Energy Class E, HDR 25 kWh/1000h. [[23.8" AOC 24G4X - Specifications][Specs]]
  • Monitor 2: Dell U2415 24", 1920x1200px, 23 W, 60 Hz,
  • Monitor 3: Acer Predator XB271HU 27"
  • Same exact thing in Gnome, except shutting down and powering up the screen didn’t recover from the freeze.
  • Only happens when refresh rate on the two screens is set to a different value. 60 Hz on one, 180 Hz on the other for example.
  • Only happens in Wayland

Here is my full bug report

Steps to reproduce

  • Nvidia GPU. Driver version currently at 570.144
  • Two (or maybe more) screens connected to the card. I have used DisplayPort cables. Tried different cable with no effect.
  • Wayland only. Couldn’t reproduce in X11.
  • KDE Plasma 6.3.4 or git-master on arch, can repro on both.
  • Set the screens to different refresh rates. Some people may wonder, why would anyone do that? Usually gamers might want to do that, to have one screen for games and other one with lower rate to save energy. Yes that seems weird if your card easily consumes 200 W when playing, but you gotta offset that somehow, right?
  • Pull up the “Brightness and Color” icon from the system tray. Change around the sliders a couple of times. Happened at second or third time for me, sometimes more often. You should see the freeze instantly because it appears on the same screen where the slider is.

BUG VIDEO DEMONSTRATION
Please see the video here: https://youtu.be/HxjlQFm3jhI
The crash happens around 01:28. To my amazement you can actually see the right screen freezing and left screen working OK. The primary screen stops updating content entirely after that.

OBSERVED RESULT
The screen selected as “Primary” screen in Display Configuarion stops updating its content. As I can’t kill my desktop session with ctrl+alt+backspace and I usually can’t log out using GUI at this point, I have to reboot system to recover.

EXPECTED RESULT
No screen is freezing.

System Information:
Operating System: Arch Linux
KDE Plasma Version: 6.3.80
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 x AMD Ryzen 7 5700X3D 8-Core Processor
Memory: 32 GiB of RAM (31.3 GiB usable)
Graphics Processor: NVIDIA GeForce RTX 2070 SUPER
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7B85
System Version: 1.0
nvidia-open-dkms 570.144-1

ADDITIONAL INFORMATION

Noteworty:

  • Bug was introduced to my system in the last couple of weeks. It definitely worked a couple months back, as I used that slider daily. Arch shipped upgrades to both nvidia drivers and KDE Plasma in the meantime.
  • Bug is not reproducible on my amdgpu laptop with external screen
  • Bug is not reproducible in X11

Installing Nvidia beta drivers (currently 575.51.02) fixed this for me. Can anyone confirm this?

hello. i was running into the same problem using wayland with the 570 drivers. updating to the 575 drivers fixed it for me too!

Hi @spatz
We have the fix already incorporated in 575.51.02 beta driver.
Please help to verify and share test results.

1 Like

Hi @strong.drum0546
Thank you for verifying it, your earlier repro video was really helpful in fixing the issue.

1 Like