Nvidia

Differences between revisions 20 and 49 (spanning 29 versions)
Revision 20 as of 2005-11-24 20:09:33
Size: 3140
Editor: c-67-183-18-60
Comment:
Revision 49 as of 2006-06-13 17:03:15
Size: 5113
Editor: e01
Comment: formatting
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Installation Procedure =
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 have already done this, skip to step 7.
## This page should be rewritten using ["BinaryDriverHowto/ATI"] as a model, with an emphasis on the differences in procedure and packages between the current driver and the legacy driver. These differences are in the package containing the kernel modules in addition to the package containing the Xorg modules.
## I think the normal nvidia-glx driver works well for older cards now. Is nvidia-glx-legacy obsolete?
This guide is for installing the NVIDIA drivers on a system running an nVidia graphics card. For other drivers, refer to the BinaryDriverHowto

||'''Contents'''[[BR]][[TableOfContents]]||

== Prerequisites ==
 * The command lspci | grep nVidia prints out a line of text
 * You need hardware-accelerated 3D support

== Installation ==

=== Enable restricted packages ===

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.
Line 5: Line 18:
 2. Select '''Administration''' then '''Synaptic Package Manager'''.
 3. In the package manager, select the "Settings" menu, then "Repositories".
 2. Select '''Administration''' then '''Synaptic Package Manager'''. Enter your password when prompted.
 3. In the package manager, select the '''Settings''' menu, then '''Repositories'''.
Line 10: Line 23:
 7. You now have access to the many additional packages in the '''restricted''' section, including the nvidia driver packages.
 8. Click the '''Search''' button and search for "nvidia".
 9. Once the search is complete, click the white box next to the following packages and select '''Mark for Installation''' in the menu that pops up:
   * Everybody should install:
     * nvidia-settings
   * If you have an older TNT, TNT2, TNT Ultra, or Geforce1 card:
     * nvidia-glx-legacy
   * Otherwise if you have a newer card:
     * nvidia-glx
 10. Press the '''Search''' button again and this time search for "linux-restricted-modules".
 11. Once the search is complete find '''linux-resricted-modules-686''' in the list and mark it for installation the same way as before.
 10. Click the '''Apply''' button to install the new packages.
 11. Once Synaptic has finished applying your changes, exit the application.
 12. Select the '''Applications''' menu at the top of the screen, then '''System Tools''' and then '''Terminal'''.
 13. In the terminal window, type:
  sudo nvidia-glx-config enable
Line 27: Line 24:
 14. Close all your applications, then press '''Control-alt-backspcae''' to restart the X server. If you see an nVidia splashscreen after hitting control-alt-backspace, your drivers are properly installed. You now have access to the many additional packages in the restricted section, including the NVIDIA driver packages.
