I just ordered the Nvidia GTX card. I have a dilemma, though. Should I keep using the driver which is available in "additional drivers" in Ubuntu, or should I install the driver from the Nvidia site?
So which driver is the best for me?
|
I just ordered the Nvidia GTX card. I have a dilemma, though. Should I keep using the driver which is available in "additional drivers" in Ubuntu, or should I install the driver from the Nvidia site? So which driver is the best for me? |
||||
|
|
|
Updated - Nov 2, 2016 The quick way:Before adding this PPA, please read the PPA's Description on their page which mentions important information about using it. This is for desktop users who want the latest version of the driver. To install run the following command:
This will update the system taking into consideration any packages the PPA offers. If you already had an Nvidia driver installed, this will also update that driver (But not from a major version to another, eg: 355 to 370). If you did not have a driver already install, you could run something like this (Assuming you have one of the latest Nvidia cards):
Then reboot to use the new drivers. Common questions regarding Nvidia:
For Troubleshooting Nvidia Problems or Overclocking Settings please see this answer which covers:
Top questions asked about video cards: 1. Can I use the latest driver on an older version of Ubuntu?Ubuntu 12.04+ Since 12.04+, video drivers are maintained and updated more often. It is easier to handle and solve the problems that showed with older ones. You'll most likely won't need additional PPAs unless you have the latest Nvidia card. 2. Difference between video cards & drivers: Official Nvidia site, Ubuntu's Default, PPA & NouveauI recommend them in the following order according to problems found, how the "out of the box" experience feels to end users, how compatible they are, how easy it is to update, install or remove and how it will feel once you have it set up: Nvidia PPA - Great Performance. It works out of the box for most cards by using the driver included in the PPA (Which are different for each generation of Nvidia cards (This is explained below). Ubuntu Default Recommended Driver - Ubuntu does an amazing job in figuring out which Nvidia driver you need depending on the card you are using. Nouveau - This is the open source implementation of the Nvidia driver. They also do an amazing job and although they are not on par with the official drivers or the ones in the PPA (Even more so with the latest Nvidia cards), the speed of development, the commitment, dedication and advancements that they do per week, gives confident that this is fact an option to have and promote. Official Nvidia Site - This are the official drivers (Same as the ones in the PPA), but the difference is that they do not upgrade automatically and have some issues when updating, uninstalling and installing (Very rare but it happens). The differences can be summed in the following points: -- Official Site --
-- PPA Repositories --
-- Default Ubuntu Drivers --
4. How to know which driver or package to install?Depending on how many video cards you have and if they are integrated or not, the installation method and packages to install will change from the PPA mentioned above which is for Single Cards. COMPUTERS WITH TWO VIDEO CARDS IN HYBRID MODE Starting with Nvidia 319.xx, both Nvidia Optimus and the common PCIe drivers are integrated into one, so if you install the Nvidia-319 package or newer, you will get the driver for the Integrated Nvidia cards and also for the PCI ones. There are two solutions possible for hybrid cards: The first one is a package called
The second one is an official NVIDIA package called After this, it is recommended to turn off the computer and then back on. The following picture should be seen with
COMPUTERS WITH A SLI SETUP If you have 2 or more video cards in SLI mode you can do the following:
Lastly, Ubuntu has a neat way of recommending which driver to use depending on your video card and drivers available (This is why I also recommend adding the PPAs first). Simply type:
It should show you a list of driver packages available for your hardware, including but not limited to the video card. If you wish to see which driver is recommended for your video card then simply type the following:
5. How to install a driver?The method used will be depend on how many video cards you have and which type of video cards you are using. The following are some of the ways of installing an Nvidia video card: NVIDIA (Old Drivers that need the headers) For Nvidia, many times you need to first install the header files of the kernel version you are using at that moment for the driver to install correctly. So you would first need to execute the following line:
And then install the package related to the driver (nvidia* for Nvidia cardss). In other cases you might need to go a little further and install the sources and specific header files, for example:
which installs the To check which version you have at any given time type For Nvidia, it depends on the video card and package needed for it, for the latest video cards and assuming you added the PPA mentioned above, the terminal line would be:
The number at the end would change depending on how old your video card is or how new it is (Some versions available are 304, 340, 355 and 370). For GeForce 8 and 9 series GPUs use The latest versions bring more fixes and correct issues related to graphics corruption, HDMI support, thermal support and more for the latest Nvidia cards. Normally, updating the video drivers solves many issues. Note that Fan Control and any other Nvidia features that are not found on the For CUDA you can follow this link Installing and testing CUDA in Ubuntu 14.04 For Bumblebee (NVIDIA Optimus) you can use the following PPA (Ubuntu 15.04+ users can optionally not do this since it is already included):
6. Difference between Proprietary Drivers?Please visit Difference between Additional Drivers (Nvidia) for more information about Proprietary Drivers. 7. How to know if my video card is supported in Ubuntu?Here are a couple of hints to know if your video card is supported in Ubuntu:
In general, I make it a rule of thumb that if you have the latest video card or almost one of the latest video cards, you will need the latest drivers. So always install the latest drivers through the PPA or the Software Sources that come with Ubuntu if you have the latest Nvidia card. NOTE - Ubuntu might show in the Graphics option in "About This Computer" the value Unknown. If this is happening, please install the This answer is oriented towards resolving common Nvidia bugs (Black screen, drivers not working in general, low FPS, etc...)
1. What common bugs are solved by using the latest drivers?Common bugs shared by all video cards are:
If you happen to have any of this, or similar in some aspects, it is generally a good idea to add one of the PPAs and update your video drivers to the latest they can manage. In almost all cases, the problem is solved after updating and rebooting. For this cases I also recommend using the Graphics Drivers PPA. With the above mentioned, I also invite you to take a look at some of the questions related to video cards: Which ATI/AMD, or Intel, or NVIDIA Graphics for Unity? What is the correct way to install proprietary ATI Catalyst Video Drivers (fglrx) directly from AMD? How to correctly enable Desktop Cube in Unity 3D? Enable HDMI audio for an Nvidia card How do I enable desktop visual effects? NVIDIA drivers not working after upgrade. Why can I only see terminal? Desktop does not show when I installed nvidia drivers! Black screen on latest Nvidia/Ati Cards when starting LightDM/Ubuntu HDMI/VGA connection cuts borders of screen or creates blurry text /etc/X11/xorg.conf doesn't exist? Installing latest Nvidia from Xorg PPA gives black screen Now some pointers I want to mention:
I have to add that if you suffer from Black Screen after installing the Nvidia drivers from the PPA and rebooting (And you don't have a Hybrid System) then your problem might be the need to remove the bumblebee package along with the bumblebee.conf file. Follow the steps provided in Installing latest Nvidia from Xorg PPA gives black screen for this or simply run the following lines:
2. My video card is not installing correctly (Installation problems)Most installation problems related to Ati or Nvidia can be solved by following the steps provided in Can not install Nvidia driver but in short I can summarize that in the following steps assuming you have one of the following issues:
If you have installed the official Nvidia Drivers, follow all steps below after having started Ubuntu in Recovery Mode. If not, skip to step 2:
NOTE - In Step 6, if it looks as though the PC is stuck loading just press CTRL+ALT+F1 to go to the TTY1 terminal and do step 6 from there. Other common installation problems involve resolution. You can check and change the resolution via terminal in the following way:
3. Tuning and Tweaking my video cardFor Nvidia Video Cards follow this steps:
it should look something like this:
Now save and reboot. You should now see (Depending on your video card model) a new option about Fan Speed like this:
A brief explanation of CoolBits: CoolBits enables various unsupported features, such as support for GPU clock manipulation in the NV-CONTROL X extension. This option accepts a bit mask of features to enable. Which means a value of 0, 1, 2 or 4. CoolBits = 1 - When "1" (Bit 0) is set in the "Coolbits" option value, the nvidia-settings utility will contain a page labeled "Clock Frequencies" through which clock settings can be manipulated. "Coolbits" is only available on GeForce FX and Above. CoolBits = 2 - When "2" (Bit 1) is set it will attempt to initialize SLI when using GPUs with different amounts of video memory. CoolBits = 4 - When "4" (Bit 2) is set the Thermal Monitor page will allow configuration of GPU fan speed, on graphics boards with programmable fan capability. The default option is 0 (unsupported features are disabled). As of Nvidia 337.XX the following options are available: CoolBits = 8 - When "8" (Bit 3) is set the PowerMizer page in the nvidia-settings control panel will display a table that allows setting per-clock domain and per-performance level offsets to apply to clock values. This is allowed on certain GeForce GPUs in the GeForce GTX 400 series and later. Not all clock domains or performance levels may be modified. CoolBits = 12 - When "12" (Bit 3 + 2) this will be the same as activating the effects of Coolbits 8 + Coolbits 4. So you will get the new overclocking features and the fan control.
This options can also be activated by issuing the following command:
WARNING: this may cause system damage and void warranties. I also want to add that the information for Proprietary drivers are typically saved in the home folder. For example the information saved by
I mention this because if the Note that, many of this are still present but divided into more specific files in For example, some video cards do not show the Unity Launcher or top panel unless Another trick is to run In some cases it also helps to change the Texture Filter value to Fast in the OpenGL Plugin inside the Compiz Config Settings Manager. Lastly, changing the Image Settings options to "High Performance" in the OpenGL Settings of the Nvidia Settings Panel can help in some cases. |
|||||||||||||||||||||
|
|
First of all you should identify your NVIDIA graphics hardware - so open a terminal and execute:
The following options should not all be taken. Option 1 - Check for NVIDIA drivers available in the official Ubuntu repositories:
Option 2.1 - Check for NVIDIA drivers available on Launchpad: Option 2.2 - To include the latest NVIDIA drivers - add the repository to software sources:
Search for drivers ... you will see a list of drivers ... the version at the bottom is the newest one:
Option 3 - Search for drivers being available on NVIDIA website: Then follow these steps : Step 1.1 - Select the NVIDIA drivers you want to use and execute:
Step 1.2 - In case the NVIDIA GPU has Optimus support execute:
Step 2 - To finish the drivers installation process execute:
Additional information: |
|||||||||||||||||||||
|
|
Install the driver:
Install
Restart the computer:
Resolving problems: Configure a Making a file called Running
This will create xorg.conf.new file in your current dir. Now you should do the following:
Better GUI (arandr) for manipulating resolutions etc:
|
||||
|
|
|
The recommended way is to install the drivers from Ubuntu repositories. Now all Nvidia adapters are supported by the drivers included in Ubuntu repositories. But this was not always the case and in the future some new adapters may appear that will not be supported by the Ubuntu official drivers for a while. In most cases the system picks the correct driver in System Settings -> Software & Updates -> Additional drivers. First of all you need to find the model of your GPU. Run in terminal
So, the model is If the open source driver is in use, you will see
To check which proprietary driver is installed run:
The package marked with You can check which driver version support this adapter at For example my card is supported by 340, 346, 349, 352 and 355 major versions. Now Ubuntu repositories have 340 and 352 driver versions for this adapter. It makes sense to install the 352. It can be done from GUI as mentioned above or by running
If your adapter is not supported by any driver from the official repositories, or you want to try the very latest one, you can install a driver from ppa. Hybryd graphicsIf you have a laptop with an Intel CPU, in most cases you will have also an Intel adapter that is built in CPU. In this case you will have to install Then you will be able to switch adapters in Or you can do it in terminal.
You will need to log off and log on to apply the setting. New adapters that are not supported by the nouveau driverYou may face a situation that you have a very new Nvidia adapter that is poorly supported by the open source nouveau driver. In this case your system may be unable to boot to GUI. You can refer to this answer and boot with After you install Ubuntu, you will need to boot with When you boot in UEFI mode, that |
|||||||||||||||||
|
|
You don’t need to use command line nor software centre to install NVIDIA drivers (also its best not to install it this way because sometimes you may boot to black screen.). Ubuntu comes with NVIDIA drivers pre-configured (but not installed), all you need to do is:
I have selected the proprietary drivers |
||||
|
|
|
Wanted to throw my caveat out there on the subject after spending last 2 days with this. I've been using Ubuntu for years. Last week I retired my old quad core AMD 940 based pc and built a new AMD 8350 8 core with asus mobo and for a video card since I don't play games I bought a new GTX 650 gpu card. After installing the GTX 650.. it worked fine with the Noveau driver but I wanted to use the video cards HDMI port and for whatever reason that didn't work w/my HP w2207h monitor.
So I first installed the Ubuntu NVIDIA "Current Proprietary" tested. Still no HDMI but the unity desktop etc all still worked ok. Thinking maybe I should try the linux driver directly from NVIDIA I went to their driver section, searched for the linux GTX 650 card and downloaded that .run file - where is going to be some long driver name. Next step for those new to ubuntu/unity Press ctrl + alt + F1 puts me in a terminal Next before you will be able to apply the NVIDIA driver you have to kill the LIGHTDM that is still running in the background.
Once lightdm is stopped you have to change the .run file to be executable:
then finally execute the new driver install program.
this will start and ask you multiple questions you will have to answer. when its done you reboot. Now my warning. Before you start doing all of the above you should either have a 2nd computer/laptop available so you can look up how to reverse the above if you have problems -or- you should have printed out all the info you need INCLUDING: the command line you would need to "purge" the new Nvidia driver
once done you must install some video driver BEFORE you reboot unless you left the Noveau driver installed (re you didn't remove it -- which most say is not required to have tried the above NVIDIA proprietary driver). Next... make sure you know the command line required to reinstall the Noveau driver if you have to. So why did I post this? I was quite careful installing the NVIDIA websites latest driver for the GTX 650 card. However, after a reboot my Ubuntu 12.10 Unity desktop was crazy with various problems.
Because I had not taken the time to prepare myself with how to remove that driver and reinstall a working one from the command line (remember I couldn't use the System Settings tool ?? ... it was a real pain to get back to my previously working system. So do as the Boy Scout model says "be prepared" before you start down this road. Worst of all for me... Even with NVIDIA's latest driver installed I could NOT get the HDMI port on the GTX 650 to display to my monitor. To double check I attached the HDMI cable to a 2nd much newer HDMI capable Monitor and still got NO SIGNAL with that. So I am back to square one still trying to get my HDMI port to work BUT... glass 1/2 full I did learn alot in the process. Hope this helps others. |
|||||
|
|
Here is a detailed asnwer on how to get it done. It will list 2 ways of installing the latest Nvidia drivers on Ubuntu 12.10 to 14.04. Its best if you have synaptic installed on your system, because you will need it to install some files. If its not installed, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:
All the steps listed require the use of Terminal. To open it, just press Ctrl+Alt+T on your keyboard The first way: First thing to do is Update your Ubuntu distribution
Reboot if required. Download the latest driver for your distribution from Nvidia Install linux-source + linux-headers-generic + dkms (Using Synaptic Package Manager)
Install Build Essentilas, gcc and g++
Reboot your system at this point. Once system is backup and running, edit
Save and exit the file. Remove any current Nvidia drivers
Remove any xserver-xorg-video-nouveau drivers
Edit grub file
From the line that has Update grub using the following commands
Reboot your system at this point. Once system reboots, it will be in text mode. Login to your system, and then do
(enter your password)
(providing that the Nvidia downloaded file was savwe there)
(where xxx is the Nvidia file name) Click OK If a message comes up regarding the driver, click on yes (its very important that you click yes) Wait for the installation to finish, then
From the line that has Ctrl+x → y → enter to save the file and exit. Update grub using the following commands
Reboot, and you're set. The second way: Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:
Both methods have been tested with Nvidia Driver Version 340, and they both work OK. Many updates have been done after the fact, and everything works OK. |
|||
|
|
|
The problem you're running into is that you don't have the linux source, so you can install the nvidia driver. I believe what you want is the linux headers for your kernel version.
|
|||
|
|
|
It got easier with 346.72, at least with Lubuntu and MATE 14.04. I hit Ctrl+Alt+F1 and it took 5 commands. Steps that worked for me are as follows:
No need to generate an xorg.conf because it did that when I answered yes during the installation. Also, no need to blacklist nouveau before installing. The only hitch I encountered was when I installed the same driver for a 32 bit OS. It told me that it needed a gcc+ package which I got on my first google. |
|||||||||
|
|
A simple command-line installation method (a text-based variant of the answer by @edwardtorvalds):
|
|||||
|
Its available in Default Repositories.From now on, Nvidia drivers are available on default repositories. So no need of any ppa. Execute :
As of now, |
|||
|
|
|
There are a lot of solutions out there but here is what actually worked for me (suppose you have a fresh installation of Ubuntu 16.04 and nvidia binary driver downloaded)
During the installation you may receive a warning saying "Distribution provided script failed", just ignore it. |
||||
|
|
Download for 64bit: http://www.nvidia.com/object/linux-display-amd64-295.53-driver.html Download for 32bit: http://www.nvidia.com/object/linux-display-ia32-295.53-driver.html
The driver should work with no problem now (I just did this with my GTX 570) Test the driver by opening a terminal: (ctrl + alt + T)
NOTE: The script should blacklist the nouveau driver by default. If the NVIDIA driver isn't working, try to do this manually:
Append the following lines:
|
||||
|
|