[535.104.05] Graphical Corruption after GPU Sleep

I’ve a PC, NixOS, AMD Ryzen 5900x, 4080RTX, 32gb ram
Whenever my gpu goes into sleep, any desktop environment i use gets corrupted, eg full of graphical errors, trailing mouse, the works… some crash more cleanly (hyprland) than others (kde), but they are all nonfunctional after sleep.

i’ve nvidia-persistenced installed and working according to nvidia-smi -pm 1

Persistence mode is already Enabled for GPU 00000000:0A:00.0.
All done.

if i use systemctl suspend it will crash, it will crash if i turn off/on the monitor, it will crash if monitor goes into standby, it will crash if i change the supported refresh rate on the monitor itself.

I’ve added this options to the kernel:

options nvidia NVreg_UsePageAttributeTable=1
options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp

its gotten more stable after these as it now only crashes whenever there’s “sleep” involved.

There were seemingly not a single issue when on windows, so im guessing i just need to figure the right option to set?, but i’m getting nowhere goolging it, so trying here

nvidia-bug-report.log (183.8 KB)

x11 kde, modesetting not enabled, wake from sleep

nvidia-bug-report.log (242.5 KB)

nixos for whatever reason does not include nvidia-bug-report.sh so i googled a version, and seemingly found one that was ages old.

Here’s an updated one, sorry about that
nvidia-bug-report.log.gz (394.8 KB)

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

maybe more useful bug report