VRR randomly causes a full system freeze
Brief summary of the problem:
Running hardware-accelerated applications such as WebGL browser animations, YouTube videos or desktop games in fullscreen mode with VRR enabled sometimes causes a complete system freeze. Keyboard lights are not flashing and the magic SysRq key doesn't respond.
- The problem occurs randomly with newer Kernel versions post LTS (I'm assuming 6.7.0+ based on similar reports).
- It doesn't occur with the LTS kernel (6.6.46-1 at the time of testing).
- Disabling VRR completely fixes the freezing issue, but introduces stuttering when the framerate is below the monitor's refresh rate.
I'm able to reliably reproduce the freeze on my system simply by taking screenshots in fullscreen mode at low framerates (see the steps outlined further down). The freeze can also occur randomly without taking any screenshots which is how I first encountered it.
Possibly related issues: #3149 (closed), #3142 (closed), #3322, #3173 (closed)
Possibly related commit: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=06ad7e16425619a4a77154c2e85bededb3e04a4f
Hardware description:
- Mainboard: ASRock Z790M-ITX WiFi
- CPU: 13th Gen Intel® Core™ i5-13600K
- GPU: AMD Navi 31 Radeon RX 7900 XTX [1002:744c] (rev c8)
- System Memory: 31.1 GiB (2x16GB, XMP disabled during testing)
- Display: LG 27GN800-B QHD Ultragear (NVIDIA® G-SYNC® Compatible, AMD FreeSync™ Premium, 144 Hz, 1ms GtG, Horizsync 230-230, VertRefresh 48-144)
- Type of Display Connection: DP 1.2 (HBR2 21.6 Gbit/s)
System information:
- Distro name and Version: EndeavourOS Linux x86_64
- Kernel version: 6.10.5-arch1-1
- mesa 1:24.1.6-1
- vulkan-radeon 1:24.1.6-1
- DE: Plasma 6.1.4
- WM: kwin 6.1.4-1
How to reproduce the issue:
- Use Kernel 6.7.0 or newer.
- Install spectacle and vrrtest.
- Make sure VRR is enabled.
- Run VRRTest.
- Decrease the framerate to 30 by pressing the down arrow key.
- Quickly press the print key until the system freezes. Pressing it in bursts of 4-10 strokes makes it more likely to freeze.
- After rebooting, there will be incomplete files in the screenshot folder.
Instead of using VRRTest, you can also play any hardware-accelerated video or just run a game in fullscreen mode.
Attached files:
Screenshots

Log files (for system lockups / game freezes / crashes)
Since this is a full system freeze, there are no relevant messages in the system journal. The last message being systemd[926]: Started VRRTest.