特殊:Badtitle/NS100:BinaryDriverHowto/Nvidia:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia}} | {{From|https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia}} | ||
{{Languages|UbuntuHelp:BinaryDriverHowto/Nvidia}} | {{Languages|UbuntuHelp:BinaryDriverHowto/Nvidia}} | ||
This guide is for installing the NVIDIA closed source binary drivers on a system running an NVIDIA graphics card. For other graphics cards refer to the BinaryDriverHowto. | |||
== Prerequisites == | == Prerequisites == | ||
* The command lspci | grep -i nvidia prints out a line of text | * The command <code><nowiki>lspci | grep -i nvidia</nowiki></code> prints out a line of text | ||
* You want one or more of the following: hardware-accelerated 3D, TV-Out support, dual head support | * You want one or more of the following: hardware-accelerated 3D, TV-Out support, dual head support | ||
== Installation == | == Installation == | ||
=== 7. | === Kubuntu 7.10 using the 'Restricted Drivers Manager' === | ||
As of Kubuntu 7.10 (Gutsy Gibbon) the recommended way to install the binary driver is to open System Settings '''KMenu → System Settings''', go to the '''Advanced''' tab and click '''Restricted Drivers'''. Then click the ''Administrator Mode'' button and check the box marked ''Enable'' to install the driver. This should install the right package for your card and set it up for you. | |||
=== Ubuntu 7.04 using 'Restricted Devices Manager' === | |||
As of Ubuntu 7.04 (Feisty Fawn) the recommended way to install the binary drivers is to use '''System → Administration → Restricted Devices Manager'''. This will try and automatically choose the correct version out of: | |||
* nvidia-glx-legacy (corresponds to the 71xx driver) | |||
* nvidia-glx (which corresponds to the 96xx driver) | |||
* nvidia-glx-new (which at the time of writing corresponded to the 97xx driver) | |||
If your card does not appear in this [http://us.download.nvidia.com/XFree86/Linux-x86/1.0-9755/README/appendix-a.html list of cards known by Ubuntu 7.04 NVIDIA binary drivers] (e.g. the 8600GT) then there is no Ubuntu 7.04 supported binary driver. For unsupported workarounds try the links in [[seealso See Also]]. | |||
Restricted Devices Manager may not work properly on machines that have previously used third party tools like 'envy' to install previous drivers | |||
''' | === Kubuntu 7.04 === | ||
==== Installing the driver ==== | |||
Kubuntu Feisty Fawn doesn't' have the Restricted Devices Manager so you have to install the packages manually. Open Adept '''K-Menu → System → Adept Manager''' and in the Search box put in <code><nowiki>nvidia-glx</nowiki></code>. You should see a few packages including ''nvidia-glx-new'', ''nvidia-glx'' and ''nvidia-glx-legacy'', use the link above to find the right driver for your card. Select the package for the driver you need to install (if you don't have ''linux-restricted-modules'' you should also select that package for install). | |||
=== | ==== Activating the driver ==== | ||
Once the driver is installed you need to set the system to use the driver. Open Konsole from '''K-Menu → System → Konsole''' and enter the command | |||
<pre><nowiki> | |||
sudo nvidia-xconfig</nowiki></pre> | |||
That will set the driver to be used from now on. To start using the driver you will need to logout and select ''Restart X Server'' from the menu, or press ''Alt+E'' | |||
==== | === Common Problems === | ||
==== Low Screen Resolutions ==== | |||
Often screen resolutions on offer are far lower than those offered with the open source driver. The NVIDIA binary driver seems to be very weak at reliably probing this information from the monitor and relies on additional information in xorg.conf. In Feisty, this information is not written into xorg.conf by default. | |||
See this [https://bugs.launchpad.net/ubuntu/+source/linux-restricted-modules-2.6.20/+bug/91292 launchpad bug talking about lost resolutions when using the NVIDIA binary driver] along with FixVideoResolutionHowto for further details and potential workarounds. | |||
==== Screen Blanks/Monitor Turns Off ==== | |||
Using a laptop with a Ge``Force Go card, or connecting the sole display via DVI on a dual-head system sometimes results in the screen not recieving a picture. This is caused by the driver outputting video to the VGA port on the graphics card, instead of DVI. | |||
The usual hint that you have this problem is when you hear the startup sound but nothing appears on the screen. If you do not hear any sound, you are more than likely experiencing unrelated problems. | |||
This is a [https://bugs.launchpad.net/ubuntu/+source/linux-restricted-modules-2.6.20/+bug/82312 known bug], and can be resolved by editing your <code><nowiki>/etc/X11/xorg.conf</nowiki></code> file: | |||
* Switch to the console (Try using <code><nowiki>ctrl+alt+F1</nowiki></code>, or reboot and select recovery mode from the GRUB menu.) | |||
* Use your text editor to open /etc/X11/xorg.conf. (try <code><nowiki>sudo nano /etc/X11/xorg.conf</nowiki></code>) | |||
* Find the line that says <code><nowiki>Section "Screen"</nowiki></code> | |||
* Insert a new line that says <code><nowiki>Option "UseDisplayDevice" "DFP"</nowiki></code>. | |||
* Save the file. If you had to restart into revocery mode, type <code><nowiki>reboot</nowiki></code>, otherwise restart your display using <code><nowiki>sudo /etc/init.d/gdm restart</nowiki></code>. | |||
==== Old Installs Conflicting ==== | |||
If either of nvidia-glx-legacy/nvidia-glx-new are installed a dotfile is created in <code><nowiki>/lib/linux-restricted-modules/</nowiki></code> . Even after these packages are uninstalled the dotfile will remain and may frustrate efforts to use the nvidia-glx package. See this [https://bugs.launchpad.net/ubuntu/+source/linux-restricted-modules-2.6.20/+bug/106217 launchpad bug about the hidden file not being removed when nvidia-glx-new is uninstalled] (also applies if nvidia-legacy is removed) for details. | |||
==== NVIDIA Legacy Driver ==== | |||
The above instructions did not work for me in Edgy on a Ge``Force 1 using the legacy drivers nvidia-glx-legacy 1.0.7184+2.6.17.6-1 | |||
==== | |||
The above instructions did not work for me in Edgy on a | |||
I had to manually edit <code><nowiki>/etc/X11/xorg.conf</nowiki></code> and change | I had to manually edit <code><nowiki>/etc/X11/xorg.conf</nowiki></code> and change | ||
第84行: | 第79行: | ||
otherwise the following error occurred when running GL programs like glxinfo: | otherwise the following error occurred when running GL programs like glxinfo: | ||
<pre><nowiki> | <pre><nowiki> | ||
Xlib: extension "GLX" missing on display ":0.0".</nowiki></pre> | Xlib: extension "GLX" missing on display ":0.0". | ||
Segmentation fault</nowiki></pre> | |||
This is not documented anywhere in the the legacy drivers (i.e. there is no mention of this in <code><nowiki>/usr/share/doc/nvidia-glx-legacy/*</nowiki></code>) but thankfully the following warning will appear in <code><nowiki>/var/log/Xorg.0.log</nowiki></code>: | This is not documented anywhere in the the legacy drivers (i.e. there is no mention of this in <code><nowiki>/usr/share/doc/nvidia-glx-legacy/*</nowiki></code>) but thankfully the following warning will appear in <code><nowiki>/var/log/Xorg.0.log</nowiki></code>: | ||
第92行: | 第88行: | ||
By default Composite is turned on and this will prevent OpenGL from working - the above stanza simply turns Composite off. These steps are only needed for the '''legacy''' driver. More information about this problem can be found in the [https://bugs.launchpad.net/ubuntu/+source/restricted-manager/+bug/91064 launchpad bug about GLX being disabled on legacy drivers]. | By default Composite is turned on and this will prevent OpenGL from working - the above stanza simply turns Composite off. These steps are only needed for the '''legacy''' driver. More information about this problem can be found in the [https://bugs.launchpad.net/ubuntu/+source/restricted-manager/+bug/91064 launchpad bug about GLX being disabled on legacy drivers]. | ||
==== Other ==== | |||
If the above fails try checking the [[troubleshooting Troubleshooting]] at the end of this page. If this still fails, or you are using a version of Ubuntu older than 7.04 or you wish to configure things manually then please read on. | |||
'''Please note:''' Any problems that occur after installing drivers not provided by Ubuntu repositories should '''not''' be reported to the launchpad bug area. If the drivers were downloaded from the NVIDIA web site then the [http://www.nvnews.net/vbulletin/forumdisplay.php?f=14 NVIDIA Linux web forum] is an appropriate place to report issues. If a third party installer was used please contact the third party for support. Other places for manual driver support can be found on the [http://www.ubuntu.com/support/communitysupport Community Support page]. | |||
=== Ubuntu/Kubuntu 6.10 and earlier === | |||
==== Enable restricted packages ==== | |||
* '''Note:''' If you are running Ubuntu/Kubuntu 6.10 (Edgy Eft) or later, the Restricted repositories might already be enabled. | |||
The NVIDIA drivers are in the "restricted" section of the Ubuntu package repository, so before you will be able to install the drivers, you must enable this section on your system. If you are following the MythTV setup guide this should already be done. | |||
===== In Ubuntu ===== | |||
* Select the '''System''' menu at the top of the screen. | |||
* Select '''Administration''' then '''Synaptic Package Manager'''. Enter your password when prompted. | |||
* In the package manager, select the '''Settings''' menu, then '''Repositories'''. | |||
* In the '''Software Preferences''' dialog that comes up, click the '''Add''' button. | |||
* In the '''Edit Repository''' dialog, ensure that the '''Restricted copyright''' box is checked, then press '''OK'''. | |||
* Press '''OK''' to close the '''Software Preferences''' dialog, when Synaptic asks you to reload the package database, say yes. | |||
===== In Kubuntu ===== | |||
* Open Adept Package Manager '''K-Menu → System → Adept Manager''' and enter your password. | |||
* Go to '''File → Manage Repositories''' and make sure that a line similar to <code><nowiki>deb http://archive.ubuntu.com/ubuntu main restricted</nowiki></code> exists, if not put that line in the '''New Repository''' box and click "Add" then "Apply". | |||
* You'll need to click "Fetch Updates" after you add the repository to apply the change. | |||
You now have access to the many additional packages in the restricted section, including the NVIDIA driver packages. | |||
==== Install and activate drivers ==== | |||
===== In Ubuntu ===== | |||
Packages may be installed by right-clicking on the package and selecting '''Mark for Installation'''. | |||
* Click the '''Search''' button and search for "linux-restricted-modules". You must have restricted modules enabled (see above). | |||
* Find the appropriate package for your kernel. For example, if you have '''linux-image-amd64-k8''' installed, then you should install '''linux-restricted-modules-amd64-k8'''. Selecting one will also install nvidia-kernel-common. (Note: you have to select the restricted modules first because the nvidia-glx package automatically installs the i386 one - and if you have a generic kernel image, the X will not work.) | |||
* Click the '''Search''' button and search for "nvidia-glx". | |||
* You will install either '''nvidia-glx-legacy''' or '''nvidia-glx'''. If your graphics card is at the end of [http://download.nvidia.com/XFree86/Linux-x86/1.0-8762/README/appendix-a.html this list of cards] (marked as "legacy"), you will need to install '''nvidia-glx-legacy'''. Otherwise, install '''nvidia-glx'''. | |||
* If you are going to compile 3D applications, install '''nvidia-glx-dev'''. (You probably won't need this) | |||
* Click the '''Apply''' button to install the new packages. | |||
* Once Synaptic has finished applying your changes, exit the application. | |||
* Select the '''Applications''' menu at the top of the screen, then '''Accessories''', then '''Terminal''', then procede to the [[activating Activating The Driver]] Section. | |||
===== In Kubuntu ===== | |||
Packages may be installed by right-clicking on the package and selecting '''Request Install'''. | |||
* In the '''Search''' box type "linux-restricted-modules". You must have restricted modules enabled (see above). | |||
* Find the appropriate package for your kernel. For example, if you have '''linux-image-amd64-k8''' installed, then you should install '''linux-restricted-modules-amd64-k8'''. Selecting one will also install nvidia-kernel-common. (Note: you have to select the restricted modules first because the nvidia-glx package automatically installs the i386 one - and if you have a generic kernel image, the X will not work.) | |||
* In the '''Search''' box search for "nvidia-glx". | |||
* You will install either '''nvidia-glx-legacy''' or '''nvidia-glx'''. If your graphics card is at the end of [http://download.nvidia.com/XFree86/Linux-x86/1.0-8762/README/appendix-a.html this list of cards] (marked as "legacy"), you will need to install '''nvidia-glx-legacy'''. Otherwise, install '''nvidia-glx'''. | |||
* If you are going to compile 3D applications, install '''nvidia-glx-dev'''. (You probably won't need this) | |||
* Click the '''Apply Changes''' button to install the new packages. | |||
* Once Adept has finished applying your changes, exit the application. | |||
* Open Konsole from '''K-Menu → System → Konsole''', then procede to the [[activating Activating The Driver]] Section. | |||
== Remove the | [[Anchor(activating)]] | ||
If you want to get rid of the | ===== Activating the Driver ===== | ||
* In the terminal window, if you are running Ubuntu/Kubuntu 6.10 Edgy, type the following: | |||
<pre><nowiki> | |||
sudo nvidia-xconfig</nowiki></pre> | |||
If you are running an earlier version, type the following instead: | |||
<pre><nowiki> | |||
sudo nvidia-glx-config enable</nowiki></pre> | |||
* Close all your applications, then logout and choose '''Restart X Server''' from the log-in screen menu, or restart your computer, to restart the X server. If you see an NVIDIA splashscreen, your drivers are properly installed. | |||
==== Remove the NVIDIA logotype ==== | |||
If you want to get rid of the NVIDIA logotype that shows up before your login screen you need to perform some manual edits in the Xorg configuration file. | |||
* Select the '''Applications''' menu at the top of the screen, then '''Accessories''' and then '''Terminal'''. | * Select the '''Applications''' menu at the top of the screen, then '''Accessories''' and then '''Terminal'''. | ||
第112行: | 第171行: | ||
== Troubleshooting == | == Troubleshooting == | ||
* | * Some people have reported a bug where the TTYs show blank, see [https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/129910 this link]. | ||
* It seems that a reboot is sometimes necessary for these changes to take effect. If 3D acceleration isn't working, try this first. | * It seems that a reboot is sometimes necessary for these changes to take effect. If 3D acceleration isn't working, try this first. | ||
第124行: | 第183行: | ||
* If you have successfully enabled the binary driver but experience lockups/freezes after a few minutes under Ubuntu 7.04 or later, it might be due to the driver failing to cope with CPU speed changes. See this [https://bugs.launchpad.net/ubuntu/+source/linux-restricted-modules-2.6.20/+bug/109643 launchpad bug about lockups with a white screen and black lines when CPU speed scaling is on]. | * If you have successfully enabled the binary driver but experience lockups/freezes after a few minutes under Ubuntu 7.04 or later, it might be due to the driver failing to cope with CPU speed changes. See this [https://bugs.launchpad.net/ubuntu/+source/linux-restricted-modules-2.6.20/+bug/109643 launchpad bug about lockups with a white screen and black lines when CPU speed scaling is on]. | ||
* | * If you are using nvidia-glx/nvidia-glx-new and the refresh rate appears wrong (or different to that actually '''reported by your monitor''') in gnome-display-properties, you are probably seeing the effects of the Dynamic``Twin``View feature. See this [https://bugs.launchpad.net/ubuntu/+source/linux-restricted-modules-2.6.20/+bug/92599 launchpad bug about being unable to "set" a proper screen refresh rate] for details of this behaviour. | ||
* If you get an error while loading NVIDIA module try to rebuild module dependencies by running depmod | * If you get an error while loading NVIDIA module try to rebuild module dependencies by running depmod: | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo depmod | sudo depmod | ||
第138行: | 第195行: | ||
</nowiki></pre> Either comment it out (using a # at the beginning the line) or set it to '''Off'''. | </nowiki></pre> Either comment it out (using a # at the beginning the line) or set it to '''Off'''. | ||
* If you have problems with video playback, e.g. in mplayer, gxine, or mythtv frontend with a legacy card, it may be due to too high a color depth (e.g. using NT6 Vanta/Vanta LT nvidia driver, I experienced flickering vertical bars & blue screen flashing). To fix this, manually edit <code><nowiki>/etc/X11/xorg.conf</nowiki></code> and change DefaultDepth to 16. | * If you have problems with video playback, e.g. in mplayer, gxine, or mythtv frontend with a legacy card, it may be due to too high a color depth (e.g. using NT6 Vanta/Vanta LT "nvidia" driver, I experienced flickering vertical bars & blue screen flashing). To fix this, manually edit <code><nowiki>/etc/X11/xorg.conf</nowiki></code> and change <code><nowiki>DefaultDepth</nowiki></code> to <code><nowiki>16</nowiki></code>. | ||
* For other problems, please visit the forums at http://www.ubuntuforums.org/ | * You may need to activate the "kernel framebuffer device interface" in X server. Copy/paste the below command into the terminal. The terminal will then start stepping you through each configuration setting. Most of the settings can be left at their defaults by pressing the ENTER button, but when you get to "Select the desired X server driver" (question 2), make sure to select "nvidia" and NOT "nv". At question 7 ("Activate kernel framebuffer device interface?") select "yes". Finish the rest of the questions (the rest of the settings can be left at their defaults) and then restart X server (or just restart your computer). If, when you reboot, you can't see the login screen, but instead get a message saying "X server failed to start (etc. etc.)", you will start in text mode (white text on black background) and it will ask you to login. After logging you will still be in text mode. Retype the same command below (make sure to write it down!) and then the configuration sequence will start again. This time at the "Activate kernel framebuffer device interface?") select "no" then restart your computer and your login screen will be restored. | ||
<pre><nowiki>sudo dpkg-reconfigure xserver-xorg | |||
</nowiki></pre> | |||
* There is a [http://us.download.nvidia.com/XFree86/Linux-x86/100.14.11/README/appendix-a.html list of cards supported by the latest NVIDIA binary drivers] (which are not necessarily shipped in a particular Ubuntu version) in the release notes of the latest driver (100.14.11 at the time of writing). A link to the latest stable driver can usually be found on the [http://www.nvidia.com/object/unix.html NVIDIA Unix portal page]. Links to beta drivers sometimes appear on the [http://www.nvnews.net/vbulletin/forumdisplay.php?f=14 NVIDIA Linux web forum]. Also see the following point. | |||
* Information (and common problems encountered) related to '''manual''' installation of the NVIDIA binary driver (using the .pkg from the NVIDIA website) can be read on the NvidiaManual page. | |||
* List of [https://bugs.launchpad.net/ubuntu/+bugs?field.searchtext=restricted+nvidia-glx&orderby=datecreated currently open NVIDIA binary driver bugs in launchpad]. | |||
* If <code><nowiki>dmesg | grep -i nv</nowiki></code> mentions <code><nowiki>NVRM: Xid</nowiki></code> your best bet is to [http://www.nvnews.net/vbulletin/showthread.php?t=46678 follow these instructions and then contact NVIDIA] as only NVIDIA have the source to decipher these error codes. Xid errors are caused for variety of reasons (interrupt issues, hardware conflicts/bugs, BIOS bugs, kernel bugs, driver bugs...) and [http://www.nvnews.net/vbulletin/showpost.php?p=1284698&postcount=23 receiving the same Xid code as someone else does not mean your problems are related]. | |||
* For other problems, please visit the forums at http://www.ubuntuforums.org/ . | |||
[[Anchor(seealso)]] | |||
== See Also == | == See Also == | ||
NvidiaManual - Guide to installing the official NVIDIA driver .pkg from the NVIDIA website on Ubuntu. Explains the drawbacks and benefits of manual installation and how to safely avoid conflicts with the Ubuntu provided NVIDIA binary drivers. | |||
NvidiaMultiMonitors | NvidiaMultiMonitors | ||
[[category: | [[category:CategoryDocumentation]] [[category:CategoryHardware]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2007年11月22日 (四) 12:06的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/af | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|Afrikaans| [[::BinaryDriverHowto/Nvidia/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/ar | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|العربية| [[::BinaryDriverHowto/Nvidia/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/az | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|azərbaycanca| [[::BinaryDriverHowto/Nvidia/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/bcc | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|جهلسری بلوچی| [[::BinaryDriverHowto/Nvidia/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/bg | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|български| [[::BinaryDriverHowto/Nvidia/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/br | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|brezhoneg| [[::BinaryDriverHowto/Nvidia/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/ca | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|català| [[::BinaryDriverHowto/Nvidia/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/cs | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|čeština| [[::BinaryDriverHowto/Nvidia/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/de | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|Deutsch| [[::BinaryDriverHowto/Nvidia/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/el | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|Ελληνικά| [[::BinaryDriverHowto/Nvidia/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/es | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|español| [[::BinaryDriverHowto/Nvidia/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/fa | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|فارسی| [[::BinaryDriverHowto/Nvidia/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/fi | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|suomi| [[::BinaryDriverHowto/Nvidia/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/fr | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|français| [[::BinaryDriverHowto/Nvidia/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/gu | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|ગુજરાતી| [[::BinaryDriverHowto/Nvidia/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/he | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|עברית| [[::BinaryDriverHowto/Nvidia/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/hu | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|magyar| [[::BinaryDriverHowto/Nvidia/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/id | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|Bahasa Indonesia| [[::BinaryDriverHowto/Nvidia/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/it | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|italiano| [[::BinaryDriverHowto/Nvidia/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/ja | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|日本語| [[::BinaryDriverHowto/Nvidia/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/ko | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|한국어| [[::BinaryDriverHowto/Nvidia/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/ksh | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|Ripoarisch| [[::BinaryDriverHowto/Nvidia/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/mr | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|मराठी| [[::BinaryDriverHowto/Nvidia/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/ms | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|Bahasa Melayu| [[::BinaryDriverHowto/Nvidia/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/nl | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|Nederlands| [[::BinaryDriverHowto/Nvidia/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/no | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|norsk| [[::BinaryDriverHowto/Nvidia/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/oc | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|occitan| [[::BinaryDriverHowto/Nvidia/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/pl | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|polski| [[::BinaryDriverHowto/Nvidia/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/pt | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|português| [[::BinaryDriverHowto/Nvidia/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/ro | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|română| [[::BinaryDriverHowto/Nvidia/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/ru | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|русский| [[::BinaryDriverHowto/Nvidia/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/si | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|සිංහල| [[::BinaryDriverHowto/Nvidia/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/sq | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|shqip| [[::BinaryDriverHowto/Nvidia/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/sr | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|српски / srpski| [[::BinaryDriverHowto/Nvidia/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/sv | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|svenska| [[::BinaryDriverHowto/Nvidia/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/th | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|ไทย| [[::BinaryDriverHowto/Nvidia/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/tr | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|Türkçe| [[::BinaryDriverHowto/Nvidia/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/vi | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|Tiếng Việt| [[::BinaryDriverHowto/Nvidia/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/yue | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|粵語| [[::BinaryDriverHowto/Nvidia/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/zh | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|中文| [[::BinaryDriverHowto/Nvidia/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/zh-hans | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|中文(简体)| [[::BinaryDriverHowto/Nvidia/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia | UbuntuHelp:BinaryDriverHowto/Nvidia | {{#if: | :}}BinaryDriverHowto/Nvidia}}/zh-hant | • {{#if: UbuntuHelp:BinaryDriverHowto/Nvidia|中文(繁體)| [[::BinaryDriverHowto/Nvidia/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:BinaryDriverHowto/Nvidia|:BinaryDriverHowto/Nvidia|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :BinaryDriverHowto/Nvidia/zh | | {{#ifexist: BinaryDriverHowto/Nvidia/zh | | {{#ifeq: {{#titleparts:BinaryDriverHowto/Nvidia|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:BinaryDriverHowto/Nvidia|1|-1|}} | zh | | }}
This guide is for installing the NVIDIA closed source binary drivers on a system running an NVIDIA graphics card. For other graphics cards refer to the BinaryDriverHowto.
Prerequisites
- The command
lspci | grep -i nvidia
prints out a line of text - You want one or more of the following: hardware-accelerated 3D, TV-Out support, dual head support
Installation
Kubuntu 7.10 using the 'Restricted Drivers Manager'
As of Kubuntu 7.10 (Gutsy Gibbon) the recommended way to install the binary driver is to open System Settings KMenu → System Settings, go to the Advanced tab and click Restricted Drivers. Then click the Administrator Mode button and check the box marked Enable to install the driver. This should install the right package for your card and set it up for you.
Ubuntu 7.04 using 'Restricted Devices Manager'
As of Ubuntu 7.04 (Feisty Fawn) the recommended way to install the binary drivers is to use System → Administration → Restricted Devices Manager. This will try and automatically choose the correct version out of:
- nvidia-glx-legacy (corresponds to the 71xx driver)
- nvidia-glx (which corresponds to the 96xx driver)
- nvidia-glx-new (which at the time of writing corresponded to the 97xx driver)
If your card does not appear in this list of cards known by Ubuntu 7.04 NVIDIA binary drivers (e.g. the 8600GT) then there is no Ubuntu 7.04 supported binary driver. For unsupported workarounds try the links in seealso See Also.
Restricted Devices Manager may not work properly on machines that have previously used third party tools like 'envy' to install previous drivers
Kubuntu 7.04
Installing the driver
Kubuntu Feisty Fawn doesn't' have the Restricted Devices Manager so you have to install the packages manually. Open Adept K-Menu → System → Adept Manager and in the Search box put in nvidia-glx
. You should see a few packages including nvidia-glx-new, nvidia-glx and nvidia-glx-legacy, use the link above to find the right driver for your card. Select the package for the driver you need to install (if you don't have linux-restricted-modules you should also select that package for install).
Activating the driver
Once the driver is installed you need to set the system to use the driver. Open Konsole from K-Menu → System → Konsole and enter the command
sudo nvidia-xconfig
That will set the driver to be used from now on. To start using the driver you will need to logout and select Restart X Server from the menu, or press Alt+E
Common Problems
Low Screen Resolutions
Often screen resolutions on offer are far lower than those offered with the open source driver. The NVIDIA binary driver seems to be very weak at reliably probing this information from the monitor and relies on additional information in xorg.conf. In Feisty, this information is not written into xorg.conf by default.
See this launchpad bug talking about lost resolutions when using the NVIDIA binary driver along with FixVideoResolutionHowto for further details and potential workarounds.
Screen Blanks/Monitor Turns Off
Using a laptop with a Ge``Force Go card, or connecting the sole display via DVI on a dual-head system sometimes results in the screen not recieving a picture. This is caused by the driver outputting video to the VGA port on the graphics card, instead of DVI.
The usual hint that you have this problem is when you hear the startup sound but nothing appears on the screen. If you do not hear any sound, you are more than likely experiencing unrelated problems.
This is a known bug, and can be resolved by editing your /etc/X11/xorg.conf
file:
- Switch to the console (Try using
ctrl+alt+F1
, or reboot and select recovery mode from the GRUB menu.) - Use your text editor to open /etc/X11/xorg.conf. (try
sudo nano /etc/X11/xorg.conf
) - Find the line that says
Section "Screen"
- Insert a new line that says
Option "UseDisplayDevice" "DFP"
. - Save the file. If you had to restart into revocery mode, type
reboot
, otherwise restart your display usingsudo /etc/init.d/gdm restart
.
Old Installs Conflicting
If either of nvidia-glx-legacy/nvidia-glx-new are installed a dotfile is created in /lib/linux-restricted-modules/
. Even after these packages are uninstalled the dotfile will remain and may frustrate efforts to use the nvidia-glx package. See this launchpad bug about the hidden file not being removed when nvidia-glx-new is uninstalled (also applies if nvidia-legacy is removed) for details.
NVIDIA Legacy Driver
The above instructions did not work for me in Edgy on a Ge``Force 1 using the legacy drivers nvidia-glx-legacy 1.0.7184+2.6.17.6-1
I had to manually edit /etc/X11/xorg.conf
and change
Section "Device" Identifier "NVIDIA Corporation NV10DDR [GeForce 256 DDR]" Driver "nv" BusID "PCI:1:0:0" EndSection
to
Section "Device" Identifier "NVIDIA Corporation NV10DDR [GeForce 256 DDR]" Driver "nvidia" BusID "PCI:1:0:0" EndSection
If Driver "nvidia"
is not found in xorg.conf then attempting to modprobe nvidia
will result in an error message (thus sudo nvidia-glx-config enable
would not work for me). After this change, to allow OpenGL programs to run the following had to be added to the bottom of /etc/X11/xorg.conf
:
Section "Extensions" Option "Composite" "Disable" EndSection
otherwise the following error occurred when running GL programs like glxinfo:
Xlib: extension "GLX" missing on display ":0.0". Segmentation fault
This is not documented anywhere in the the legacy drivers (i.e. there is no mention of this in /usr/share/doc/nvidia-glx-legacy/*
) but thankfully the following warning will appear in /var/log/Xorg.0.log
:
(EE) GLX is not supported with the Composite extension
By default Composite is turned on and this will prevent OpenGL from working - the above stanza simply turns Composite off. These steps are only needed for the legacy driver. More information about this problem can be found in the launchpad bug about GLX being disabled on legacy drivers.
Other
If the above fails try checking the troubleshooting Troubleshooting at the end of this page. If this still fails, or you are using a version of Ubuntu older than 7.04 or you wish to configure things manually then please read on.
Please note: Any problems that occur after installing drivers not provided by Ubuntu repositories should not be reported to the launchpad bug area. If the drivers were downloaded from the NVIDIA web site then the NVIDIA Linux web forum is an appropriate place to report issues. If a third party installer was used please contact the third party for support. Other places for manual driver support can be found on the Community Support page.
Ubuntu/Kubuntu 6.10 and earlier
Enable restricted packages
- Note: If you are running Ubuntu/Kubuntu 6.10 (Edgy Eft) or later, the Restricted repositories might already be enabled.
The NVIDIA drivers are in the "restricted" section of the Ubuntu package repository, so before you will be able to install the drivers, you must enable this section on your system. If you are following the MythTV setup guide this should already be done.
In Ubuntu
- Select the System menu at the top of the screen.
- Select Administration then Synaptic Package Manager. Enter your password when prompted.
- In the package manager, select the Settings menu, then Repositories.
- In the Software Preferences dialog that comes up, click the Add button.
- In the Edit Repository dialog, ensure that the Restricted copyright box is checked, then press OK.
- Press OK to close the Software Preferences dialog, when Synaptic asks you to reload the package database, say yes.
In Kubuntu
- Open Adept Package Manager K-Menu → System → Adept Manager and enter your password.
- Go to File → Manage Repositories and make sure that a line similar to
deb http://archive.ubuntu.com/ubuntu main restricted
exists, if not put that line in the New Repository box and click "Add" then "Apply". - You'll need to click "Fetch Updates" after you add the repository to apply the change.
You now have access to the many additional packages in the restricted section, including the NVIDIA driver packages.
Install and activate drivers
In Ubuntu
Packages may be installed by right-clicking on the package and selecting Mark for Installation.
- Click the Search button and search for "linux-restricted-modules". You must have restricted modules enabled (see above).
- Find the appropriate package for your kernel. For example, if you have linux-image-amd64-k8 installed, then you should install linux-restricted-modules-amd64-k8. Selecting one will also install nvidia-kernel-common. (Note: you have to select the restricted modules first because the nvidia-glx package automatically installs the i386 one - and if you have a generic kernel image, the X will not work.)
- Click the Search button and search for "nvidia-glx".
- You will install either nvidia-glx-legacy or nvidia-glx. If your graphics card is at the end of this list of cards (marked as "legacy"), you will need to install nvidia-glx-legacy. Otherwise, install nvidia-glx.
- If you are going to compile 3D applications, install nvidia-glx-dev. (You probably won't need this)
- Click the Apply button to install the new packages.
- Once Synaptic has finished applying your changes, exit the application.
- Select the Applications menu at the top of the screen, then Accessories, then Terminal, then procede to the activating Activating The Driver Section.
In Kubuntu
Packages may be installed by right-clicking on the package and selecting Request Install.
- In the Search box type "linux-restricted-modules". You must have restricted modules enabled (see above).
- Find the appropriate package for your kernel. For example, if you have linux-image-amd64-k8 installed, then you should install linux-restricted-modules-amd64-k8. Selecting one will also install nvidia-kernel-common. (Note: you have to select the restricted modules first because the nvidia-glx package automatically installs the i386 one - and if you have a generic kernel image, the X will not work.)
- In the Search box search for "nvidia-glx".
- You will install either nvidia-glx-legacy or nvidia-glx. If your graphics card is at the end of this list of cards (marked as "legacy"), you will need to install nvidia-glx-legacy. Otherwise, install nvidia-glx.
- If you are going to compile 3D applications, install nvidia-glx-dev. (You probably won't need this)
- Click the Apply Changes button to install the new packages.
- Once Adept has finished applying your changes, exit the application.
- Open Konsole from K-Menu → System → Konsole, then procede to the activating Activating The Driver Section.
Activating the Driver
- In the terminal window, if you are running Ubuntu/Kubuntu 6.10 Edgy, type the following:
sudo nvidia-xconfig
If you are running an earlier version, type the following instead:
sudo nvidia-glx-config enable
- Close all your applications, then logout and choose Restart X Server from the log-in screen menu, or restart your computer, to restart the X server. If you see an NVIDIA splashscreen, your drivers are properly installed.
Remove the NVIDIA logotype
If you want to get rid of the NVIDIA logotype that shows up before your login screen you need to perform some manual edits in the Xorg configuration file.
- Select the Applications menu at the top of the screen, then Accessories and then Terminal.
- Type the following:
gksudo gedit /etc/X11/xorg.conf
or if you are using Kubuntu:
kdesu kate /etc/X11/xorg.conf
- Find the line Driver "nvidia" in the Device section
- Just after this line, add
Option "NoLogo"
- Save the file and exit
- Close all your applications, then press Ctrl-Alt-Backspace to restart the X server. If the logotype is gone and everything seems to work you are done.
Troubleshooting
- Some people have reported a bug where the TTYs show blank, see this link.
- It seems that a reboot is sometimes necessary for these changes to take effect. If 3D acceleration isn't working, try this first.
- If 3D acceleration still isn't working, be sure that you have the right version of linux-restricted-modules installed. It must match the version of the running kernel.
- If you have the right version of linux-restricted-modules installed and 3D acceleration still isn't working, open your
/etc/X11/xorg.conf
file for editing withgksudo gedit /etc/X11/xorg.conf
orkdesu kate /etc/X11/xorg.conf
if using Kubuntu. Be sure that theDriver
entry underSection "Device"
is set to"nvidia"
.
- If suspend no longer works, see NvidiaLaptopBinaryDriverSuspend (this applies to desktops too).
- If you have successfully enabled the binary driver but experience lockups/freezes after a few minutes under Ubuntu 7.04 or later, it might be due to the driver failing to cope with CPU speed changes. See this launchpad bug about lockups with a white screen and black lines when CPU speed scaling is on.
- If you are using nvidia-glx/nvidia-glx-new and the refresh rate appears wrong (or different to that actually reported by your monitor) in gnome-display-properties, you are probably seeing the effects of the Dynamic``Twin``View feature. See this launchpad bug about being unable to "set" a proper screen refresh rate for details of this behaviour.
- If you get an error while loading NVIDIA module try to rebuild module dependencies by running depmod:
sudo depmod
- If you're feeling frisky and decide to fiddle around with the X Server Options for your Device in
/etc/X11/xorg.conf
and Firefox refuses to load (returnssegmentation fault
when launched from a terminal), this line may be the culprit:
Option "NoRenderExtension" "On"
Either comment it out (using a # at the beginning the line) or set it to Off.
- If you have problems with video playback, e.g. in mplayer, gxine, or mythtv frontend with a legacy card, it may be due to too high a color depth (e.g. using NT6 Vanta/Vanta LT "nvidia" driver, I experienced flickering vertical bars & blue screen flashing). To fix this, manually edit
/etc/X11/xorg.conf
and changeDefaultDepth
to16
.
- You may need to activate the "kernel framebuffer device interface" in X server. Copy/paste the below command into the terminal. The terminal will then start stepping you through each configuration setting. Most of the settings can be left at their defaults by pressing the ENTER button, but when you get to "Select the desired X server driver" (question 2), make sure to select "nvidia" and NOT "nv". At question 7 ("Activate kernel framebuffer device interface?") select "yes". Finish the rest of the questions (the rest of the settings can be left at their defaults) and then restart X server (or just restart your computer). If, when you reboot, you can't see the login screen, but instead get a message saying "X server failed to start (etc. etc.)", you will start in text mode (white text on black background) and it will ask you to login. After logging you will still be in text mode. Retype the same command below (make sure to write it down!) and then the configuration sequence will start again. This time at the "Activate kernel framebuffer device interface?") select "no" then restart your computer and your login screen will be restored.
sudo dpkg-reconfigure xserver-xorg
- There is a list of cards supported by the latest NVIDIA binary drivers (which are not necessarily shipped in a particular Ubuntu version) in the release notes of the latest driver (100.14.11 at the time of writing). A link to the latest stable driver can usually be found on the NVIDIA Unix portal page. Links to beta drivers sometimes appear on the NVIDIA Linux web forum. Also see the following point.
- Information (and common problems encountered) related to manual installation of the NVIDIA binary driver (using the .pkg from the NVIDIA website) can be read on the NvidiaManual page.
- If
dmesg | grep -i nv
mentionsNVRM: Xid
your best bet is to follow these instructions and then contact NVIDIA as only NVIDIA have the source to decipher these error codes. Xid errors are caused for variety of reasons (interrupt issues, hardware conflicts/bugs, BIOS bugs, kernel bugs, driver bugs...) and receiving the same Xid code as someone else does not mean your problems are related.
- For other problems, please visit the forums at http://www.ubuntuforums.org/ .
See Also
NvidiaManual - Guide to installing the official NVIDIA driver .pkg from the NVIDIA website on Ubuntu. Explains the drawbacks and benefits of manual installation and how to safely avoid conflicts with the Ubuntu provided NVIDIA binary drivers.
NvidiaMultiMonitors