Experiencing a black screen when using an AMD GPU on Ubuntu can be frustrating, especially if you rely on your system for work or entertainment. This guide will help you diagnose and fix common causes of black screen problems related to AMD graphics cards on Ubuntu. By following these steps, you can restore your display and ensure your GPU functions correctly.
What You’ll Need
- A computer running Ubuntu with an AMD GPU
- Access to a terminal (either via Ctrl+Alt+F2 or SSH if the GUI is unresponsive)
- Internet connection to download drivers and updates
- Basic familiarity with Linux command line operations
Step-by-Step
- Boot into Recovery or Terminal Mode: If your screen is black after boot, press
Ctrl+Alt+F2to switch to a terminal interface. If that doesn’t work, reboot and holdShiftduring startup to access the GRUB menu, then select Advanced options for Ubuntu and boot into recovery mode with networking enabled. - Update Your System: Run
sudo apt update && sudo apt upgrade -yto make sure all packages, including kernel and drivers, are up to date. Outdated software can cause compatibility issues with AMD GPUs. - Check Current GPU Driver: Use
lspci -k | grep -EA3 'VGA|3D|Display'to identify which driver your AMD GPU is using. It should show either the open-sourceamdgpuorradeondriver. - Install AMDGPU Drivers: For most modern AMD GPUs (Polaris and newer), the
amdgpudriver is recommended. If it’s not installed or you suspect issues, install the latest AMD GPU driver stack by running:sudo apt install --install-recommends linux-generic-hwe-20.04 xserver-xorg-hwe-20.04
(Replace
20.04with your Ubuntu version.) This installs an updated kernel and X server with improved AMD support. - Blacklist the Radeon Driver (If Needed): Some systems with newer AMD GPUs may conflict if both
radeonandamdgpudrivers load. To prevent this, create a blacklist file:echo 'blacklist radeon' | sudo tee /etc/modprobe.d/blacklist-radeon.conf
Then update initramfs:
sudo update-initramfs -u
- Configure Xorg for AMDGPU: Create or edit the Xorg configuration file to explicitly use the
amdgpudriver:sudo mkdir -p /etc/X11/xorg.conf.d sudo nano /etc/X11/xorg.conf.d/20-amdgpu.conf
Add the following content:
Section "Device" Identifier "AMD GPU" Driver "amdgpu" EndSection
Save and exit.
- Check Kernel Parameters: Sometimes kernel parameters can cause black screens. Edit GRUB config:
sudo nano /etc/default/grub
Find the line starting with
GRUB_CMDLINE_LINUX_DEFAULTand ensure parameters likenomodesetare removed, as they disable GPU drivers. You can addamdgpu.dc=1for enabling display code if needed.
Then update GRUB:sudo update-grub
- Reboot Your System: Restart your computer with
sudo reboot. Monitor whether the black screen issue is resolved and if the display initializes properly. - Check Logs for Errors: If the problem persists, inspect system logs for GPU or Xorg errors:
journalctl -b | grep amdgpu cat /var/log/Xorg.0.log | grep EE
This can help identify driver or hardware conflicts.
- Try Using a Different Display Manager or Desktop Environment: Sometimes display managers like GDM or LightDM behave differently with AMD GPUs. Install LightDM as an alternative:
sudo apt install lightdm sudo dpkg-reconfigure lightdm
Select LightDM and reboot.
- Consider Installing AMDGPU-PRO (Optional): For professional or workstation GPUs, AMD offers a proprietary driver package. Download it from AMD’s official website, extract, and install following their instructions. This is less common for typical desktop users but may help if open-source drivers fail.
- Test with a Live USB: If you suspect your current Ubuntu installation is corrupted or misconfigured, boot from a Ubuntu Live USB and check if the AMD GPU works correctly there. This helps isolate hardware from software issues.
- Reset Display Settings: Sometimes custom display configurations cause issues. Remove or rename your Xorg config files and reset monitors settings:
mv ~/.config/monitors.xml ~/.config/monitors.xml.backup
Then reboot.
Common Mistakes
- Ignoring Kernel Updates: Many AMD GPU fixes come via newer kernels. Skipping system updates can prevent important patches from applying.
- Using
nomodesetPermanently: Whilenomodesetcan help boot when the GPU driver fails, it disables proper driver loading, causing black screens after login. - Mixing Proprietary and Open-Source Drivers: Installing AMDGPU-PRO on top of open-source drivers without proper removal can cause conflicts.
- Not Checking Hardware Connections: Loose cables or faulty monitors can mimic GPU black screen symptoms but are unrelated to software.
- Editing GRUB Without Backup: Incorrect GRUB parameters can prevent booting. Always back up config files before making changes.
Tips
- Keep Your System Updated: Regularly update Ubuntu and kernel packages for the latest AMD GPU support.
- Use Ubuntu’s Hardware Enablement Stack: HWE kernels often include newer drivers beneficial for recent AMD GPUs.
- Check AMD’s Official Documentation: AMD’s website and community forums may have GPU-specific advice and driver downloads.
- Use External Displays to Test: If you have multiple outputs, try connecting to different ports (HDMI, DisplayPort) to isolate port-specific issues.
- Backup Important Data: Before major driver or system changes, ensure you back up to avoid data loss if recovery is needed.
Troubleshooting
If the black screen persists after following the above steps, consider the following troubleshooting methods:
- Boot into Text-Only Mode: Edit GRUB at boot by pressing
eon the Ubuntu entry, removequiet splash, and addsystemd.unit=multi-user.targetto boot into a terminal-only mode. This helps confirm if the issue is with the graphical environment. - Reinstall the Kernel and Drivers: Sometimes kernel modules or drivers corrupt. Reinstall them with:
sudo apt install --reinstall linux-image-$(uname -r) xserver-xorg-video-amdgpu
- Try Older Kernels: From the GRUB menu, select an older kernel version to check if a recent kernel update caused the issue.
- Check for Firmware Updates: AMD GPUs rely on firmware blobs. Ensure the package
linux-firmwareis installed and updated:sudo apt install linux-firmware
- Disable Wayland: Some AMD GPUs have issues with Wayland display server. Switch to Xorg by editing
/etc/gdm3/custom.confand uncommentingWaylandEnable=false, then reboot. - Consult System Logs: Use
dmesg | grep amdgpuandjournalctl -xeto detect kernel or driver errors. - Test Hardware Health: Test the GPU on another system or use a different GPU in your system to rule out hardware failure.
- Seek Community Help: Ubuntu Forums, Ask Ubuntu, and AMD Community forums are valuable resources where similar issues may have documented solutions.
Frequently Asked Questions
- Q: How do I know if my AMD GPU is supported by the amdgpu driver?
- A: AMD’s official documentation and the Linux kernel wiki list supported GPUs. Generally, GPUs from GCN 1.2 (Polaris) onwards are supported by
amdgpu. - Q: Can proprietary AMDGPU-PRO drivers fix black screen issues?
- Sometimes. AMDGPU-PRO includes additional proprietary components that may improve stability or performance, but it’s recommended only for professional GPUs and can complicate system maintenance.
- Q: What if the screen goes black only after logging in?
- This often indicates a problem with the desktop environment or display manager. Try switching to a different display manager (e.g., LightDM) or resetting user display settings.
- Q: Is it safe to blacklist the radeon driver?
- Yes, if your GPU is supported by
amdgpu. Blacklistingradeonprevents conflicts but be sure you know your GPU model supportsamdgpu. - Q: Why does adding
nomodesetfix boot but cause black screens later? nomodesetdisables kernel mode setting, preventing the GPU driver from loading properly. It’s useful for boot troubleshooting but not for normal operation.- Q: How can I revert changes if something breaks?
- Boot into recovery mode or a root shell, undo configuration changes (e.g., remove blacklist files, restore GRUB config), and reboot. Keeping backups of config files helps.
By carefully following this guide and adapting the steps to your specific AMD GPU model and Ubuntu version, you can effectively resolve black screen issues and enjoy stable graphics performance on your system.
Related
- How to Use the Instant Pot Rice Setting for Perfect Results
- How to Cook Rice in Instant Pot Rice Setting Perfectly
- How to Make Perfect Rice in Instant Pot Rice Setting