At first, I thought it might be related to External monitor freezes when using dedicated GPU - #258 by felipe42x , but now I’m not entirely sure. The only way I can get an unrecoverable external screen freeze is while using Godot, but it happens so rarely it’s difficult for me to reproduce it again. I’d like to report something much more bothersome.
The easiest way to reproduce it is to run any program with prime-run, then keep resizing it. After a couple of seconds, I get a random system freeze, lasting for around 1-2 seconds, then everything recovers and seems fine. These stutters appear randomly, sometimes minutes later, sometimes almost instantly after a previous freeze.
The only thing I noticed in logs is a warning spam in Xorg.0.log (always appearing during the lag):
(WW) AMDGPU(0): Cannot get FB for Present flip (may be normal if using PRIME render offloading)
I can prevent freezes with running apps in Gamescope, but… Not everything works under Gamescope, so sometimes I’m forced to deal with freezes or avoid using dGPU when possible.
Currently, I’m running Xlibre, but it happens on Xorg and Wayland as well.
All of this doesn’t occur when I unplug my external monitor.
Right now, I’m on 580.159.04, but it happens on 595.71.05, and on older drivers as well. It has been like this for over a year or two. If it’s not a problem with NVIDIA drivers, I apologize for reporting it here. I can’t tell what the culprit is in this situation, but it’s really annoying.
nvidia-bug-report.log.gz (407.1 KB)