Nvidia Graphics Drivers - Install Guide

Questions about hardware and drivers
Forum rules
Before you post please read this

Nvidia Graphics Drivers - Install Guide

Postby Oscar799 on Thu Sep 29, 2011 12:33 pm

This is how Debian advises it should be done

http://wiki.debian.org/NvidiaGraphicsDrivers
Last edited by Oscar799 on Thu Sep 29, 2011 12:34 pm, edited 1 time in total.
Reason: Thread stickied
Image
"Don't fix it if it ain't broken,don't break it if you can't fix it" Husse
Registered Linux User #511789
User avatar
Oscar799
Level 18
Level 18
 
Posts: 8854
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

Linux Mint is funded by ads and donations.
 

Re: Nvidia Graphics Drivers - Install Guide

Postby proxima_centauri on Thu Sep 29, 2011 1:23 pm

TL:DR;

For the newer nvidia cards listed in http://us.download.nvidia.com/XFree86/L ... chips.html

install the following packages through Package Manager or terminal:
Code: Select all
apt install nvidia-kernel-dkms nvidia-glx build-essential nvidia-settings nvidia-xconfig


For older cards listed in http://us.download.nvidia.com/XFree86/L ... dix-a.html

install the following packages through Package Manager or terminal:
Code: Select all
apt install nvidia-kernel-legacy-173xx-dkms nvidia-glx-legacy-173xx build-essential
nvidia-settings nvidia-xconfig


For ancient cards listed in http://us.download.nvidia.com/XFree86/L ... dix-a.html

Install the following packages through Package Manager or terminal:
Code: Select all
apt install nvidia-kernel-legacy-96xx-dkms nvidia-glx-legacy-96xx build-essential
nvidia-settings nvidia-xconfig


When done, execute nvidia-xconfig in terminal. After a reboot, the driver is installed.
Code: Select all
sudo nvidia-xconfig


* Full credit to fnkbss; copied from http://community.linuxmint.com/tutorial/view/331

EDIT:
Suggested to remove or blacklist the default nouveau driver after nvidia driver installation. (Thank you Elmacus for the recommendation)

Some users have reported trouble with removing the nouveau driver, and I recommend performing the blacklist only.

To blacklist:
Code: Select all
sudo echo blacklist nouveau > /etc/modprobe.d/blacklist-nouveau.conf


Removal (in terminal):
Code: Select all
apt remove --purge xserver-xorg-video-nouveau libdrm-nouveau1a
User avatar
proxima_centauri
Level 11
Level 11
 
Posts: 3976
Joined: Tue Dec 25, 2007 3:24 pm
Location: NB, Canada

Re: Nvidia Graphics Drivers - Install Guide

Postby Monsta on Sun Oct 02, 2011 3:43 am

I think the sgfxi script deserves to be at least mentioned in the thread with such a name. Even though it's not a part of Debian.
Monsta
Level 8
Level 8
 
Posts: 2454
Joined: Fri Aug 19, 2011 3:46 am

Re: Nvidia Graphics Drivers - Install Guide

Postby proxima_centauri on Sun Oct 02, 2011 8:46 am

Monsta wrote:I think the sgfxi script deserves to be at least mentioned in the thread with such a name. Even though it's not a part of Debian.

Anybody is certainly welcome to contribute a tutorial for using the sgfxi script. :wink:
User avatar
proxima_centauri
Level 11
Level 11
 
Posts: 3976
Joined: Tue Dec 25, 2007 3:24 pm
Location: NB, Canada

Re: Nvidia Graphics Drivers - Install Guide

Postby Elmacus on Sun Oct 02, 2011 9:35 am

Do not forget to remove NOUVEAU before restart or else you might end up with blinking cursor only.
These drivers is installed by default and need to be removed:
xserver-xorg-video-nouveau
libdrm-nouveau1a

Use search in synaptic to remove or paste this in terminal as su:
Code: Select all
apt-get purge xserver-xorg-video-nouveau libdrm-nouveau1a
LMDE 64 bit. Use my advices on your own risk, it might be wrong on your system.
Laptop LMDE SID, Desktop home LMDE Testing, Desktop work LMDE UP4.
"If you can't apt-get something, it isn't useful or doesn't exist"
User avatar
Elmacus
Level 2
Level 2
 
Posts: 60
Joined: Mon Mar 07, 2011 9:44 am

Re: Nvidia Graphics Drivers - Install Guide

Postby proxima_centauri on Sun Oct 02, 2011 10:23 am

