I have just installed Ubuntu 22.04 LTS. It works fine but after I suspend the session, the screen remains black after restarting the session.
How can I solve it?
Thanks
Got an update from the launchpad. There is a work around for Nividia 510 using the solution from Nividia 470.
Disable NVIDIA systemd services
sudo systemctl stop nvidia-suspend.service
sudo systemctl stop nvidia-hibernate.service
sudo systemctl stop nvidia-resume.service
sudo systemctl disable nvidia-suspend.service
sudo systemctl disable nvidia-hibernate.service
sudo systemctl disable nvidia-resume.service
Remove NVIDIA systemd script
sudo rm /lib/systemd/system-sleep/nvidia
Reboot and you should be able to suspend and resume properly with driver 510 for 22.04 for both x11 and wayland
The original workaround was for 470. However, I've tested it and the solution works for 510 on 22.04 with x11 and wayland.
Original solution with details can be found here by contributor "humblebee". And bug report on launchpad can be found here
In may case downgrading nvidia driver from 510 to 470, via Additional Drivers , solved the issue
It's more of a workaround, but i am able to resume the GUI session after a black screen caused by a suspend by switching to a virtual console (ctrl+alt+F1 to F7 depending on your computer) and then reverting to GUI session (ctrl+alt+FX, again, the FX depending of your computer, F2 for me).
Works for me with nvidia driver 515 and cuda 11.7
I was having this exact same problem on my HP Pavilion 14 on Ubuntu 22.04. It worked fine a few days ago but I encountered this problem after an update. Lots of stack answers pointed to some problems with Nvidia drivers, but I don't have Nvidia graphics. I have an integrated AMD Radeon along with AMD Ryzen 7.
What worked for me:
Installing amdgpu-install and installing the AMD graphic cards components[1] after checking the secure boot support[2]:
amdgpu-install --usecase=graphics
Also, check this launchpad issue[3].
[1]https://amdgpu-install.readthedocs.io/en/latest/install-overview.html
[3]https://bugs.launchpad.net/ubuntu/+source/linux-signed-hwe-5.19/+bug/2008774
Upgrading Nvidia Driver to version 525 solved this problem for me on Ubuntu 22.04 with graphic card model GeForce GTX 1060 (via "Software & Updates"). Note that a user of Linux Mint with the same graphic card had the same problem 10 months ago.