Differences between revisions 54 and 55
Revision 54 as of 2013-11-01 11:42:55
Size: 12483
Editor: warmsun0220
Comment:
Revision 55 as of 2013-11-01 11:44:22
Size: 12460
Editor: warmsun0220
Comment:
Deletions are marked like this. Additions are marked like this.
Line 47: Line 47:
=== Debian安装方式和nvidia安装方式的比较 === == Debian安装方式和nvidia安装方式的比较 ==
Line 58: Line 58:
=== 步骤 === == 步骤 ==
Line 61: Line 61:
==== 选择驱动程序版本 ==== === 选择驱动程序版本 ===
Line 84: Line 84:
==== 安装 === === 安装 ===
Line 90: Line 90:
===== 版本 304.88 ===== ==== 版本 304.88 ====
Line 107: Line 107:
===== 版本 173.14.35 (legacy GPUs) ===== ==== 版本 173.14.35 (legacy GPUs) ====
Line 124: Line 124:
===== 版本 96.43.23 (legacy GPUs) ===== ==== 版本 96.43.23 (legacy GPUs) ====
Line 140: Line 140:
==== Debian 6.0 "Squeeze" ====

===== Version 195.36.31 =====
=== Debian 6.0 "Squeeze" ===

==== Version 195.36.31 ====
Line 162: Line 162:
===== Version 173.14.27 (legacy GPUs) ===== ==== Version 173.14.27 (legacy GPUs) ====
Line 182: Line 182:
===== Version 96.43.18 (legacy GPUs) ===== ==== Version 96.43.18 (legacy GPUs) ====
Line 202: Line 202:
==== 检查驱动是否工作 ==== === 检查驱动是否工作 ===

Translation(s): English - Español - Français - Italiano - Русский - 简体中文


  • 该文档解释了在Debian系统中如何使用NVIDIA的显卡。

开源驱动

Debian 有三种支持NVIDIA显卡的开源驱动,你可以查看到你正在使用哪一种:

$ grep -B2 'Module class: X.Org Video Driver' /var/log/Xorg.0.log

你可以简单地 配置X 来改变所使用的开源驱动。

没有一个开源驱动能够完全支持3D加速, 即使是 Nouveau 驱动拥有3D加速. 只有闭源的 nvidia 支持完全的3D加速,但他们更复杂并且X更有可能崩溃,你的依赖NVIDIA的bug修复. 如果 X 崩溃并且让 X 和闭源的nvidia驱动一起工作似乎很难时 , 记得转换回开源驱动能够让X重新工作。

vesa

vesa 驱动是一个通用的视频驱动程序。

nv

nv 驱动通常比vesa驱动得到更好的结果,但是它没有包含在wheezy或者更新的版本中。

Nouveau

除了vesanv, Debian从squeeze开始包含Nouveau驱动. Nouveau驱动从官方NVIDIA驱动经过逆向工程得到。这些驱动都是实验性的,这个驱动是不推荐的,除非你的nv驱动有问题并且你不想使用nvidia驱动。 Nouveau 驱动从Wheezy开始变得稳定.

驱动安装

为了使用 nouveau 驱动, 你的内核 drm 版本和你的 libdrm 版本需要匹配。基本上安装可以以这种方式来做:

# apt-get install xserver-xorg-video-nouveau

然后 配置X并且设置 nouveau 作为你的设备驱动。

闭源驱动

为什么使用Debian特定的方法?

NVIDIA驱动程序可以使用NVIDIA的官方安装程序或Debian驱动包安装。每种方法都有其优点,但Debian的方式可能是更容易。 即使手动构建驱动模块,Debian的方法更可靠的并且从长远来看可能会节省劳动力。 无论哪种安装方法,故障诊断和排除 可能是有帮助的。

Debian安装方式和nvidia安装方式的比较

"Debian方式"的优点:

  • 更自动化,内核改变时能节省工作量。
  • 使用Debian软件包管理工具,所以它干净。如果你的系统在使用Debian的方式后崩溃了,那将是一个可报到BTS的bug
  • 可以在X运行时安装。(X必须重启来使驱动的更改生效)
  • Users of make-kpkg should find it fits easily into their existing build procedure.

  • 没有从“nvidia.com”下载文件,Debian软件包系统包含所有必要的部分。

NVIDIA的官方安装程序的优点:

步骤

选择驱动程序版本

Debian 7 "Wheezy"有三种可用的驱动程序版本:

Debian 6.0 "Squeeze"有三种可用的驱动程序版本:

所有上面的驱动程序版本都只有 x86 和 x86-64 架构可用,分别对应 (Debian i386AMD64).

安装

Debian 7 "Wheezy"

版本 304.88

为了支持英伟达(?GeForce)6xxx 和更高的GPUs (支持的设备). 对于更老的设备,参见 Version 173.14.35 (legacy GPUs) and 版本 96.43.23 (legacy GPUs).

  1. 增加 "contrib" 和 "non-free" 组件到 /etc/apt/sources.list, 例如:

    # Debian 7 "Wheezy"
    deb http://http.debian.net/debian/ wheezy main contrib non-free
  2. 更新的可用的软件包列表.安装适当的 linux-headers 和 kernel module 软件包:

    # aptitude update
    # aptitude -r install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-kernel-dkms
    • 这也将安装推荐的 nvidia-glx 软件包. DKMS将为系统构建nvidia模块。

  3. 使用 手动方式 或者 nvidia-xconfig,这将创建一个基本的xorg.conf文件

  4. 重启系统以在启动时将nouveau(内核驱动)加入黑名单.

