This is done with an option when you load the module: modprobe nvidia NVreg_RegisterForACPIEvents=1 NVreg_EnableMSI=1
To automatically use this option, create a file named /etc/modprobe.d/50-nvidia.conf with the following content:
options nvidia NVreg_RegisterForACPIEvents=1 NVreg_EnableMSI=1Restart your machine and now you can safely suspend and resume without screen corruption. In my case in 9 out of 10 suspend operations this fixes the screen corruption issue. Very rarely it still happens, but much less often than without this options.
Taken from https://forum.kde.org/viewtopic.php?t=121590