I’ve had intermittent suspend issues with the NVidia proprietary drivers for a long time, and I recently figured out how to reproduce it: If I just unplug all display cables from the GPU, or power off my monitors by cutting their power, then hit the sleep button on my keyboard (which triggers a suspend to RAM), the GPU driver gets stuck and the system never suspends - the only way to make the computer responsive again is to cut its power (or hold down the power button) and do a cold boot.
I know there are many bug reports about suspend, but I haven’t seen any with these particular symptoms with these particular reproduction steps. If this is a duplicate of a bug I haven’t yet seen, I apologize.
I’m currently on the Ubuntu 21.10 developer release, using the “NVidia driver metapackage from nvidia-driver-470” provided by Ubuntu’s “Software & Updates → Additional Drivers” screen (but this has happened with many versions of Ubuntu and, I believe, many versions of the driver).
I can’t really run nvidia-bug-report.sh after reproducing the issue, because the only way to access the machine once it hangs is to do a hard reboot. I’ve attached the log nonetheless though. If there’s something I could do to make this log more useful, please do tell.
nvidia-bug-report.log.gz (364.9 KB)
EDIT: I realized, I forgot to add hardware info. I’m running a GTX 1080Ti and an AMD R9 5950x with an “ASUS ROG Strix B550-I GAMING” motherboard and some DDR4 RAM from HyperX. I strongly suspect only the GPU is relevant though.