Thanks Elmacus, I edit my original post to be sure the information is seen.
User avatar
proxima_centauri
Level 11
Level 11
 
Posts: 3976
Joined: Tue Dec 25, 2007 3:24 pm
Location: NB, Canada

Re: Nvidia Graphics Drivers - Install Guide

Postby Monsta on Mon Oct 03, 2011 2:36 am

proxima_centauri wrote:Anybody is certainly welcome to contribute a tutorial for using the sgfxi script. :wink:

Well I'm not really sure if there's a need for one more sgfxi tutorial...

There's a manual: http://smxi.org/docs/sgfxi-manual.htm
There's an options list with descriptions: http://smxi.org/docs/options.htm#sgfxi
There's a kind of brief manual: http://techpatterns.com/forums/about933.html
Finally, there's some help you can get by running "sgfxi -h", and it's pretty detailed for just a list of options.

The only problem with the online docs is that they are outdated. No worries - the script's own help is not. :D
Monsta
Level 8
Level 8
 
Posts: 2454
Joined: Fri Aug 19, 2011 3:46 am

Re: Nvidia Graphics Drivers - Install Guide

Postby CapitalG on Sun Oct 09, 2011 5:09 pm

thanks for sticking this :D
User avatar
CapitalG
Level 3
Level 3
 
Posts: 103
Joined: Wed Sep 21, 2011 4:02 am

Re: Nvidia Graphics Drivers - Install Guide

Postby DoctorBho on Fri Oct 14, 2011 8:17 am

Thanks from here as well.

I booted up into my 3.0 kernel (dropping me to a command line), and ran sgfxi - but that didn’t quite do it...

I had to change my sources back to testing, dist-upgrade, and then run sgfxi.

That got everything going - including Cheese, which wasn’t showing the effects! So I will be sticking with Debian testing, I think. The Mint repo is a nice idea, but my (very short) experience has been that I had more trouble than the testing repos.
DoctorBho
Level 1
Level 1
 
Posts: 6
Joined: Sat Oct 08, 2011 11:19 am

Re: Nvidia Graphics Drivers - Install Guide

Postby oneNF on Sun Oct 16, 2011 12:29 pm

Thanks for posting this - I just installed Linux Debian - Kernel 3.0 - I missed this thread, good on me - so took a few hours of pulling it all together but managed to set up nvidia and compiz.

I mainly post this here for those who are interested in a slightly alternative way, as the way I read it there is a bug in http://bugs.debian.org/504692 nvidia-config and most of the approaches I found didn't combine both nvidia and compiz instructions, or work fully for me.

Cheers
C.

#note: this is not a script just a collection of instructions
#determine your kernel version
uname -r

#confirm that you have the kernel headers installed
#linux-headers-<version>
apt search linux-headers-

#run script to determine if the correct nvidia driver is available on your system
#http://wiki.debian.org/NvidiaGraphicsDrivers?action=AttachFile&do=view&target=nvidia-versions.sh
#the script can be updated with new infromation, theinstructions are at the bottom of the script
#bash nvidia-versions.sh

#remove nouveau as it conflicts with nvidia
sudo apt remove xserver-xorg-video-nouveau

#install and compile the nvidia kernal drivers
sudo apt install nvidia-kernel-dkms

#confirm the install of glx worked
apt-get install nvidia-glx${VERSION}

#backup your xorg.conf file
#although you may not have one if it is a new install
cp -p /etc/X11/xorg.conf /etc/X11/xorg.conf.bak

#note there is a known bug in the app nvidia-xconfig
#http://bugs.debian.org/504692

#alter or create a new xorg.config
gksudo gedit /etc/X11/xorg.conf

#add the following content
#Section "Module"
# Load "glx"
#EndSection

#Section "Device"
# Identifier "Video Card"
# Driver "nvidia"
# Option "AddARGBVisuals" "True"
# Option "AddARGBGLXVisuals" "True"
#EndSection

#save and close everything

#restart x - use keyboard or reboot as there is a bug in gdm3
#http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=590534
#ctrl-alt-bkspc

#confirm that it is now working
glxinfo |grep rendering
#direct rendering: yes -- is good

#create file
gksudo gedit ~/.gnomerc
#add the following line without the #s
#export WINDOW_MANAGER=/usr/bin/compiz
#save the file and reboot
Julia - AMD Phenom 4x 2.0Ghz - 4GB
oneNF
Level 1
Level 1
 
