Installing Latest Nvidia Driver into Linux Mint 12

Write tutorials and howtos in here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Do not start a support topic here please. Before you post please read this

Installing Latest Nvidia Driver into Linux Mint 12

Postby jackwelch56 on Sat Mar 03, 2012 11:36 pm

I have an Asus UL30VT with a nVidia GT218 [GeForce G210M].

(For UL30VT owners, you can disable the Intel video in BIOS (press the F2 key on startup) and Select: Advanced > IDE Configuration > SATA Operation Mode. Change the configuration from Enhanced to Compatible.)

Step 1: Download the latest Nvidia Driver
Navigate to http://www.nvidia.com/object/unix.html and download the appropriate driver (The current driver version as of 3/3/2012 is 295.20)

Step 2: Black list the Nouveau driver and reboot
Load Terminal
Code: Select all
# sudo gedit /etc/modprobe.d/disable-nouveau.conf


Enter this code, save and exit
Code: Select all
blacklist nouveau
options nouveau modeset=0


Code: Select all
# sudo reboot


Step 3: Stop X server and run the driver install application
To install the driver, you need to exit the GUI temporarily.
Press CTRL-ALT-1 to load your #1 terminal
Login with your login name and password

Execute this command to stop X server
Code: Select all
# sudo service lightdm stop


Run the driver install file you downloaded in step one
Code: Select all
# cd yourdownloaddirectory
# sh NVIDIA-Linux-x86_64-295.20.run


And one final reboot
Code: Select all
# sudo reboot
jackwelch56
Level 1
Level 1
 
Posts: 2
Joined: Sat Mar 03, 2012 11:14 pm

Linux Mint is funded by ads and donations.
 

Re: Installing Latest Nvidia Driver into Linux Mint 12

Postby xenopeek on Sun Mar 04, 2012 7:05 am

Moved here by moderator
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14561
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Installing Latest Nvidia Driver into Linux Mint 12

Postby kill-o-matic on Sun Mar 04, 2012 2:25 pm

Does this work for older releases as well? I can't get 12 or 11 to install on my laptop at all. When I tried it on Mint 10 it failed on the 3rd step. First it didn't load any GUI at all and started directly with the command line, then it returned "lightdm: unrecognized service" and "Can't open NVIDIA-Linux-x86_64-259.20.run" How am I supposed to return to the GUI now?
kill-o-matic
Level 1
Level 1
 
Posts: 2
Joined: Sun Mar 04, 2012 1:41 pm

Re: Installing Latest Nvidia Driver into Linux Mint 12

Postby jackwelch56 on Sun Mar 04, 2012 3:48 pm

kill-o-matic wrote:Does this work for older releases as well? I can't get 12 or 11 to install on my laptop at all. When I tried it on Mint 10 it failed on the 3rd step. First it didn't load any GUI at all and started directly with the command line, then it returned "lightdm: unrecognized service" and "Can't open NVIDIA-Linux-x86_64-259.20.run" How am I supposed to return to the GUI now?


lightdm replaced gdm in Linux Mint 12;

For previous versions the command is

Code: Select all
sudo service gdm stop


I don't know what specific nVidia driver you downloaded, you might not have the x86_64 file that I needed (32bit versus 64bit versions of the driver)

This command will tell you what architecure your system is

Code: Select all
inxi -F


To return to the GUI you could either try to find your original terminal (Maybe at CTRL-ALT-6 or CTRL-ALT-8 ?) or reboot with

Code: Select all
sudo reboot
jackwelch56
Level 1
Level 1
 
Posts: 2
Joined: Sat Mar 03, 2012 11:14 pm

Re: Installing Latest Nvidia Driver into Linux Mint 12

Postby surfdev on Tue Mar 20, 2012 9:53 pm

Hi,
I am wondering, did you face an error stating: "The distribution-provided pre-install script failed" during your installation?
I followed all your steps but was faced with this as soon as I pressed the "Accept" button in the Terms page.

Thanks for your help!
surfdev
Level 1
Level 1
 
Posts: 1
Joined: Tue Mar 20, 2012 9:49 pm

Re: Installing Latest Nvidia Driver into Linux Mint 12

Postby AlbertP on Wed Mar 21, 2012 4:41 am

An easier way to get the latest 295.20 driver is through the X-swat PPA. First make sure you have all updates installed.
Code: Select all
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
apt update

Then you can install the nvidia-current package, version 295.20, from package or software manager. Or if 280.13 was already installed, you'll find 295.20 in the updater. This has worked well on both computers here.

295.20 also supports the 3.1 and 3.2 kernels which 280.13 doesn't.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 16
Level 16
 
Posts: 6513
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Re: Installing Latest Nvidia Driver into Linux Mint 12