版本 173.14.35 (legacy GPUs)

为了支持英伟达(?GeForce)5xxx / FX GPUs (支持的设备).

  1. 增加 "contrib" 和 "non-free" 组件到 /etc/apt/sources.list, 例如:

    # Debian 7 "Wheezy"
    deb http://http.debian.net/debian/ wheezy main contrib non-free
  2. 更新的可用的软件包列表。安装适当的 linux-headers 和 kernel module软件包:

    # aptitude update
    # aptitude -r install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-kernel-legacy-173xx-dkms

    这也将安装推荐的 nvidia-glx-legacy-173xx 软件包。DKMS将为系统构建nvidia模块。

  3. 使用 手动方式 或者 nvidia-xconfig,这将创建一个基本的xorg.conf文件

  4. 重启系统以在启动时将nouveau(内核驱动)加入黑名单.

版本 96.43.23 (legacy GPUs)

为了支持?GeForce 2, GeForce 3 和 GeForce 4 GPUs (支持的设备).

  1. 增加 "contrib" 和 "non-free" 组件到 /etc/apt/sources.list, 例如:

    # Debian 7 "Wheezy"
    deb http://http.debian.net/debian/ wheezy main contrib non-free
  2. 更新的可用的软件包列表。安装适当的 linux-headers 和 kernel module软件包:

    # aptitude update
    # aptitude -r install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-kernel-legacy-96xx-dkms

    这也将安装推荐的 nvidia-glx-legacy-96xx 软件包。DKMS将为系统构建nvidia模块。

  3. 使用 手动方式 或者 nvidia-xconfig,这将创建一个基本的xorg.conf文件.

  4. 重启系统以在启动时将nouveau(内核驱动)加入黑名单.

Debian 6.0 "Squeeze"

Version 195.36.31

For support of GeForce 6xxx and higher GPUs (supported devices), up to and including some GeForce 400 series devices. For older devices, see Version 173.14.27 (legacy GPUs) and Version 96.43.18 (legacy GPUs).

  1. Add "contrib" and "non-free" components to /etc/apt/sources.list, for example:

    # Debian 6.0 "Squeeze"
    deb http://http.debian.net/debian/ squeeze main contrib non-free
  2. Update the list of available packages. Install the appropriate linux-headers and kernel module packages:

    # aptitude update
    # aptitude -r install linux-headers-2.6-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-kernel-dkms

    This will also install the recommended nvidia-glx package. DKMS will build the nvidia module for your system.

  3. Update the initial ramdisk to include the nouveau blacklist (613951):

    # update-initramfs -u
  4. Create an Xorg server configuration file.

  5. Restart your system to enable the nouveau blacklist.

Version 173.14.27 (legacy GPUs)

For support of GeForce 5xxx / GeForce FX GPUs (supported devices).

  1. Add "contrib" and "non-free" components to /etc/apt/sources.list, for example:

    # Debian 6.0 "Squeeze"
    deb http://http.debian.net/debian/ squeeze main contrib non-free
  2. Update the list of available packages. Install the appropriate linux-headers and kernel module packages:

    # aptitude update
    # aptitude -r install linux-headers-2.6-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-kernel-legacy-173xx-dkms

    This will also install the recommended nvidia-glx-legacy-173xx package. DKMS will build the nvidia module for your system.

  3. Update the initial ramdisk to include the nouveau blacklist (613951):

    # update-initramfs -u
  4. Create an Xorg server configuration file.

  5. Restart your system to enable the nouveau blacklist.

Version 96.43.18 (legacy GPUs)

For support of GeForce 2, GeForce 3 and GeForce 4 GPUs (supported devices).

  1. Add "contrib" and "non-free" components to /etc/apt/sources.list, for example:

    # Debian 6.0 "Squeeze"
    deb http://http.debian.net/debian/ squeeze main contrib non-free
  2. Update the list of available packages. Install the appropriate linux-headers and kernel module packages:

    # aptitude update
    # aptitude -r install linux-headers-2.6-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-kernel-legacy-96xx-dkms

    This will also install the recommended nvidia-glx-legacy-96xx package. DKMS will build the nvidia module for your system.

  3. Update the initial ramdisk to include the nouveau blacklist (613951):

    # update-initramfs -u
  4. Create an Xorg server configuration file.

  5. Restart your system to enable the nouveau blacklist.

检查驱动是否工作

为了检查是否正在使用加速, 使用 glxinfo程序. 这个程序是在 mesa-utils 软件包中. 如果

$ glxinfo |grep rendering

返回值为 "direct rendering: Yes", 加速已经启用.

更多信息

  • For more information about the drivers, see:
    • /usr/share/doc/nvidia-glx/README.Debian
    • /usr/share/doc/nvidia-glx/README.txt.gz

    These files have loads of information about options and for troubleshooting NVIDIA's proprietary drivers. Here's an enticement for you to read them: somewhere in one of them you can find an explanation of how to suppress the NVIDIA splash screen every time you start an X server (hint: search for "NoLogo").

  • You can adjust the clock rates of your GPU and video RAM by running nvclock, nvclock_gtk, or nvclock_qt, available respectively in the nvclock, nvclock-gtk, and nvclock-qt packages. Obligatory warning: you can destroy your video hardware with these tools if you're not careful.
  • You can adjust some other, relatively obscure settings of the driver by running nvidia-settings, available in the nvidia-settings package.

另请参阅


CategoryProprietarySoftware