Whole system freezes when not moving mouse

Fedora 41
KDE Spin
Last updated yesterday
Kernel version 6.12.8-200.fc41.x86_64
BIOS version 0.0.3.5
AMD Ryzen™ 7040 Series

Sometimes, when I stop moving my mouse, the system stops responding. I’m not sure if it’s just the video output that freezes because YouTube videos work fine, but when I tried to play Factorio, the game ran at 60 FPS stable when VSync was enabled, even though the display showed maybe 10 frames per second.

This happens with “regular” programs too. For example, when I type something into the Plasma start menu, a few letters show up in the search bar, but then the display freezes, and when I move my mouse, everything updates again. Another example is Alacritty (even though I haven’t tried any other terminals), I can be in the middle of typing a command and the same thing happens; the screen stops updating, I move my mouse, it gets updated again and then freezes once again after I stop moving the cursor.

It doesn’t matter if I move the cursor using a physical mouse, whether wired or wireless, or the touchpad.

Will try to reproduce on some live distro (like EndeavourOS) and Windows after I get to installing it - which will be in a few days, probably.

I believe this is fixed if you add the following kernel parameter

amdgpu.dcdebugmask=0x400

In kernel 6.12 I had similar issues with the Logitech USB dongle on FW - both external mouse and keyboard stopped working after I stopped using/moving them - some kind of an early device sleep. The kernel parameter above didn’t help me, had to re-pair them with Bluetooth to work around the issue.

This is an issue with how the drivers handle VRR/adaptive sync. Note that it is not a “whole system freeze”; your system is still running mostly normally, it’s just not showing it on the screen (which is why Factorio still reports 60 fps). You can work around this by disabling VRR (probably in KDE Plasma settings) or disabling panel replay (add amdgpu.dcdebugmask=0x400 to the kernel command line). More details here: Display not refreshing properly on 6.12 (#3796) · Issues · drm / amd · GitLab.