Postby nomko on Wed Mar 21, 2012 5:24 am

An easier way to get the latest 295.20 driver is through the X-swat PPA. First make sure you have all updates installed.
Code: Select all
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
apt update


That's how i always do it! Most easiest way to get the latest drivers!

I believe that during the installation of the latest drivers or by opening the NVIDIA setting control panel, a new .conf file will be created called nvidia.conf in which all the non-required drivers are blacklisted like the nouveau drivers and other drivers.
Last edited by nomko on Fri Apr 13, 2012 2:46 am, edited 1 time in total.
ASUS P5KPL-AM SE*Intel Core2 Quad CPU Q8200*4 GiB ram*nVidia GeForce 9500GT*Realtek RTL8101/8102E*Optiarc DVD-RW AD-7200A*HDD:Samsung HD501LJ/HD103SI*Sitecom X5-N600 Router (WLR-5100)

My personal website
User avatar
nomko
Level 8
Level 8
 
Posts: 2276
Joined: Sat Feb 25, 2012 7:28 pm
Location: The Hague, The Netherlands

Re: Installing Latest Nvidia Driver into Linux Mint 12

Postby AlbertP on Wed Mar 21, 2012 6:11 am

That's true. Nvidia's own installer should do this as well but their way of blacklisting does not work on all distros.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 16
Level 16
 
Posts: 6513
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Re: Installing Latest Nvidia Driver into Linux Mint 12

Postby TerryNation on Thu Apr 12, 2012 9:46 pm

I was following this instructions and now I only boot to a command line! No gui!

When I run startx it tells me no screens are found!

Edit:

Only way I found that would get me back to a gui was to delete the xorg.conf file: $ sudo rm /etc/X11/xorg.conf

Now I am missing many desktop features and my opengl programs fail to start!
TerryNation
Level 1
Level 1
 
Posts: 7
Joined: Fri Dec 23, 2011 12:05 pm

Re: Installing Latest Nvidia Driver into Linux Mint 12

Postby AlbertP on Fri Apr 13, 2012 3:36 am

Please run:
Code: Select all
sudo nvidia-xconfig

That command will write a proper xorg.conf file for the nvidia driver version you use.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 16
Level 16
 
Posts: 6513
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Re: Installing Latest Nvidia Driver into Linux Mint 12

Postby TerryNation on Fri Apr 13, 2012 4:40 am

Yes I already tried that, same result,

Code: Select all
(EE) No devices detected.

Fatal server error:
no screens found
TerryNation
Level 1
Level 1
 
Posts: 7
Joined: Fri Dec 23, 2011 12:05 pm

Re: Installing Latest Nvidia Driver into Linux Mint 12

Postby AlbertP on Fri Apr 13, 2012 6:12 am

@TerryNation: Please post the output of:
Code: Select all
lspci
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 16
Level 16
 
Posts: 6513
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Re: Installing Latest Nvidia Driver into Linux Mint 12

Postby TerryNation on Fri Apr 13, 2012 2:47 pm

Code: Select all
$ lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
00:1a.0 USB Controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b4)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b4)
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b4)
00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b4)
00:1d.0 USB Controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation QM67 Express Chipset Family LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 04)
01:00.0 VGA compatible controller: nVidia Corporation GF108 [Quadro NVS 4200M] (rev a1)
03:00.0 Network controller: Intel Corporation Centrino Wireless-N 1000
05:00.0 System peripheral: Ricoh Co Ltd MMC/SD Host Controller (rev 07)
0d:00.0 USB Controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04)
TerryNation
Level 1
Level 1
 
Posts: 7
Joined: Fri Dec 23, 2011 12:05 pm

Re: Installing Latest Nvidia Driver into Linux Mint 12

Postby AlbertP on Sat Apr 14, 2012 11:27 am

