Ubuntu Update Display Driver: A Complete Guide
In this article
- Why Display Drivers Matter on Ubuntu
- How Ubuntu Handles Display Drivers
- Updating Proprietary Drivers via Additional Drivers
- Updating Drivers via the Command Line
- Keeping Open-Source Drivers Updated
- Common Problems and Troubleshooting
- Choosing the Right Driver
- Frequently Asked Questions
- Alternatives and Advanced Options
To update your display driver on Ubuntu, use the Additional Drivers tool (Software & Updates) for proprietary drivers like NVIDIA, or rely on the open-source drivers included in the Linux kernel, which update automatically with system updates. For most users, the open-source drivers work out of the box, but gamers and professionals may need proprietary drivers for better performance.
Why Display Drivers Matter on Ubuntu
Display drivers are the bridge between your operating system and your graphics hardware. On Ubuntu, the default open-source drivers (such as Nouveau for NVIDIA, AMDGPU for AMD, and i915 for Intel) are built into the Linux kernel and Mesa graphics stack. They receive updates through regular system updates, ensuring compatibility and security fixes without user intervention. However, proprietary drivers from vendors like NVIDIA offer better performance for gaming, 3D rendering, and machine learning tasks. Understanding which driver you need and how to update it is key to a smooth Ubuntu experience.
How Ubuntu Handles Display Drivers
Ubuntu provides two main paths for display drivers: open-source and proprietary. Open-source drivers are pre-installed and updated via the kernel and Mesa packages. Proprietary drivers are available through the Additional Drivers tool, which detects your GPU and offers available proprietary options. The tool pulls drivers from Ubuntu's repositories, ensuring they are tested for stability. For NVIDIA users, the proprietary driver includes the NVIDIA kernel module and userspace libraries. AMD and Intel users typically stick with open-source drivers, as proprietary alternatives are less common on Linux.
Updating Proprietary Drivers via Additional Drivers
The simplest way to update a proprietary display driver is through the graphical Additional Drivers tool. Here's how:
- Open the Activities overview and search for Additional Drivers.
- Launch the tool. It may take a moment to detect your hardware.
- You'll see a list of available drivers. The currently active one is marked.
- Select a different driver version if desired, then click Apply Changes.
- Wait for the installation to complete and reboot if prompted.
This method ensures you're using drivers from Ubuntu's repositories, which are tested for compatibility. It's the recommended approach for most users.
Updating Drivers via the Command Line
For advanced users, the command line offers more control. The ubuntu-drivers tool lists and installs drivers. For example, to list available drivers, run:
ubuntu-drivers devices
To install the recommended driver automatically:
sudo ubuntu-drivers autoinstall
To install a specific driver, use apt with the package name shown in the list. After installation, reboot your system. This method is useful for scripting or remote management.
Keeping Open-Source Drivers Updated
Open-source drivers are updated through the standard system update process. Running sudo apt update && sudo apt upgrade regularly ensures you have the latest kernel and Mesa packages, which include driver improvements and bug fixes. Ubuntu's Hardware Enablement (HWE) stack, available in LTS releases, provides newer kernels and graphics drivers for newer hardware. To install the HWE stack, run:
sudo apt install --install-recommends linux-generic-hwe-20.04
(Replace 20.04 with your Ubuntu version.) This is particularly useful if you have recent hardware that isn't fully supported by the original LTS kernel.
Common Problems and Troubleshooting
Updating display drivers can sometimes lead to issues. Common problems include:
- Black screen after reboot: This often happens if the proprietary driver fails to load. You can boot into recovery mode and revert to the open-source driver or reinstall the previous version.
- Low resolution or wrong refresh rate: Ensure the correct driver is active. Check with
lspci -k | grep -A 2 -i vgato see which kernel module is in use. - Screen tearing: This can occur with open-source drivers. Enabling a compositor or using a proprietary driver may help.
- Driver conflicts: If you switch between proprietary and open-source drivers, remnants may cause conflicts. Use
sudo apt purgeto remove old driver packages before installing new ones.
Always back up important data before changing drivers, and consider using Timeshift or similar tools to create a system snapshot.
Choosing the Right Driver
The best driver depends on your hardware and use case. For general desktop use, open-source drivers are sufficient and more secure due to timely updates. For gaming or GPU-accelerated workloads, proprietary drivers from NVIDIA or AMD (where available) offer better performance. Check Ubuntu's release notes and community forums for recommendations specific to your GPU model. Additionally, consider the driver version: newer isn't always better, as some versions may have regressions. Stick to the recommended driver unless you have a specific need.
Frequently Asked Questions
Do I need to update my display driver manually on Ubuntu?
Not usually. Open-source drivers update automatically with system updates. Proprietary drivers can be updated through Additional Drivers or command line, but Ubuntu notifies you when updates are available.
How do I know which driver is currently in use?
Run lspci -k | grep -A 2 -i vga in a terminal. The output shows the kernel driver in use for your graphics card.
Can I switch back to the open-source driver after installing a proprietary one?
Yes. Open Additional Drivers, select the open-source option (e.g., Nouveau for NVIDIA), and apply changes. Reboot to complete the switch.
Why does my screen flicker after a driver update?
Flickering may indicate an incompatible driver version or a configuration issue. Try reinstalling the driver or reverting to a previous version. Check system logs for errors.
Are proprietary drivers safe to use?
Proprietary drivers are generally safe and tested by Ubuntu, but they are closed-source. They may have security vulnerabilities that are patched by the vendor. Open-source drivers are auditable and updated by the community.
Alternatives and Advanced Options
For users seeking more control, consider using a rolling release distribution like Arch Linux or Fedora, which often have newer drivers. On Ubuntu, you can also add third-party repositories like the Graphics Drivers PPA (for NVIDIA) to get newer driver versions, but this is not officially supported and may introduce instability. Always weigh the benefits against the risks.
In summary, updating display drivers on Ubuntu is straightforward for most users: rely on automatic updates for open-source drivers, and use Additional Drivers for proprietary ones. With a bit of care, you can keep your graphics performance optimal and your system stable.