If you use Ubuntu 22.04 with Nvidia or AMD graphics cards, you might encounter a black screen after your system resumes from suspension. This guide targets users facing this frustrating issue by offering practical, tested solutions to restore display functionality. Whether you have proprietary Nvidia drivers or AMD’s open-source stack, these methods help you troubleshoot and resolve the black screen problem effectively.
1. Update Your Graphics Drivers
Outdated or incompatible graphics drivers are a common cause of black screens after suspend. For Nvidia, use the “Additional Drivers” utility in Ubuntu to install the recommended proprietary drivers, typically labeled as “nvidia-driver-5xx” series for 22.04. AMD users should ensure the latest Mesa drivers are installed, which can be updated via the official Ubuntu repositories or through a PPA like “kisak-mesa”. Keeping drivers current ensures compatibility with kernel and suspend/resume routines.
2. Disable Wayland Session
Ubuntu 22.04 uses Wayland by default on some systems, but Nvidia’s proprietary drivers often have incomplete support for Wayland, causing suspend/resume issues. To disable Wayland, edit the file /etc/gdm3/custom.conf and uncomment or add the line WaylandEnable=false. Restart GDM or reboot to switch to the Xorg session, which is generally more stable with Nvidia cards during suspend cycles.
3. Add Kernel Boot Parameters
Sometimes, the Linux kernel needs specific parameters to handle power management correctly for Nvidia or AMD GPUs. Editing GRUB config (/etc/default/grub) to include parameters like nvidia.NVreg_PreserveVideoMemoryAllocations=1 for Nvidia or amdgpu.runpm=0 for AMD can prevent GPU state loss on suspend. After editing, run sudo update-grub and reboot. These parameters help maintain GPU memory state and reduce black screen occurrences.
4. Use a Systemd Service to Reload Drivers on Resume
Creating a systemd service that unloads and reloads the Nvidia or AMD kernel modules on resume can resolve driver state corruption. For Nvidia, a service script might run modprobe -r nvidia_uvm nvidia_drm nvidia_modeset nvidia on suspend and load them back on resume. AMD users can reload amdgpu similarly. This approach forces the GPU drivers to reset properly after suspension.
5. Switch to Open Source Drivers for Nvidia
If proprietary Nvidia drivers cause persistent problems, switching to the open-source Nouveau driver can be a fallback. While Nouveau may not offer the same performance or features, it generally handles suspend/resume more gracefully. Use the “Additional Drivers” tool to select Nouveau, then reboot. Keep in mind this may impact gaming or GPU-intensive tasks.
6. Check and Adjust Display Manager Settings
Display managers like GDM or LightDM can affect how suspend/resume behaves. Some users report improved resume stability by switching from GDM to LightDM on Nvidia systems. Install LightDM (sudo apt install lightdm) and set it as default with sudo dpkg-reconfigure lightdm. LightDM’s handling of GPU and session management can sometimes avoid black screen issues.
7. Disable Secure Boot in BIOS
Secure Boot can prevent proprietary driver modules from loading correctly, leading to black screens after suspend. Disabling Secure Boot in your system’s BIOS or UEFI settings allows unsigned kernel modules, like Nvidia’s proprietary drivers, to load without restrictions. This is especially relevant on newer laptops and desktops with Secure Boot enabled by default.
8. Modify Power Management Settings
Adjusting power management options can influence suspend behavior. For Nvidia, disabling runtime power management by creating or editing /etc/modprobe.d/nvidia.conf with options nvidia NVreg_EnableMSI=1 NVreg_UsePageAttributeTable=1 may help. AMD users can tweak power profiles using tools like radeontop or by adjusting kernel parameters to reduce aggressive power saving that interferes with resume.
9. Update Linux Kernel to a Newer Version
Ubuntu 22.04 ships with Linux kernel 5.15, but newer kernels like 5.19 or 6.x series include improved support for both Nvidia and AMD GPUs, especially regarding suspend/resume issues. Installing a newer kernel via the Ubuntu Mainline Kernel PPA can resolve black screen problems caused by kernel bugs. Always test new kernels carefully as they may introduce other compatibility issues.
10. Check Logs and Report Bugs
If none of the above fixes work, inspect system logs such as /var/log/syslog, dmesg, and /var/log/Xorg.0.log for error messages related to GPU or display server failures. Gathering detailed logs can help when reporting bugs to Ubuntu, Nvidia, or AMD developers. Providing accurate bug reports accelerates fixes in future driver or kernel releases.
How to Choose
When deciding which solution to try first, consider your hardware and driver setup. Proprietary Nvidia drivers offer the best performance but are more prone to suspend issues, so updating or tweaking driver parameters is critical. AMD users benefit from the open-source Mesa drivers but may need kernel updates or power management tweaks. Disable Wayland if using Nvidia, and always prioritize updating drivers and kernel before more invasive changes. If unsure, start with driver updates and checking logs, then proceed to kernel parameters or systemd scripts.
Frequently Asked Questions
Why does my screen go black after suspend in Ubuntu 22.04?
It’s often due to GPU driver or kernel incompatibilities with power management, especially with proprietary Nvidia drivers or certain AMD configurations.
How can I tell if I’m using Nvidia or AMD drivers?
Run lspci -k | grep -EA3 'VGA|3D|Display' in terminal to see which driver is in use, or check “Additional Drivers” in Ubuntu settings.
Is switching from Wayland to Xorg necessary?
For Nvidia proprietary drivers, yes. Wayland support is still limited and can cause resume issues. AMD users can often remain on Wayland safely.
Will upgrading the Linux kernel fix black screen issues?
Sometimes. Newer kernels include bug fixes and improved GPU support that can resolve suspend/resume problems.
Can Secure Boot cause black screen after suspend?
Yes, Secure Boot may block unsigned kernel modules like Nvidia drivers, leading to black screen issues after suspend.
What if none of these fixes work?
Check system logs for errors and consider filing a bug report with Ubuntu or your GPU vendor for further assistance.
Final Thoughts
Black screen issues after suspension on Ubuntu 22.04 with Nvidia and AMD GPUs remain a common hurdle but are often resolvable with systematic troubleshooting. Prioritize updating drivers and kernel versions, disable Wayland for Nvidia, and consider kernel parameters or systemd scripts to reload drivers on resume. For persistent problems, community forums, bug reports, and official documentation are valuable resources. With patience and careful adjustments, you can restore smooth suspend/resume functionality on your Ubuntu system.
Related
- Avoiding Home Loss from HOA Fee Conflicts: 10 Essential Tips
- HOA Fee Disputes and Home Loss Stories You Should Know
- Families Evicted Due to Unpaid HOA Fees: What You Should Know