This is hybrid graphics indeed. You probably need to turn off the Intel card in the BIOS (that's possible on at least Lenovo laptops) before the nvidia one will work on Linux. Or you can use Bumblebee: https://wiki.ubuntu.com/Bumblebee
This way you have intel graphics for basic desktop usage, with nvidia turned off, Intel is fast enough for that. If you want to game you can run your games with "optirun". However the Quadro NVS 4200M is a low-end card and also more for business usage than gaming.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 16
Level 16
 
Posts: 6513
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Re: Installing Latest Nvidia Driver into Linux Mint 12

Postby TerryNation on Sat Apr 14, 2012 1:22 pm

AlbertP wrote:This is hybrid graphics indeed. You probably need to turn off the Intel card in the BIOS (that's possible on at least Lenovo laptops) before the nvidia one will work on Linux. Or you can use Bumblebee: https://wiki.ubuntu.com/Bumblebee
This way you have intel graphics for basic desktop usage, with nvidia turned off, Intel is fast enough for that. If you want to game you can run your games with "optirun". However the Quadro NVS 4200M is a low-end card and also more for business usage than gaming.


Thanks I'll see what I can figure out.

Actually, what started this whole problem was that I was writing an OpenGL application and it was only detecting the Intel graphics card. I thought maybe I hadn't installed the proper OpenGL drivers yet, so I tried this tutorial. I probably would have been better off just going into the BIOS to begin with and turning off the Intel graphics. I know it's a low-end card too, I dont' need huge performance , just compatibility to write code for a 3.x + OpenGL context. Thanks again for helping.

Edit: Yep that was it :) awesome.
TerryNation
Level 1
Level 1
 
Posts: 7
Joined: Fri Dec 23, 2011 12:05 pm

Re: Installing Latest Nvidia Driver into Linux Mint 12

Postby shevaroyan on Sat Apr 14, 2012 7:28 pm

I am a nubie. I have managed to get LM12 to load to a graphics screen using nomodeset in grub. Tried then to install the correct NVIDIA graphics driver following the instructions here. When I try to create the file to disable nouveau I get warning messages which I think is telling me I do not have root priviledges and then when I try to install the NVIDIA file I successfully downloaded it fails to run saying I need to be root. What am I doing wrong?
shevaroyan
Level 1
Level 1
 
Posts: 4
Joined: Sat Apr 14, 2012 6:45 pm

Re: Installing Latest Nvidia Driver into Linux Mint 12

Postby AlbertP on Sun Apr 15, 2012 8:01 am

Please use the nvidia-current repository package, or the updated one from the Ubuntu-X-Swat PPA (for which I gave the how-to), instead of nvidia's downloads. And you indeed need root/administrator access. In the terminal you can put sudo before a command to get root access. If you want a file manager with root access please run:
Code: Select all
sudo nautilus .
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 16
Level 16
 
Posts: 6513
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Re: Installing Latest Nvidia Driver into Linux Mint 12

Postby shevaroyan on Sun Apr 15, 2012 1:34 pm

Hi, Well I followed your how-to up to the point "then use package manager to install NVIDIA driver". Hunted around for a bit, found synaptic on LM and searched for NVIDIA. Whole lot of stuff came up and I chose something that had 295 in the title. Seemed to install and wanted to update NVIDIA-Common too so I let it do its stuff. Now on reboot I get the splash screen with no menu button (bottom left) or buttons at the top of the screen. When I boot I still have to go into GRUB and change to nomodeset but even this is difficult because my monitor says settings are out of range and the text is so small it is hard to read what is said, let alone change things! I seem to be getting deeper and deeper into problems here! Help!
shevaroyan
Level 1
Level 1
 
Posts: 4
Joined: Sat Apr 14, 2012 6:45 pm

Re: Installing Latest Nvidia Driver into Linux Mint 12

Postby shevaroyan on Mon Apr 16, 2012 6:05 am

urdumania2012 wrote:I think if you use the nvidia-current repository package, or the updated one from the Ubuntu-X-Swat PPA instead of nvidia's downloads.I think that is best for you and you indeed need root/administrator access.


As a newbie, I only think I know what you are saying. After many hours of searching the 'net I have solved the impossible-to-read-grub text by editing and saving grub file. I removed the comment * from the line that had a ref to 640x480.
The bit about being root still confuses me. I am logged in with adm priviledges and when I was trying to follow the loading of the video driver blog even putting 'sudo' in front of everything I still had a heap of messages saying something about "need to be root". Anyhow, unless there is an easy explanation that can be left for now.

I now have a GUI screen with HOME and COMPUTER icons plus the box to enter my password. When I enter the correct password all I get is a few black screens then back to the log-on screen. If I go ALT CTRL F1 I can log in OK (not that it changes the GUI). I got to this point by trying to do what I think you are advising. I used synaptic package manager and searched for NVIDIA and there were several packages to choose from and as I said earlier chose the one with 295 in simply because that seems to come up a lot in the blogs. Am I on the right track? What do I do now?
shevaroyan
Level 1
Level 1
 
Posts: 4
Joined: Sat Apr 14, 2012 6:45 pm

Re: Installing Latest Nvidia Driver into Linux Mint 12

Postby AlbertP on Mon Apr 16, 2012 6:10 am

Did you install nvidia-current from synaptic? nvidia-settings alone isn't enough.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 16
Level 16
 
Posts: 6513
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Linux Mint is funded by ads and donations.
 
Next

Return to Tutorials / Howtos

Who is online

Users browsing this forum: No registered users and 6 guests