Xrandr --listproviders takes several seconds to finish

Each time I run this command (and also some other applications like fillets-ng or mednafen) under X11, the entire screen freezes for several seconds (audio still working fine), then unfreezes and command or application continues normally. This happens under X11 only, no delay under wayland. At first I thought that maybe its the adapter that powers on, but it does not matter if its in D3Cold or D0. It only seems to affect some applications, most OpenGL/Vulkan applications run just fine without any delays.

nvidia-bug-report.log.gz (1.5 MB)

strace_xrandr.txt (21.2 KB)

I tried to strace xrandr --listproviders with relative time stamps. There’s a big delay on line 176 of the log, but I’m not able to figure out where xrandr is trying to read data from.