Desktop freezes for a second when interacting with offloaded apps

ASUS A17 FA707NV has AMD Radeon 680M integrated and GeForce RTX 4060 dedicated, running 595.99.02 NVIDIA driver on Debian13/xfce. Laptop has HDMI-connected external monitor. I also have PipeWire for audio control, but i don’t think it matters. The rest is fresh installation + stable updates.

Easy way to reproduce - run:

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxgears -info | grep ‘GL_RENDERER|FPS’

and just

vkcube

it will pick dedicated card itself.

Start resizing one of them - that should provoke issue within few seconds, regardless on which monitor apps are running. At some point whole DM freeze for a second (including cursor), then it releases and works OK. When i run NVIDIA Settings GUI, I can see that PowerMizer set to “Auto” uses level 2 when both apps running, and it jumps to level 4 for a moment when screen unfreezes. The attached log produced after freezing this test case right after PC restart.

if you run glxgears without offloading - it will pick AMD graphics and will not cause freezing when resized.

This can’t be reproduced without external monitor connected to laptop via HDMI. Also, if I run glxgears with external monitor, and then disconnect external monitor while glxgears running, that instance of glxgears will not freeze any more. if I connect external monitor back - it starts freezing on resize again.

This is not a hardware issue - I have Windows dual boot, it has no freezing.

A less consistent way to reproduce:

Running offloaded browser (tested waterfox, see NVIDIA is active in “about:support” screen) with some WebGL game (like shellshock.io), will randomly freeze DM for a second in same way within a minute or so, but i couldn’t get it freezing by resizing browser window. Since cursor is captured by browser when you play game, you can prove DM freeze by running something moving, like vlc or glxgears in parallel and see that it freezes at same time as browser game.

nvidia-bug-report.log.gz (628.5 KB)