![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 | ||||||
|
Should have gone to University
![]() Join Date: Jan 2008
Location: UK
My beans are hidden!
Ubuntu 9.04 Jaunty Jackalope
|
HowTo: NViDIA 185.18 Drivers in Ubuntu
Preface
This is HowTo is intended for Intrepid and/or Jaunty users who are experiencing oddball issues, such as glyphs, artifacts, and glitches from applications that use lots of small pixmaps/images. For users of Ubuntu Hardy, in my testing, there is no such problem evident in the 2.6.24 and prior kernels, so you can blissfully ignore this thread. But, the way I will present HowTo installing NViDIA drivers may be true for almost any Debian-based distribution. This HowTo may not necessarily be for users with any card that predates the Geforce 8 series, as mentioned here. Infact, it should be noted that all the success stories I've had have mostly come from people using 8400 and up cards. You are expected to be an experienced user, adept in the commandline, and have the ability to work out some Xorg related problems for yourself. As of June, the 185.18 drivers have been officially released as stable. More about other recent driver versions can be found here. List of known working cards through testimonials and my own testing: Quadro-NVS 110M, GeForce Go7400, GTX260, GTX280, 6150SE, 7050PV, 7300SE, 7800GS, 8400GS, 8500GT, 8600GT, 8600GTS, 8800GT, 8800GTS, 9300MGS 9500GT, 9600GT, 9800GT, 9800GX2 If this guide works for you, please post your GFX card name/model so I can add it to the list. Introduction On the 6th of April, AaronP announced that the NViDIA 185.19 drivers are out for testing. In the list of updates, one stuck out of the crowd, as highlighted in this NViDIA thread. This led to an affiliate asking about if this resulted in an improvement on the the way Firefox runs on Linux if you use an NViDIA driver. The reply: Quote:
"Wow", thought I. That is a very compelling reason, and I am crazy enough to risk breaking my system to try it. Reset Xorg back to Failsafe Defaults Before doing anything, it's time to say goodbye to nvidia for the moment and bring back the original Xorg configuration. This is done by opening a terminal and running: Code:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.original sudo dpkg-reconfigure -phigh xserver-xorg Also, we won't be needing the xorg.conf.orginal file, but it serves: 1) As a backup incase you wish to reinstall the NViDIA drivers through the 'Hardware Drivers' utility. 2) As a reference for those who have specially tweaked xorg.conf files (such as dual-monitor, etc). Installing Build Deps Next, we need to be ensured that we have all build-essential programs and our current kernel headers. Code:
sudo apt-get install build-essential pkg-config linux-headers-$(uname -r) Ubuntu and Hardware Drivers If you run Ubuntu and have an NViDIA card, you more than likely used the 'Hardware Drivers' utility to install them. This can lead to conflicts later down the line, as New drivers/Old drivers will cause API conflicts that will prevent X from starting. So you are required to uninstall/remove any nvidia modules and references before beginning. Code:
sudo apt-get --purge remove nvidia-glx nvidia-glx-legacy nvidia-glx-new nvidia-settings Code:
dpkg -l | grep nvidia Code:
sudo aptitude purge $(dpkg -l | grep nvidia | awk '{print $2}')
Code:
sudo aptitude purge $(aptitude search -F%p '~c nvidia' '~i nvidia') As an optional step, for some people who may find a conflict during installation, removing the xorg-nv drivers beforehand appears to work for them. Code:
sudo apt-get --purge remove xserver-xorg-video-nv Another optional step, is to disable the nv and nvidia_new drivers from loading too, for those who have further problems. Code:
gksudo gedit /etc/default/linux-restricted-modules-common Code:
DISABLED_MODULES="nv nvidia_new" Downloading the Drivers Depending on your OS architechture, you will need to get the right one for your kernel. If you are on 32bit Ubuntu, run: Code:
wget ftp://download.nvidia.com/XFree86/Linux-x86/185.18.36/NVIDIA-Linux-x86-185.18.36-pkg0.run -O NVIDIA-Linux-185.18.pkg.run Code:
wget ftp://download.nvidia.com/XFree86/Linux-x86_64/185.18.36/NVIDIA-Linux-x86_64-185.18.36-pkg0.run -O NVIDIA-Linux-185.18.pkg.run Code:
sudo install NVIDIA-Linux-185.18.pkg.run /usr/src sudo ln -fs /usr/src/NVIDIA-Linux-185.18.pkg.run /usr/src/nvidia-driver Downloading the Release Candidate Drivers Optional Step: If you'd rather install the latest RC drivers, do the following instead. If you are on 32bit Ubuntu, run: Code:
wget ftp://download.nvidia.com/XFree86/Linux-x86/190.42/NVIDIA-Linux-x86-190.42-pkg0.run -O NVIDIA-Linux-190.42.pkg.run Code:
wget ftp://download.nvidia.com/XFree86/Linux-x86_64/190.42/NVIDIA-Linux-x86_64-190.42-pkg0.run -O NVIDIA-Linux-190.42.pkg.run Code:
sudo install NVIDIA-Linux-190.42.pkg.run /usr/src sudo ln -fs /usr/src/NVIDIA-Linux-190.42.pkg.run /usr/src/nvidia-driver Kill X Now, it's time to stop X and the gdm (or kdm for Kubuntu Users) This requires that you logout and switch to another tty console ( Ctrl+Alt+F1 ). Login to the shell, and kill gdm: Code:
sudo /etc/init.d/gdm stop In some rare instances, stopping gdm won't stop Xorg, due to the Xsession being busy with whatever error has occurred (Ubuntu goes into Low Resolution mode, X failed to start, etc). In these instances, it is required that you run a kill of Xorg before you can continue with the installation of the driver. Code:
sudo killall Xorg Installing NViDIA Afterwards, its time to install the drivers. Code:
sudo sh /usr/src/nvidia-driver
Once finished, it is now time to reboot: Code:
sudo reboot Before you Initiate the Driver Now, since NViDIA didn't reconfigure the xorg.conf file, you will boot into the VESA drivers. To setup the xorg.conf file for nvidia, login, open a terminal, and run: Code:
sudo cp /etc/X11/xorg.conf.original /etc/X11/xorg.conf sudo nvidia-xconfig Quote:
Now, not everyone may experience a smooth transition, and there are a number of small problems that you may run into that need addressing first. The most common one probably being a non-existent module listed in the xorg.conf file. And if you have had a successful transition, and everything works. The first thing you may notice is a nice new NViDIA splash logo that you probably want to be removed too. If you get this, just run the following: Code:
sudo sed -i '/Section\s*.Screen./a\ Option "NoLogo" "True"' /etc/X11/xorg.conf X Time And that is it! To reload into your new nvidia drivers, close all running applications and logout/login again. If you are running Ubuntu Hardy/Intrepid, this can be done by pressing Ctrl+Alt+Backspace. If you are running Ubuntu Jaunty, then you'll have to manually logout, or in some cases, reboot your machine in order for the new driver to load and work. Keep in sync with kernel updates Now with custom compiled nvidia modules, you'll have to ensure that the drivers get recompiled whenever a new kernel gets released. For reference on how to do this, follow this thread to set it up: http://ubuntuforums.org/showthread.php?t=835573 But, for clarification, open a new file named update-nvidia Code:
gedit update-nvidia Code:
sudo mkdir -p /etc/kernel/postinst.d sudo install update-nvidia /etc/kernel/postinst.d Setting up Twin Graphics Cards Some people I have been supporting use twin view with two NViDIA graphics cards. While this is perfectly fine, you may run into problems if your xorg.conf file is setup to handle only one card. Such a setup will look like this when you go to edit the xorg.conf file. PHP Code:
Code:
lspci | grep VGA Quote:
Code:
sudo nano /etc/X11/xorg.conf So, our example of 04:00.0 becomes: PHP Code:
Folding@Home Please don't ask any support questions on F@H, I am not the one to ask. There have been a few notes of people not being able to get F@H working after running through this guide. Just for reference, someone has written a general walkthrough here. When I get round to it, I'll look into setting it up cleanly and you'll see it here. EDID Issues This is a work-in-progress section that will be updated over the next week or so. In this section I will attempt to address the rare cases that the EDID of the monitor is incorrect/invalid, and this forces the nvidia driver to load into a low resolution. The way you can tell if you are affected by this is by running the following: Code:
grep -n "EDID" /var/log/Xorg*log Quote:
Troubleshooting and Errors So even after following the guide, it still doesn't work? Your situation is far greater than a simple "it works" or "it doesn't work". Taking that small bit of effort into finding out why X won't start and working around it using what utilities you have at your dispense so you can work around it can go a long way, even if there is a small learning curve or eye training involved. In the event that it doesn't work, switch to a tty console, login, and use the following techniques to debug X. Review your xorg.conf file Code:
grep -n "^(EE)" /var/log/Xorg*log If there is an error emitted, for example: Quote:
Review the output of syslog Code:
grep -i "nvidia\|NVRM" /var/log/syslog Another example of a typical error: Quote:
Usually this is because the old module is still in cache, and hasn't been unloaded yet. But in most cases, if a reboot doesn't solve it, then make sure you have removed all installed nvidia references with "--purge" Code:
sudo aptitude purge $(dpkg -l | grep nvidia | awk '{print $2}')
Uninstalling NViDIA Drivers If all else fails and you just can't make it work, or you aren't fully satisfied with the driver and wish to return to the maintained driver in the Ubuntu repositories. Then you can easily uninstall the driver by running the following: Code:
sudo nvidia-uninstall sudo dpkg-reconfigure -phigh xserver-xorg sudo apt-get install xserver-xorg-video-all sudo rm /usr/src/nvidia-driver /usr/src/NVIDIA-Linux-185.pkg.run /etc/kernel/postinst.d/update-nvidia Help and Feedback Please review this HowTo, and express anything you think should be added, changed, and/or removed. If you would like support, after X fails to start, switch to a tty console, login, and run the following: Code:
sudo /etc/init.d/gdm stop sudo nvidia-bug-report.sh sudo dpkg-reconfigure -phigh xserver-xorg sudo /etc/init.d/gdm start Lastly, if it is of any help, you may wish to review the NViDIA Readme documents listed for the x86 (Ubuntu 32bit) or the x86_64 (Ubuntu 64bit) drivers for any further information and help on getting your drivers setup and working properly. Also, if you your problem is obscure, you may have better luck asking on the NViDIA forums: http://www.nvnews.net/vbulletin/forumdisplay.php?f=14 Regards Iain
__________________
![]() Last edited by tinivole; 3 Weeks Ago at 02:32 PM.. |
||||||
|
|
|
|
|
#2 |
|
5 Cups of Ubuntu
![]() Join Date: Oct 2008
Beans: 27
|
Re: HowTo: NViDIA 185.19 Beta Drivers in Intrepid
Continuation of:
http://ubuntuforums.org/showthread.php?t=1124372&page=4 I still get the same error... :/ Nice good though. Really nice! Now, your guide did quite a few things more than what I've read previously, and one of the steps generated an intriguing error. On 'sudo nvidia-xconfig' I got: Code:
Using X configuration file: "/etc/X11/xorg.conf".
VALIDATION ERROR: Data incomplete in file /etc/X11/xorg.conf.
Device section "Configured Video Device" must have a Driver
line.
Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.backup'
New X configuration file written to '/etc/X11/xorg.conf'
On the second run, it worked fine. |
|
|
|
|
|
#3 | |
|
Should have gone to University
![]() Join Date: Jan 2008
Location: UK
My beans are hidden!
Ubuntu 9.04 Jaunty Jackalope
|
Re: HowTo: NViDIA 185.19 Beta Drivers in Intrepid
Quote:
Code:
sudo nvidia-xconfig If so, just ignore it... Ubuntu uses strange auto-magically-config tricks that flag warnings to the nvidia-xconfig parser. But serve only as warnings, and don't affect the resultant xorg.conf file. [EDIT] Also, is there anything else in the output of Xorg.log and Syslog that has changed? I am really intrigued now. ![]() Regards Iain
__________________
![]() Last edited by tinivole; April 20th, 2009 at 10:50 AM.. |
|
|
|
|
|
|
#4 |
|
Should have gone to University
![]() Join Date: Jan 2008
Location: UK
My beans are hidden!
Ubuntu 9.04 Jaunty Jackalope
|
Re: HowTo: NViDIA 185.19 Beta Drivers in Intrepid
* Small Update *
Also, if anyone wants to test this out, you can use LiveCDs to attempt this without messing up your current setup. There is just one small difference between an installed system and a LiveCD, that is when asked to run: Code:
sudo reboot Code:
sudo /etc/init.d/gdm start Regards Iain
__________________
![]() Last edited by tinivole; April 20th, 2009 at 10:57 AM.. |
|
|
|
|
|
#5 |
|
Gee! These Aren't Roasted!
![]() Join Date: Nov 2007
Beans: 208
|
Thank you very much indeed for this How To!
I used the experimental NVIDIA-Linux-x86_64-185.19-pkg2.run drivers on Jaunty alternate 64. I am very grateful |
|
|
|
|
|
#6 |
|
Gee! These Aren't Roasted!
![]() Join Date: Nov 2004
Beans: 173
|
Re: HowTo: NViDIA 185.19 Beta Drivers in Ubuntu
thanks it works great here
Nvidia 8800 Gt Jaunty (since alpha6) 64 |
|
|
|
|
|
#7 |
|
A Carafe of Ubuntu
![]() Join Date: Nov 2006
Beans: 110
|
Re: HowTo: NViDIA 185.19 Beta Drivers in Ubuntu
I find an easier way to install the drivers is to use a PPA such as:
https://launchpad.net/~rvm/+archive/libs And then install "nvidia-180-modaliases". Now the drivers will be available in jockey (Restricted Drivers Manager). |
|
|
|
|
|
#8 | |
|
First Cup of Ubuntu
![]() Join Date: Nov 2006
Beans: 9
|
Re: HowTo: NViDIA 185.19 Beta Drivers in Ubuntu
Please edit
Quote:
|
|
|
|
|
|
|
#9 | |
|
Should have gone to University
![]() Join Date: Jan 2008
Location: UK
My beans are hidden!
Ubuntu 9.04 Jaunty Jackalope
|
Re: HowTo: NViDIA 185.19 Beta Drivers in Ubuntu
Quote:
Also, don't forget to look at the Keep in sync with kernel updates section if you haven't done so already, that is the key to this howto. If the installation works, you need a good maintenance scheme. Changed I don't know how that happened ... was fine last time I looked Regards Iain
__________________
![]() Last edited by tinivole; April 21st, 2009 at 11:30 PM.. |
|
|
|
|
|
|
#10 |
|
Skinny Extra Sweet Ubuntu
![]() Join Date: Sep 2006
Beans: 3,173
Ubuntu Karmic Koala (testing)
|
Re: HowTo: NViDIA 185.19 Beta Drivers in Ubuntu
Thanks, great howto!
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|