Posts: 18
Joined: Thu Jul 14, 2011 4:32 am

Re: Nvidia Graphics Drivers - Install Guide

Postby Mad_Sunday on Mon Oct 17, 2011 4:37 pm

proxima_centauri wrote:For the TL:DR; folks,

For the newer nvidia cards listed in http://us.download.nvidia.com/XFree86/L ... chips.html

install the following packages:
Code: Select all
nvidia-kernel-dkms nvidia-glx build-essential nvidia-settings nvidia-xconfig


For older cards listed in http://us.download.nvidia.com/XFree86/L ... dix-a.html

install the following packages:
Code: Select all
nvidia-kernel-legacy-173xx-dkms nvidia-glx-legacy-173xx build-essential
nvidia-settings nvidia-xconfig


For ancient cards listed in http://us.download.nvidia.com/XFree86/L ... dix-a.html

Install the following packages:
Code: Select all
nvidia-kernel-legacy-96xx-dkms nvidia-glx-legacy-96xx build-essential
nvidia-settings nvidia-xconfig


When done, execute nvidia-xconfig in terminal. After a reboot, the driver is installed.

* Full credit to fnkbss; copied from http://community.linuxmint.com/tutorial/view/331

EDIT:
Suggested to remove or blacklist the default nouveau driver after nvidia driver installation. (Thank you Elmacus for the recommendation)
Removal:
Code: Select all
apt remove --purge xserver-xorg-video-nouveau libdrm-nouveau1a

Or blacklist:
Code: Select all
sudo echo blacklist nouveau > /etc/modprobe.d/blacklist-nouveau.conf



Thanks for the above, I managed to get my Nvidia Ion graphics working using it. However, I suggest you alter the command line commands to include "sudo apt-get" as someone new to Linux may not realise those bits are missing.

I have since updated my system and have big problems with the new 3.0 kernel. I have had to return to the 2.6 kernel in order to get a working system again. If I boot into the new kernel I end up at a tty terminal and I'm unable to get x working, despite trying to install the nvidia drivers again (I am told that they are already there). I suspect the "upgraded" system is again trying to use the nouveau drivers again (but obviously they are not there) any ideas how to fix this?

Pete
User avatar
Mad_Sunday
Level 2
Level 2
 
Posts: 91
Joined: Mon Jun 29, 2009 6:14 pm
Location: Staffordshire, England

Re: Nvidia Graphics Drivers - Install Guide

Postby proxima_centauri on Mon Oct 17, 2011 5:22 pm

Mad_Sunday wrote:However, I suggest you alter the command line commands to include "sudo apt-get" as someone new to Linux may not realise those bits are missing.

AFAIK, Linux Mint is able to use "apt", instead of "sudo apt-get". EDIT: Oh, I see what you mean now, the list was intended to be installed through package maanger; but I'll clarify that.

Please create a new thread for issues not related to the installation of the NVIDIA drivers.
User avatar
proxima_centauri
Level 11
Level 11
 
Posts: 3976
Joined: Tue Dec 25, 2007 3:24 pm
Location: NB, Canada

Re: Nvidia Graphics Drivers - Install Guide

Postby galen on Mon Oct 24, 2011 4:03 pm

note if you try to remove nouveau from synaptic it will attempt and balk at removing essential programs.
Command line works.
Synatpic no.
on-line since 1992, Linux user since 1998: redhat, caldera, debian, mandrake, vector, slackware, peanut, mepis, arch, ubuntu, damn small, slax, partedmagic, puppy, mint.
Say no to Linux bloat, forced nouveau usage.
Free Julian Assange and Bradley Manning.
User avatar
galen
Level 2
Level 2
 
Posts: 90
Joined: Sat Oct 18, 2008 7:17 pm
Location: Canada, Halifax

Re: Nvidia Graphics Drivers - Install Guide

Postby galen on Mon Oct 24, 2011 5:16 pm

I just tried the above instructions.
I do not want compiz ever.

My previously working LMDE is now dead.
Blinking cursor.

I tried
nvidia-xorgconfig
it did not produce a working X

I tried several manual configurations that I've used over the years that have worked.
They failed.

In future is it too much to ask for "tutorials" be actually based on a working system, non virtual setups, non best guess ?

Thank you for your time, I look forward to another mysterious forum account lockout and Kanji CAPCHA password recovery goose chase.
on-line since 1992, Linux user since 1998: redhat, caldera, debian, mandrake, vector, slackware, peanut, mepis, arch, ubuntu, damn small, slax, partedmagic, puppy, mint.
Say no to Linux bloat, forced nouveau usage.
Free Julian Assange and Bradley Manning.
User avatar
galen
Level 2
Level 2
 
