Hard freezes under KDE: pageflip timed out

Hi there,

I’m a linux noob, so bear with me:

After upgrading to Kernel 7.0.0.1 i get random freezes in KDE requiring me to do a hard reset.

Cashy then boots into a black screen before user login. I have to do Ctrl+Alt+F3 to get terminal access. Via journalctl -b -1 -e i found:

Pageflip timed out! This is a bug in the nvidia-drm kernel driver

Searched the net: This issue appears to be rather widespread and with a long history. Affecting AMD Gpus, NVIDIA Gpus, Multi-Monitor-Setups etc.

The common culprit seems to be plasma-kwin_wayland. I use a RTX4080 and just one 4k monitor.

Any advice how to avoid the issue as it is rather annoying? Switch to another DE? Wait for new drivers/updates?

Thanks in advance. Here is the output from sudo cashyos-bugreport.sh: e076a71

same issue

Yeah, kwin_wayland is notoriously temperamental, and the developers of it have an unfortunate tendency to blame anything and everything else for the instability, even when other compositors work perfectly fine with the same hardware and drivers. kwin_x11 is far more stable, but unfortunately KDE is intent on dropping X11 support completely soon™.

You could try using the LTS kernel instead of 7.0, if that works, until this is fixed?

I’ll try the LTS Kernel on the next reboot and report back, if I notice an improvement.

(on a side note: i asked claude code what could be the issue. it adviced to enable modesetting in the driver. however, when i prompt

sudo cat /sys/module/nvidia_drm/parameters/modeset

it reports Y… :-))

update: same issue appeared when opening steam under the new 7.0.1-kernel.

switched to 6.18.24 LTS now and will report back. interestingly, the whole UI feels faster/snappier under 6.18. :man_shrugging:

You can often avoid having to do a hard reset by preemptively defining a global shortcut like this:

Hit Add New → Command and add:

# For KWin (on Wayland)
kwin_wayland --replace
# For Plasmashell
systemctl --user restart plasma-plasmashell

In this case, you just need the kwin one, but having a quick way to reset plasmashell can be useful in other situations.

Unfortunately, restarting kwin_wayland will crash many applications. But, at least, you don’t have to hard reset. Hit the shortcut once, if the screen freezes, and wait several seconds, don’t spam it. On X11, with kwin_x11, this works much more cleanly and just resets kwin without any nasty side-effects.

thanks for the hint - i defined a shortcut and will use it if my system freezes again!

Rule of thumb:

  • If screen freezes (including mouse) but sound works → Restart KWin
  • If taskbar or other desktop elements freeze but mouse moves → Restart Plasma

Just wanted to report back: no freezes under the LTS kernel. will stay on it for a while until the 7 kernel gets more mature…

I am on Fedora KDE Edition and I experienced a very similar issue while watching video. This happens only when I watch video.

May 06 22:11:41 nb-t5mpobc6 kernel: amdgpu 0000:c4:00.0: [drm] *ERROR* dc_dmub_srv_log_diagnostic_data: DMCUB error - collecting diagnostic data
May 06 22:11:41 nb-t5mpobc6 kernel: amdgpu 0000:c4:00.0: [drm] *ERROR* dc_dmub_srv_log_diagnostic_data: DMCUB error - collecting diagnostic data
May 06 22:11:42 nb-t5mpobc6 kernel: amdgpu 0000:c4:00.0: [drm] *ERROR* dc_dmub_srv_log_diagnostic_data: DMCUB error - collecting diagnostic data
May 06 22:11:52 nb-t5mpobc6 kernel: amdgpu 0000:c4:00.0: [drm] *ERROR* [CRTC:363:crtc-0] flip_done timed out
May 06 22:11:52 nb-t5mpobc6 kernel: amdgpu 0000:c4:00.0: amdgpu: [drm] *ERROR* [CRTC:363:crtc-0] hw_done or flip_done timed out
May 06 22:11:52 nb-t5mpobc6 kwin_wayland[2749]: Pageflip timed out! This is a bug in the amdgpu kernel driver
May 06 22:11:52 nb-t5mpobc6 kwin_wayland[2749]: Please report this at https://gitlab.freedesktop.org/drm/amd/-/issues
May 06 22:11:52 nb-t5mpobc6 kwin_wayland[2749]: With the output of 'sudo dmesg' and 'journalctl --user-unit plasma-kwin_wayland --boot 0'
May 06 22:11:53 nb-t5mpobc6 kwin_wayland[2749]: Pageflip timed out! This is a bug in the amdgpu kernel driver
May 06 22:11:53 nb-t5mpobc6 kwin_wayland[2749]: Please report this at https://gitlab.freedesktop.org/drm/amd/-/issues
May 06 22:11:53 nb-t5mpobc6 kwin_wayland[2749]: With the output of 'sudo dmesg' and 'journalctl --user-unit plasma-kwin_wayland --boot 0'
May 06 22:11:54 nb-t5mpobc6 kwin_wayland[2749]: Pageflip timed out! This is a bug in the amdgpu kernel driver
May 06 22:11:54 nb-t5mpobc6 kwin_wayland[2749]: Please report this at https://gitlab.freedesktop.org/drm/amd/-/issues
May 06 22:11:54 nb-t5mpobc6 kwin_wayland[2749]: With the output of 'sudo dmesg' and 'journalctl --user-unit plasma-kwin_wayland --boot 0'
May 06 22:11:55 nb-t5mpobc6 kwin_wayland[2749]: Pageflip timed out! This is a bug in the amdgpu kernel driver
May 06 22:11:55 nb-t5mpobc6 kwin_wayland[2749]: Please report this at https://gitlab.freedesktop.org/drm/amd/-/issues

System info:

Operating System: Fedora Linux 44
KDE Plasma Version: 6.6.4
KDE Frameworks Version: 6.25.0
Qt Version: 6.10.3
Kernel Version: 6.19.14-300.fc44.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 PRO 8840HS w/ Radeon 780M Graphics
Memory: 64 GiB of RAM (58.5 GiB usable)
Graphics Processor: AMD Radeon 780M Graphics
Manufacturer: LENOVO
Product Name: 21ME000QGE
System Version: ThinkPad P14s Gen 5 AMD

I will try an older kernel version, thanks for the tip!

Most of the stuff there is amd-specific.

But some is not like env var KWIN_DRM_NO_DIRECT_SCANOUT=1.

i am going to throw out what it was with mine with 5700xt. My power supply was going out. I bought a RM1000x ps and the problem went away. You might want to check.