sleep with Nvidia

I had problems returning from sleep with Nvidia as well. After googling for quite a while, I found a solution that worked for me. I created a file called “nvidia-power-mgmt.conf” in etc/modprob.d with this line in it:

options nvidia NVreg_PreserveVideoMemoryAllocations=1

And after a reboot, sleep/resume seems to be working fine now.