[bug] Picture corruption after waking up from suspend

Repro: suspend a PC running GNOME, then wake it up

Expected: the lock screen and Google Chrome’s window do not look corrupted
Instead: they do, see attached photo and screenshots
nvidia-bug-report.log.gz (928 KB)

Please see this:
https://download.nvidia.com/XFree86/Linux-x86_64/440.31/README/powermanagement.html

Nope, didn’t work for me. I mean, units seem to be running successfully on both suspend and resume, but the image gets corrupted still.

Any other suggestions? TIA.

Did you correctly set the module parameter?

Looks quite correct to me:

$ rg NVreg_PreserveVideoMemoryAllocations /etc/modprobe.d/50-nvidia-default.conf 
1:options nvidia NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=484 NVreg_DeviceFileMode=0660 NVreg_RegisterForACPIEvents=1 NVreg_EnableMSI=1 NVreg_PreserveVideoMemoryAllocations=1

Also I’ve rebuilt initrd just in case; didn’t help as well.

$ cat /sys/power/mem_sleep
s2idle [deep]

Does this mean I’m not affected by the s2idle timing issue?