3

I get a lot of conflicting advice online about how to install video card drivers. What are the differences between the main ways of installing the drivers, and what is the simplest way to get this done?

1 Answer 1

4

Easiest

sudo ubuntu-drivers autoinstall

That's it!

Manual method

The above command installs the latest drivers, but you may want to use a prior release, depending on how well your graphics card is supported. There are a few manual methods. I'll walk through some of the more prominent.

In menus, you can click on "Applications" in the upper-left corner of your screen and type to search for "Software & Updates". You can install proprietary drivers in its "Additional drivers" tab.

SOftware & updates

For more control/specificity, install via the command line.

First, you'll want to know the name of your graphics card: lspci -k | grep "VGA"
You could also run sudo ubuntu-drivers devices to see all connected graphics devices. (The latter will show the recommended version.)

The manufacturer might recommend specific drivers or a specific version of the driver. Look it up on their website. Note the difference between the driver they recommend (the long-lived branch) and their latest release. You can either walk through the steps of their linked installer or, more simply, use the PPA (how to install PPAs in Loki) if you want to install a specific driver version (e.g., nvidia-###):

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt install nvidia-###

(If you Tab twice after typing "nvidia-" in the above command, Terminal will list all possible packages with that prefix.)

Other tutorials might mention graphical means for installing drivers, but the more you futz with commands (e.g., following the nvidia website's directions), the more opportunity you have to screw up the install. This said, if the simple driver install causes issues, you'll fall back on the manufacturer's install (sudo apt-get purge the packages you installed and godspeed).


Update: Elementary OS 0.4 Loki

Loki does not come with "Software & Updates" installed.

You can install it by running the following command:

sudo apt install software-properties-gtk software-properties-common

1
  • But I would really recommend you to use the first method. Last time I used the manual one I completely messed up my system and I had to reinstall 😅. Thanks for sharing!
    – Adam
    Commented Jul 18 at 15:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.