Line 29: Line 26:
= Notes = === Install and activate drivers ===
Packages may be installed by right-clicking on the package and selecting '''Mark for Installation'''.
Line 31: Line 29:
If you are going to compile 3d applications, you will want to install the '''nvidia-glx-dev''' package ''Note'':
Line 33: Line 31:
'''Note''': If you wish to use these drivers and run the XMMS music player, you should be aware of [https://bugzilla.ubuntu.com/show_bug.cgi?id=1724 this bug (fixed at least in Breezy]. You can get around this bug by installing libmik.  1. Click the '''Search''' button and search for "nvidia".
 2. 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'''.
 3. If you are going to compile 3D applications, install '''nvidia-glx-dev'''.
 4. If you are running Hoary Hedgehog or Breezy Badger, then install '''nvidia-settings''' and '''nvidia-xconfig'''. ''DO NOT'' install either package in Ubuntu 6.06 LTS because it will remove '''nvidia-glx'''. These programs are now provided in '''nvidia-glx'''.
 5. Click the '''Search''' button and search for "linux-restricted-modules". You must have restricted modules enabled (see above).
 6. Find the appropriate module for your kernel. For example, if you have '''linux-image-amd64-k8''' installed, then you should install '''linux-restricted-modules-amd64-k8'''.
 7. Click the '''Apply''' button to install the new packages.
 8. Once Synaptic has finished applying your changes, exit the application.
 9. Select the '''Applications''' menu at the top of the screen, then '''Accessories''', then '''Terminal'''.
 10. In the terminal window, type the following:
  {{{
sudo nvidia-glx-config enable}}}
 11. Close all your applications, then press '''Ctrl-Alt-Backspace''' to restart the X server. If you see an NVIDIA splashscreen after hitting '''Ctrl-Alt-Backspace''', your drivers are properly installed.
Line 35: Line 45:
'''Note''': Be sure to have the right version of linux-restricted-modules installed. It must match the version of the running kernel. === 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.
 1. Select the '''Applications''' menu at the top of the screen, then '''Accessories''' and then '''Terminal'''.
 2. Type the following:
  {{{
sudo gedit /etc/X11/xorg.conf}}}
 3. Find the line Driver "nvidia" in the Device section
 4. Just after this line, add
  {{{
Option "NoLogo"}}}
 5. Save the file and exit
 6. 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.
Line 37: Line 58:
'''Note''': Render''''''Accel has a bug. Memory leak and crashes. Disable it in /etc/X11/xorg.conf in the section "Device".
{{{
Option "RenderAccel" "false"}}}
== Troubleshooting ==
Line 41: Line 60:
'''Disabling the nVidia logo on Gnome/KDE startup:''' To get rid of it, add the following line to /etc/X11/xorg.conf in the section "Device"
{{{
Option "NoLogo"}}}
 * It seems that a reboot is sometimes necessary for these changes to take effect. If 3D acceleration isn't working, try this first.
Line 45: Line 62:
'''Getting suspend to work with the binary driver:'''
See NvidiaLaptopBinaryDriverSuspend
 * 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.
Line 48: Line 64:
 * 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 with {{{sudo gedit /etc/X11/xorg.conf}}} and be sure that the {{{Driver}}} entry under {{{Section "Device"}}} is set to {{{"nvidia"}}}.
Line 49: Line 66:
For other drivers, refer to the BinaryDriverHowto  * If you get an error while loading NVIDIA module try to rebuild module dependencies by running depmod.
 {{{
sudo depmod
}}}

 * If suspend no longer works, see NvidiaLaptopBinaryDriverSuspend

 * For other problems, please visit the forums at http://www.ubuntuforums.org
Line 51: Line 76:

CategoryDocumentation CategoryCleanup

This guide is for installing the NVIDIA drivers on a system running an nVidia graphics card. For other drivers, refer to the BinaryDriverHowto

Prerequisites

  • The command lspci | grep nVidia prints out a line of text
  • You need hardware-accelerated 3D support

Installation

Enable restricted packages

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.

  1. Select the System menu at the top of the screen.

  2. Select Administration then Synaptic Package Manager. Enter your password when prompted.

  3. In the package manager, select the Settings menu, then Repositories.

  4. In the Software Sources dialog that comes up, click the Add button.

  5. In the Edit Repository dialog, ensure that the Restricted copyright box is checked, then press OK.

  6. Press OK to close the Software Sources dialog, when Synaptic asks you to reload the package database, say yes.

You now have access to the many additional packages in the restricted section, including the NVIDIA driver packages.

Install and activate drivers

Packages may be installed by right-clicking on the package and selecting Mark for Installation.

Note:

  1. Click the Search button and search for "nvidia".

  2. 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.

  3. If you are going to compile 3D applications, install nvidia-glx-dev.

  4. If you are running Hoary Hedgehog or Breezy Badger, then install nvidia-settings and nvidia-xconfig. DO NOT install either package in Ubuntu 6.06 LTS because it will remove nvidia-glx. These programs are now provided in nvidia-glx.

  5. Click the Search button and search for "linux-restricted-modules". You must have restricted modules enabled (see above).

  6. Find the appropriate module for your kernel. For example, if you have linux-image-amd64-k8 installed, then you should install linux-restricted-modules-amd64-k8.

  7. Click the Apply button to install the new packages.

  8. Once Synaptic has finished applying your changes, exit the application.
  9. Select the Applications menu at the top of the screen, then Accessories, then Terminal.

  10. In the terminal window, type the following:
    • sudo nvidia-glx-config enable
  11. Close all your applications, then press Ctrl-Alt-Backspace to restart the X server. If you see an NVIDIA splashscreen after hitting Ctrl-Alt-Backspace, 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.

  1. Select the Applications menu at the top of the screen, then Accessories and then Terminal.

  2. Type the following:
    • sudo gedit /etc/X11/xorg.conf
  3. Find the line Driver "nvidia" in the Device section
  4. Just after this line, add
    • Option          "NoLogo"
  5. Save the file and exit
  6. 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

  • 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 with sudo gedit /etc/X11/xorg.conf and be sure that the Driver entry under Section "Device" is set to "nvidia".

  • If you get an error while loading NVIDIA module try to rebuild module dependencies by running depmod.
    sudo depmod
  • If suspend no longer works, see NvidiaLaptopBinaryDriverSuspend

  • For other problems, please visit the forums at http://www.ubuntuforums.org

Part of UserDocumentation

CategoryDocumentation CategoryCleanup

BinaryDriverHowto/Nvidia (last edited 2008-08-06 16:22:27 by localhost)