Nvidia Graphics Drivers - Install Guide
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
Nvidia Graphics Drivers - Install Guide
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Nvidia Graphics Drivers - Install Guide
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:
For older cards listed in http://us.download.nvidia.com/XFree86/L ... dix-a.html
install the following packages through Package Manager or terminal:
For ancient cards listed in http://us.download.nvidia.com/XFree86/L ... dix-a.html
Install the following packages through Package Manager or terminal:
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)
Some users have reported trouble with removing the nouveau driver, and I recommend performing the blacklist only.
To blacklist:
Removal (in terminal):
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
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
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
Code: Select all
sudo nvidia-xconfig
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
Code: Select all
apt remove --purge xserver-xorg-video-nouveau libdrm-nouveau1a
Re: Nvidia Graphics Drivers - Install Guide
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
Anybody is certainly welcome to contribute a tutorial for using the sgfxi script.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.
Re: Nvidia Graphics Drivers - Install Guide
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:
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
Thanks Elmacus, I edit my original post to be sure the information is seen.
Re: Nvidia Graphics Drivers - Install Guide
Well I'm not really sure if there's a need for one more sgfxi tutorial...proxima_centauri wrote:Anybody is certainly welcome to contribute a tutorial for using the sgfxi script.
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.
Re: Nvidia Graphics Drivers - Install Guide
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.
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
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
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
Julia - AMD Phenom 4x 2.0Ghz - 4GB
Re: Nvidia Graphics Drivers - Install Guide
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:For older cards listed in http://us.download.nvidia.com/XFree86/L ... dix-a.htmlCode: Select all
nvidia-kernel-dkms nvidia-glx build-essential nvidia-settings nvidia-xconfig
install the following packages:For ancient cards listed in http://us.download.nvidia.com/XFree86/L ... dix-a.htmlCode: Select all
nvidia-kernel-legacy-173xx-dkms nvidia-glx-legacy-173xx build-essential nvidia-settings nvidia-xconfig
Install the following packages:When done, execute nvidia-xconfig in terminal. After a reboot, the driver is installed.Code: Select all
nvidia-kernel-legacy-96xx-dkms nvidia-glx-legacy-96xx build-essential nvidia-settings 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)
Removal:Or blacklist:Code: Select all
apt remove --purge xserver-xorg-video-nouveau libdrm-nouveau1a
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
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.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.
Please create a new thread for issues not related to the installation of the NVIDIA drivers.
Re: Nvidia Graphics Drivers - Install Guide
note if you try to remove nouveau from synaptic it will attempt and balk at removing essential programs.
Command line works.
Synatpic no.
Command line works.
Synatpic no.
Re: Nvidia Graphics Drivers - Install Guide
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.
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
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.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 ?
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
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
you should do nvidia-xconfiggalen wrote: I tried
nvidia-xorgconfig
it did not produce a working X
Re: Nvidia Graphics Drivers - Install Guide
I made a typo.zerozero wrote:you should do nvidia-xconfiggalen wrote: I tried
nvidia-xorgconfig
it did not produce a working X
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
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.
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.