Page 1 of 7

Nvidia Graphics Drivers - Install Guide

Posted: Thu Sep 29, 2011 12:33 pm
by Oscar799
This is how Debian advises it should be done

http://wiki.debian.org/NvidiaGraphicsDrivers

Re: Nvidia Graphics Drivers - Install Guide

Posted: Thu Sep 29, 2011 1:23 pm
by proxima_centauri
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

Re: Nvidia Graphics Drivers - Install Guide

Posted: Sun Oct 02, 2011 3:43 am
by Monsta
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.

Re: Nvidia Graphics Drivers - Install Guide

Posted: Sun Oct 02, 2011 8:46 am
by proxima_centauri
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:

Re: Nvidia Graphics Drivers - Install Guide

Posted: Sun Oct 02, 2011 9:35 am
by Elmacus
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

Re: Nvidia Graphics Drivers - Install Guide

Posted: Sun Oct 02, 2011 10:23 am
by proxima_centauri
Thanks Elmacus, I edit my original post to be sure the information is seen.

Re: Nvidia Graphics Drivers - Install Guide

Posted: Mon Oct 03, 2011 2:36 am
by Monsta
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

Re: Nvidia Graphics Drivers - Install Guide

Posted: Sun Oct 09, 2011 5:09 pm
by CapitalG
thanks for sticking this :D

Re: Nvidia Graphics Drivers - Install Guide

Posted: Fri Oct 14, 2011 8:17 am
by DoctorBho
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.

Re: Nvidia Graphics Drivers - Install Guide

Posted: Sun Oct 16, 2011 12:29 pm
by oneNF
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/NvidiaGraphicsDr ... ersions.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

Re: Nvidia Graphics Drivers - Install Guide

Posted: Mon Oct 17, 2011 4:37 pm
by Mad_Sunday
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

Re: Nvidia Graphics Drivers - Install Guide

Posted: Mon Oct 17, 2011 5:22 pm
by proxima_centauri
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.

Re: Nvidia Graphics Drivers - Install Guide

Posted: Mon Oct 24, 2011 4:03 pm
by galen
note if you try to remove nouveau from synaptic it will attempt and balk at removing essential programs.
Command line works.
Synatpic no.

Re: Nvidia Graphics Drivers - Install Guide

Posted: Mon Oct 24, 2011 5:16 pm
by galen
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.

Re: Nvidia Graphics Drivers - Install Guide

Posted: Mon Oct 24, 2011 6:07 pm
by proxima_centauri
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?

Re: Nvidia Graphics Drivers - Install Guide

Posted: Mon Oct 24, 2011 6:16 pm
by mstombs
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!

Re: Nvidia Graphics Drivers - Install Guide

Posted: Mon Oct 24, 2011 6:21 pm
by zerozero
galen wrote: I tried
nvidia-xorgconfig
it did not produce a working X
you should do nvidia-xconfig

Re: Nvidia Graphics Drivers - Install Guide

Posted: Tue Oct 25, 2011 1:34 pm
by galen
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.

Re: Nvidia Graphics Drivers - Install Guide

Posted: Wed Oct 26, 2011 11:28 am
by galen
note:
blacklisting nouveau was imperative

Re: Nvidia Graphics Drivers - Install Guide

Posted: Wed Oct 26, 2011 3:03 pm
by drewlong
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/d ... 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