Posts: 90
Joined: Sat Oct 18, 2008 7:17 pm
Location: Canada, Halifax

Re: Nvidia Graphics Drivers - Install Guide

Postby proxima_centauri on Mon Oct 24, 2011 6:07 pm

galen wrote:In future is it too much to ask for "tutorials" be actually based on a working system, non virtual setups, non best guess ?

I have personally used the instructions in this thread to install the latest nvidia driver, with success. Other users have used this guide and reported success. Don't assume a lack of quality in this tutorial.

Did you install nvidia drivers before or after update and installation of Update Pack 3? Did you follow the instructions to a tee? Did you blacklist the nouveau driver since you had problems removing it?
User avatar
proxima_centauri
Level 11
Level 11
 
Posts: 3976
Joined: Tue Dec 25, 2007 3:24 pm
Location: NB, Canada

Re: Nvidia Graphics Drivers - Install Guide

Postby mstombs on Mon Oct 24, 2011 6:16 pm

I didn't follow instructions and got a flashing cursor in the 3.0 kernel, but selecting the last working 2.6 kernel with grub allowed me to use synaptic and temporarily enabled 'debian experimental' to get the latest 285.05.09 nvidia-glx drivers (which had worked on this PC before). Have since uninstalled nouveau - not yet needed blacklisting!
mstombs
Level 1
Level 1
 
Posts: 4
Joined: Sat Oct 22, 2011 6:27 am

Re: Nvidia Graphics Drivers - Install Guide

Postby zerozero on Mon Oct 24, 2011 6:21 pm

galen wrote:I tried
nvidia-xorgconfig
it did not produce a working X

you should do nvidia-xconfig
Image

[ bliss of ignorance ]
zerozero
Level 16
Level 16
 
Posts: 6477
Joined: Tue Jul 07, 2009 2:29 pm

Re: Nvidia Graphics Drivers - Install Guide

Postby galen on Tue Oct 25, 2011 1:34 pm

zerozero wrote:
galen wrote:I tried
nvidia-xorgconfig
it did not produce a working X

you should do nvidia-xconfig


I made a typo.

From another distro I deleted the LMDE /etc/X11/xorg.conf
and rebooted to LMDE.
It gave me a vesa X, which was a start.
I reinstalled the proper nvidia list for my card.
It worked.

xorg.log does a sense of humor
Code: Select all
[ 11699.363] Warning: Xalloc: requesting unpleasantly large amount of memory: 0 bytes.
on-line since 1992, Linux user since 1998: redhat, caldera, debian, mandrake, vector, slackware, peanut, mepis, arch, ubuntu, damn small, slax, partedmagic, puppy, mint.
Say no to Linux bloat, forced nouveau usage.
Free Julian Assange and Bradley Manning.
User avatar
galen
Level 2
Level 2
 
Posts: 90
Joined: Sat Oct 18, 2008 7:17 pm
Location: Canada, Halifax

Re: Nvidia Graphics Drivers - Install Guide

Postby galen on Wed Oct 26, 2011 11:28 am

note:
blacklisting nouveau was imperative
on-line since 1992, Linux user since 1998: redhat, caldera, debian, mandrake, vector, slackware, peanut, mepis, arch, ubuntu, damn small, slax, partedmagic, puppy, mint.
Say no to Linux bloat, forced nouveau usage.
Free Julian Assange and Bradley Manning.
User avatar
galen
Level 2
Level 2
 
Posts: 90
Joined: Sat Oct 18, 2008 7:17 pm
Location: Canada, Halifax

Re: Nvidia Graphics Drivers - Install Guide

Postby drewlong on Wed Oct 26, 2011 3:03 pm

I have been through the mill several times with Squeeze and LMDE and NVIDIA drivers before coming across this post.

http://tinyplanet.ca/~lsorense/debian/debian-nvidia-dri-howto.html

Nice and simple, I has worked painlessly several times for me, on several different platforms. Just remember to run nvidia-xconfig before rebooting.
hope it helps. :D
drewlong
Level 1
Level 1
 
Posts: 15
Joined: Mon Nov 30, 2009 10:21 am

Linux Mint is funded by ads and donations.
 
Next

Return to Hardware Support

Who is online

Users browsing this forum: No registered users and 2 guests