NVIDIA显卡安装配置指南:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Wl1336412留言 | 贡献
无编辑摘要
Oneleaf留言 | 贡献
无编辑摘要
第1行: 第1行:
<p class="line862">[https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia 原文出处]:</p>
== nVidia 显卡安装配置指南 ==
<p class="line874">原文作者:</p>
<p class="line867">&nbsp;</p>
<p class="line867">&nbsp;</p>
<p class="line874">授权许可:</p>
<ul>
    <li style="list-style-type: none;">
    <p class="line891">[http://creativecommons.org/licenses/by-sa/2.0/ 创作共用协议Attribution-ShareAlike 2.0]</p>
    </li>
    <li style="list-style-type: none;">
    <p class="line891">[http://www.gnu.org/copyleft/fdl.htm GNU自由文档许可证]</p>
    </li>
</ul>
<p class="line874">翻译人员:</p>
<p class="line874">校正人员:</p>
<p class="line874">贡献人员:</p>
<p class="line874">适用版本:</p>
<p class="line862">文章状态:[[等待翻译]]</p>


<p class="line874">&nbsp;</p>
原文出处:https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia
<p>&nbsp;</p>
 
<p class="line867">&nbsp;</p>
原文作者:
<h2 id="head-19ad18f57a4ffcbad5da5e5d71e76d0194990e45">1. 系统需求</h2>
 
<p>&nbsp;</p>
授权许可:
<ul>
* [http://creativecommons.org/licenses/by-sa/2.0/ 创作共用协议Attribution-ShareAlike 2.0]
    <li>命令 lspci | grep nVidia 输出一行文字</li>
* [http://www.gnu.org/copyleft/fdl.html GNU自由文档许可证]
    <li>您需要3D硬件加速支持</li>
 
    <li>您需要 TV-Out 支持</li>
翻译人员:
</ul>
 
<p class="line867">&nbsp;</p>
校正人员:
<h2 id="head-72b2999378538a37b8920d7c675acd94dcc70b97">2. 安装</h2>
 
<p>&nbsp;</p>
贡献人员:
<p class="line867">&nbsp;</p>
 
<h3 id="head-105844e97f18a5953c5bf8466aa8ede856e1d5a9">2.1. 允许 restricted 软件包</h3>
适用版本:
<p>&nbsp;</p>
文章状态:等待翻译
<p class="line862">Note: If you are running Ubuntu 6.10 (Edgy Eft) or later, the Restricted repositories might already be enabled. Also if you are running Kubuntu, gedit is not installed by default, so you should use kate instead of gedit.<br />
----
注意:如果您正在运行的是 Ubuntu 6.10 (Edgy Eft) 或以后版本,Restricted 软件库则已被允许。如果您正在运行 Kubuntu 的话,gedit 缺省是没有安装的,您可以使用 kate 来代替 gedit。</p>
 
<p class="line874">NVIDIA驱动位与Ubuntu软件仓库的 &quot;restricted&quot; 模块中.因此,在准备安装该驱动前,请在您的系统中允许 restricted 软件库.</p>
 
<ol type="1">
 
    <li>
=== 系统需求 ===
    <p class="line862">选择屏幕上方的<strong>系统</strong>菜单.</p>
* 命令 lspci | grep nVidia 输出一行文字
    </li>
* 您需要3D硬件加速支持
    <li>
* 您需要 TV-Out 支持
    <p class="line862">选择<strong>系统管理</strong>, <strong>新立得软件包管理器</strong>. 当提示消息时请输入密码.</p>
 
    </li>
=== 安装 ===
    <li>
 
    <p class="line862">在软件包管理器中, 选择<strong>设置</strong>菜单,然后选择<strong>软件库</strong>.</p>
==== 允许 restricted 软件包 ====
    </li>
 
    <li>
Note: If you are running Ubuntu 6.10 (Edgy Eft) or later, the Restricted repositories might already be enabled. Also if you are running Kubuntu, gedit is not installed by default, so you should use kate instead of gedit.<br>
    <p class="line862">当出现<strong>软件源</strong>窗口时,点击<strong>添加</strong>按钮.</p>
注意:如果您正在运行的是 Ubuntu 6.10 (Edgy Eft) 或以后版本,Restricted 软件库则已被允许。如果您正在运行 Kubuntu 的话,gedit 缺省是没有安装的,您可以使用 kate 来代替 gedit。
    </li>
 
    <li>
NVIDIA驱动位与Ubuntu软件仓库的 "restricted" 模块中.因此,在准备安装该驱动前,请在您的系统中允许 restricted 软件库.
    <p class="line862">在 <strong>编辑软件库</strong> 窗口中,请确保选择了 <strong>Restricted copyright</strong> 复选框,然后按下<strong>确定</strong>按钮.</p>
* 选择屏幕上方的'''系统'''菜单.
    </li>
* 选择'''系统管理''', '''新立得软件包管理器'''. 当提示消息时请输入密码.
    <li>
* 在软件包管理器中, 选择'''设置'''菜单,然后选择'''软件库'''.
    <p class="line862">按下<strong>确定</strong>按钮以关闭<strong>软件源</strong>对话框, 当新立得软件包管理器问您是否重新加载软件源时,请选择 是 .</p>
* 当出现'''软件源'''窗口时,点击'''添加'''按钮.
    </li>
* 在 '''编辑软件库''' 窗口中,请确保选择了 '''Restricted copyright''' 复选框,然后按下'''确定'''按钮.
</ol>
* 按下'''确定'''按钮以关闭'''软件源'''对话框, 当新立得软件包管理器问您是否重新加载软件源时,请选择 是 .
<p class="line874">现在您可以添加很多额外的软件包了,NVIDIA驱动也包含在其中.</p>
 
<p class="line867">&nbsp;</p>
现在您可以添加很多额外的软件包了,NVIDIA驱动也包含在其中.
<h3 id="head-22b610e5f7d47efe83395a584eac03a295062388">2.2. 安装并激活驱动</h3>
 
<p>&nbsp;</p>
==== 安装并激活驱动 ====
<p class="line862">可以通过右键单击所选的软件包并选择<strong>标记以便安装</strong>来安装该软件包.</p>
 
<p class="line867"><em>注意</em>:</p>
可以通过右键单击所选的软件包并选择'''标记以便安装'''来安装该软件包.
<ol type="1">
 
    <li>
''注意'':  
    <p class="line862">Click the <strong>Search</strong> button and search for &quot;linux-restricted-modules&quot;. You must have restricted modules enabled (see above).</p>
 
    </li>
* Click the '''Search''' button and search for "linux-restricted-modules". You must have restricted modules enabled (see above).
    <li>
* 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'''. 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.)
    <p class="line862">Find the appropriate module for your kernel. For example, if you have <strong>linux-image-amd64-k8</strong> installed, then you should install <strong>linux-restricted-modules-amd64-k8</strong>. 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.)</p>
* Click the '''Search''' button and search for "nvidia".
    </li>
* 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'''.
    <li>
* If you are going to compile 3D applications, install '''nvidia-glx-dev'''.
    <p class="line862">Click the <strong>Search</strong> button and search for &quot;nvidia&quot;.</p>
* 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'''.
    </li>
* Click the '''Apply''' button to install the new packages.
    <li>
* Once Synaptic has finished applying your changes, exit the application.
    <p class="line862">You will install either <strong>nvidia-glx-legacy</strong> or <strong>nvidia-glx</strong>. If your graphics card is at the end of <a class="http" href="http://download.nvidia.com/XFree86/Linux-x86/1.0-8762/README/appendix-a.html">this list of cards</a> (marked as &quot;legacy&quot;), you will need to install <strong>nvidia-glx-legacy</strong>. Otherwise, install <strong>nvidia-glx</strong>.</p>
* Select the '''Applications''' menu at the top of the screen, then '''Accessories''', then '''Terminal'''.
    </li>
* In the terminal window, if you are running Ubuntu 6.10 Edgy, type the following:
    <li>
<pre><nowiki>
    <p class="line862">If you are going to compile 3D applications, install <strong>nvidia-glx-dev</strong>.</p>
sudo nvidia-xconfig</nowiki></pre>
    </li>
If you are running an earlier version, type the following instead:
    <li>
<pre><nowiki>
    <p class="line862">If you are running Hoary Hedgehog or Breezy Badger, then install <strong>nvidia-settings</strong> and <strong>nvidia-xconfig</strong>. <em>DO NOT</em> install either package in Ubuntu 6.06 LTS because it will remove <strong>nvidia-glx</strong>.  These programs are now provided in <strong>nvidia-glx</strong>.</p>
sudo nvidia-glx-config enable</nowiki></pre>
    </li>
* Close all your applications, then press '''Ctrl-Alt-Backspace''', or restart your computer, to restart the X server. If you see an NVIDIA splashscreen after hitting '''Ctrl-Alt-Backspace''', your drivers are properly installed.
    <li>
* 单击 '''Search''' '''搜索'''按钮并搜索 "linux-restricted-modules"。您必须要启用 restricted 软件库(参见上节)
    <p class="line862">Click the <strong>Apply</strong> button to install the new packages.</p>
* 找到与您内核匹配的模块。例如,如果您安装了 '''linux-image-amd64-k8''',那么您将
    </li>
* 如果您的显卡为 TNT, TNT2, TNT Ultra, GeForce1, 或 GeForce2, 请安装 '''nvidia-glx-legacy''', 否则,请安装 '''nvidia-glx''' 软件包.
    <li>Once Synaptic has finished applying your changes, exit the application.</li>
* 如果您准备编译3D应用程序,请安装 '''nvidia-glx-dev''' 软件包.
    <li>
* 如果您的系统为 Hoary Hedgehog 或 Breezy Badger, 请安装 '''nvidia-settings''' '''nvidia-xconfig''' 软件包. 在 Ubuntu 6.06 LTS中 ''不要'' 安装其他软件包因为其会删除 '''nvidia-glx''' 软件包.
    <p class="line862">Select the <strong>Applications</strong> menu at the top of the screen, then <strong>Accessories</strong>, then <strong>Terminal</strong>.</p>
* 单击 '''Search''' '''搜索''' 按钮并搜索 "linux-restricted-modules". 您必须确保在Ubuntu软件仓库中选择了 restricted 模块 (见上方说明).
    </li>
* 选择适合您内核的相关模块.例如如果您安装了 '''linux-image-amd64-k8''' 内核,您应该安装 '''linux-restricted-modules-amd64-k8'''软件包.
    <li>In the terminal window, if you are running Ubuntu 6.10 Edgy, type the following:
* 单击 '''Apply''' '''应用''' 按钮来安装新的(已标记的)软件包.
    <ul>
* 一旦新立得软件包管理程序完成变更,将其关闭.
        <li style="list-style-type: none;">
* 选择屏幕上方的 '''Applications''' '''应用程序'''菜单,然后选择 '''Accessories''' '''附件''''''Terminal''' '''终端'''.
        <pre>sudo nvidia-xconfig</pre>
* 在终端窗口中输入如下命令:
        </li>
<pre><nowiki>
    </ul>
sudo nvidia-xconfig</nowiki></pre>
    </li>
* 关闭所有程序,按下 '''Ctrl-Alt-Backspace''' 以重启 X server. 如果您在按下'''Ctrl-Alt-Backspace'''后看见 NVIDIA 标志的屏幕闪过, 则说明您的驱动已经安装正确了.
</ol>
 
<p class="line874">If you are running an earlier version, type the following instead:</p>
==== Nvidia Legacy Driver in Edgy ====
<ul>
The above instructions did not work for me in Edgy on a GeForce 1 using the legacy drivers nvidia-glx-legacy 1.0.7184+2.6.17.6-1. I had to manually edit <code><nowiki>/etc/X11/xorg.conf</nowiki></code> and change
    <li style="list-style-type: none;">
<pre><nowiki> Section "Device"
    <pre>sudo nvidia-glx-config enable</pre>
Identifier      "NVIDIA Corporation NV10DDR [GeForce 256 DDR]"
    </li>
Driver          "nv"
</ul>
BusID          "PCI:1:0:0"
<ol type="1">
EndSection </nowiki></pre>
    <li>
to
    <p class="line862">Close all your applications, then press <strong>Ctrl-Alt-Backspace</strong>, or restart your computer, to restart the X server. If you see an NVIDIA splashscreen after hitting <strong>Ctrl-Alt-Backspace</strong>, your drivers are properly installed.</p>
<pre><nowiki> Section "Device"
    </li>
Identifier      "NVIDIA Corporation NV10DDR [GeForce 256 DDR]"
    <li>
Driver          "nvidia"
    <p class="line862">单击 <strong>Search</strong> <strong>搜索</strong>按钮并搜索 &quot;linux-restricted-modules&quot;。您必须要启用 restricted 软件库(参见上节)</p>
BusID          "PCI:1:0:0"
    </li>
EndSection </nowiki></pre>
    <li>
If <code><nowiki>Driver "nvidia"</nowiki></code> is not found in xorg.conf then attempting to <code><nowiki>modprobe nvidia</nowiki></code> will result in an error message (thus <code><nowiki>sudo nvidia-glx-config enable</nowiki></code> would not work for me). After this change, to allow OpenGL programs to run the following had to be added to the bottom of <code><nowiki>/etc/X11/xorg.conf</nowiki></code> :
    <p class="line862">找到与您内核匹配的模块。例如,如果您安装了 <strong>linux-image-amd64-k8</strong>,那么您将</p>
<pre><nowiki> Section "Extensions"
    </li>
Option  "Composite" "Disable"
    <li>
EndSection
    <p class="line862">如果您的显卡为 TNT, TNT2, TNT Ultra, <a class="nonexistent" href="http://127.0.0.1:8000/GeForce1">GeForce1</a>, 或 <a class="nonexistent" href="http://127.0.0.1:8000/GeForce2">GeForce2</a>, 请安装 <strong>nvidia-glx-legacy</strong>, 否则,请安装 <strong>nvidia-glx</strong> 软件包.</p>
</nowiki></pre>
    </li>
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>:
    <li>
<pre><nowiki>(EE) GLX is not supported with the Composite extension
    <p class="line862">如果您准备编译3D应用程序,请安装 <strong>nvidia-glx-dev</strong> 软件包.</p>
</nowiki></pre>
    </li>
 
    <li>
By default Composite is turned on and this will prevent OpenGL from working. The above stanza simply turns Composite off. These steps are probably only needed for the *legacy* driver.
    <p class="line862">如果您的系统为 Hoary Hedgehog 或 Breezy Badger, 请安装 <strong>nvidia-settings</strong> <strong>nvidia-xconfig</strong> 软件包. 在 Ubuntu 6.06 LTS中 <em>不要</em> 安装其他软件包因为其会删除 <strong>nvidia-glx</strong> 软件包.</p>
 
    </li>
 
    <li>
==== Remove the nVidia logotype ====
    <p class="line862">单击 <strong>Search</strong> <strong>搜索</strong> 按钮并搜索 &quot;linux-restricted-modules&quot;. 您必须确保在Ubuntu软件仓库中选择了 restricted 模块 (见上方说明).</p>
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.
    </li>
* Select the '''Applications''' menu at the top of the screen, then '''Accessories''' and then '''Terminal'''.
    <li>
 
    <p class="line862">选择适合您内核的相关模块.例如如果您安装了 <strong>linux-image-amd64-k8</strong> 内核,您应该安装 <strong>linux-restricted-modules-amd64-k8</strong>软件包.</p>
* Type the following:
    </li>
<pre><nowiki>
    <li>
gksudo gedit /etc/X11/xorg.conf</nowiki></pre>
    <p class="line862">单击 <strong>Apply</strong> <strong>应用</strong> 按钮来安装新的(已标记的)软件包.</p>
or if you are using Kubuntu:
    </li>
<pre><nowiki>
    <li>一旦新立得软件包管理程序完成变更,将其关闭.</li>
kdesu kate /etc/X11/xorg.conf</nowiki></pre>
    <li>
* Find the line Driver "nvidia" in the Device section
    <p class="line862">选择屏幕上方的 <strong>Applications</strong> <strong>应用程序</strong>菜单,然后选择 <strong>Accessories</strong> <strong>附件</strong><strong>Terminal</strong> <strong>终端</strong>.</p>
* Just after this line, add  
    </li>
<pre><nowiki>
    <li>在终端窗口中输入如下命令:
Option "NoLogo"</nowiki></pre>
    <ul>
* Save the file and exit
        <li style="list-style-type: none;">
* 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.
        <pre>sudo nvidia-xconfig(如果是6.06及以前的版本输入则:sudo nvidia-glx-config enable)</pre>
 
        </li>
=== Troubleshooting ===
    </ul>
 
    </li>
* It seems that a reboot is sometimes necessary for these changes to take effect. If 3D acceleration isn't working, try this first.
    <li>
 
    <p class="line862">关闭所有程序,按下 <strong>Ctrl-Alt-Backspace</strong> 以重启 X server. 如果您在按下<strong>Ctrl-Alt-Backspace</strong>后看见 NVIDIA 标志的屏幕闪过, 则说明您的驱动已经安装正确了.</p>
* 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.
    </li>
 
</ol>
* If you have the right version of linux-restricted-modules installed and 3D acceleration still isn't working, open your <code><nowiki>/etc/X11/xorg.conf</nowiki></code> file for editing with <code><nowiki>gksudo gedit /etc/X11/xorg.conf</nowiki></code> or <code><nowiki>kdesu kate /etc/X11/xorg.conf</nowiki></code> if using Kubuntu. Be sure that the <code><nowiki>Driver</nowiki></code> entry under <code><nowiki>Section "Device"</nowiki></code> is  set to <code><nowiki>"nvidia"</nowiki></code>.
<p class="line867">&nbsp;</p>
 
<h3 id="head-d3968a4d3bed6eeef4b10fd3202bcdf313b1e75d">2.3. Nvidia Legacy Driver in Edgy</h3>
 
<p>&nbsp;</p>
* 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.
<p class="line862">The above instructions did not work for me in Edgy on a <a class="nonexistent" href="http://127.0.0.1:8000/GeForce">GeForce</a> 1 using the legacy drivers nvidia-glx-legacy 1.0.7184+2.6.17.6-1. I had to manually edit <tt>/etc/X11/xorg.conf</tt> and change</p>
<pre><nowiki>sudo dpkg-reconfigure xserver-xorg
<ul>
</nowiki></pre>
    <li style="list-style-type: none;">
 
    <pre>Section &quot;Device&quot; <br />        Identifier      &quot;NVIDIA Corporation NV10DDR [GeForce 256 DDR]&quot;<br />        Driver          &quot;nv&quot;<br />        BusID          &quot;PCI:1:0:0&quot;<br />EndSection</pre>
* If you get an error while loading NVIDIA module try to rebuild module dependencies by running depmod.
    </li>
<pre><nowiki>
</ul>
sudo depmod
<p class="line874">to</p>
</nowiki></pre>
<ul>
 
    <li style="list-style-type: none;">
* If suspend no longer works, see NvidiaLaptopBinaryDriverSuspend
    <pre>Section &quot;Device&quot; <br />        Identifier      &quot;NVIDIA Corporation NV10DDR [GeForce 256 DDR]&quot;<br />        Driver          &quot;nvidia&quot;<br />        BusID          &quot;PCI:1:0:0&quot;<br />EndSection</pre>
 
    </li>
* If you're feeling frisky and decide to fiddle around with the X Server '''Option'''s for your '''Device''' in <code><nowiki>/etc/X11/xorg.conf</nowiki></code> and Firefox refuses to load (returns <code><nowiki>segmentation fault</nowiki></code> when launched from a terminal), this line may be the culprit:
</ul>
<pre><nowiki>
<p class="line862">If <tt>Driver&nbsp;&quot;nvidia&quot;</tt> is not found in xorg.conf then attempting to <tt>modprobe&nbsp;nvidia</tt> will result in an error message (thus <tt>sudo&nbsp;nvidia-glx-config&nbsp;enable</tt> would not work for me). After this change, to allow OpenGL programs to run the following had to be added to the bottom of <tt>/etc/X11/xorg.conf</tt> :</p>
Option "NoRenderExtension" "On"
<ul>
</nowiki></pre> Either comment it out (using a # at the beginning the line) or set it to '''Off'''.
    <li style="list-style-type: none;">
 
    <pre>Section &quot;Extensions&quot; <br />        Option  &quot;Composite&quot; &quot;Disable&quot;<br />EndSection</pre>
* If you have problems with video playback, e.g. in mplayer, gxine, or mythtv frontend with a legacy card, it maybe 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.
    </li>
 
</ul>
* For other problems, please visit the forums at http://www.ubuntuforums.org
<p class="line862">This is not documented anywhere in the the legacy drivers (i.e. there is no mention of this in <tt>/usr/share/doc/nvidia-glx-legacy/*</tt>) but thankfully the following warning will appear in <tt>/var/log/Xorg.0.log</tt>:</p>
 
<ul>
=== See Also ===
    <li style="list-style-type: none;">
[http://doc.gwos.org/index.php/Latest_Nvidia_Edgy Install Nvidia proprietary drivers, Howto @gwos]
    <pre>(EE) GLX is not supported with the Composite extension</pre>
 
    </li>
Part of UserDocumentation
</ul>
 
<p class="line874">By default Composite is turned on and this will prevent OpenGL from working. The above stanza simply turns Composite off. These steps are probably only needed for the *legacy* driver.</p>
[[category:CategoryDocumentation]] [[category:CategoryCleanup]]
<p class="line867">&nbsp;</p>
 
<h3 id="head-25d26bb166158beeff13520345659f002827c94b">2.4. Remove the nVidia logotype</h3>
 
<p>&nbsp;</p>
 
<p class="line874">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.</p>
''备注'':  
<ol type="1">
 
    <li>
 
    <p class="line862">Select the <strong>Applications</strong> menu at the top of the screen, then <strong>Accessories</strong> and then <strong>Terminal</strong>.</p>
==== 删除 nVidia 标志 ====
    </li>
如果您不想在启动界面之前显示 nVidia 标志,您需要手动编辑您的 Xorg 配置文件.
    <li class="gap">Type the following:
*选择屏幕上方的 '''Applications''' '''应用程序'''菜单,然后选择 '''Accessories''' '''附件''',  '''Terminal''' '''终端'''.
    <ul>
* 输入如下命令:
        <li style="list-style-type: none;">
<pre><nowiki>
        <pre>gksudo gedit /etc/X11/xorg.conf</pre>
sudo gedit /etc/X11/xorg.conf</nowiki></pre>
        </li>
* 在Device一节中找到 "nvidia" 所在行
    </ul>
* 在该行后添加
    or if you are using Kubuntu:
<pre><nowiki>
    <ul>
Option "NoLogo"</nowiki></pre>
        <li style="list-style-type: none;">
* 保存文件并退出
        <pre>kdesu kate /etc/X11/xorg.conf</pre>
* 关闭所有程序,按下 '''Ctrl-Alt-Backspace''' 以重启 X server. 如果标志消失且其他一切正常则说明更改已生效.
        </li>
 
    </ul>
=== 故障排除 ===
    </li>
 
    <li>Find the line Driver &quot;nvidia&quot; in the Device section</li>
* 某些情况下需要重新启动系统来使某些更改生效.如果3D加速没有起作用,请先重启试试.
    <li>Just after this line, add
 
    <ul>
* 如果3D加速在重启后依旧没有工作,请确保您选择了linux-restricted-modules软件包的正确版本.该版本必须与您的内核版本一致.
        <li style="list-style-type: none;">
 
        <pre>Option         &quot;NoLogo&quot;</pre>
* 如果您的linux-restricted-modules版本正确但是3D加速依旧没有工作,打开 <code><nowiki>/etc/X11/xorg.conf</nowiki></code> 文件进行编辑 <code><nowiki>sudo gedit /etc/X11/xorg.conf</nowiki></code> 并确保<code><nowiki>Section "Device"</nowiki></code> 条目下面 <code><nowiki>Driver</nowiki></code> 项目设置成 <code><nowiki>"nvidia"</nowiki></code>.
        </li>
 
    </ul>
* 如果您在加载NVIDIA模块时出现错误,请通过运行depmod命令来重建模块依赖关系.
    </li>
<pre><nowiki>
    <li>Save the file and exit</li>
sudo depmod
    <li>
</nowiki></pre>
    <p class="line862">Close all your applications, then press <em>Ctrl-Alt-Backspace</em> to restart the X server. If the logotype is gone and everything seems to work you are done.</p>
 
    </li>
* 如果 suspend 模块不工作,请查看 NvidiaLaptopBinaryDriverSuspend
</ol>
 
<p class="line867">&nbsp;</p>
* 其他问题,请访问论坛 http://www.ubuntuforums.org
<h2 id="head-20c0b7106f06055eed889efe3946f560c34a8b1a">3. Troubleshooting</h2>
<p>&nbsp;</p>
<ul>
    <li>It seems that a reboot is sometimes necessary for these changes to take effect. If 3D acceleration isn't working, try this first.</li>
    <li class="gap">
    <p class="line862">If 3D acceleration still isn't working, be sure that you have the right version of linux-restricted-modules installed.  It <em>must</em> match the version of the running kernel.</p>
    </li>
    <li class="gap">
    <p class="line862">If you have the right version of linux-restricted-modules installed and 3D acceleration still isn't working, open your <tt>/etc/X11/xorg.conf</tt> file for editing with <tt>gksudo&nbsp;gedit&nbsp;/etc/X11/xorg.conf</tt> or <tt>kdesu&nbsp;kate&nbsp;/etc/X11/xorg.conf</tt> if using Kubuntu. Be sure that the <tt>Driver</tt> entry under <tt>Section&nbsp;&quot;Device&quot;</tt> is  set to <tt>&quot;nvidia&quot;</tt>.</p>
    </li>
    <li class="gap">You may need to activate the &quot;kernel framebuffer device interface&quot; 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 &quot;Select the desired X server driver&quot; (question 2), make sure to select &quot;nvidia&quot; and NOT &quot;nv&quot;. At question 7 (&quot;Activate kernel framebuffer device interface?&quot;) select &quot;yes&quot;. 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 &quot;X server failed to start (etc. etc.)&quot;, 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 &quot;Activate kernel framebuffer device interface?&quot;) select &quot;no&quot; then restart your computer and your login screen will be restored.
    <pre>sudo dpkg-reconfigure xserver-xorg</pre>
    </li>
    <li class="gap">If you get an error while loading NVIDIA module try to rebuild module dependencies by running depmod.
    <pre>sudo depmod</pre>
    </li>
    <li class="gap">
    <p class="line862">If suspend no longer works, see <a class="nonexistent" href="http://127.0.0.1:8000/NvidiaLaptopBinaryDriverSuspend">NvidiaLaptopBinaryDriverSuspend</a></p>
    </li>
    <li class="gap">
    <p class="line862">If you're feeling frisky and decide to fiddle around with the X Server <strong>Option</strong>s for your <strong>Device</strong> in <tt>/etc/X11/xorg.conf</tt> and Firefox refuses to load (returns <tt>segmentation&nbsp;fault</tt> when launched from a terminal), this line may be the culprit:</p>
    <pre>Option &quot;NoRenderExtension&quot; &quot;On&quot;</pre>
    <p class="line862">Either comment it out (using a # at the beginning the line) or set it to <strong>Off</strong>.</p>
    </li>
    <li class="gap">
    <p class="line862">If you have problems with video playback, e.g. in mplayer, gxine, or mythtv frontend with a legacy card, it maybe too high a color depth (e.g. using NT6 Vanta/Vanta LT nvidia driver, I experienced flickering vertical bars &amp; blue screen flashing). To fix this, manually edit <tt>/etc/X11/xorg.conf</tt> and change <a class="nonexistent" href="http://127.0.0.1:8000/DefaultDepth">DefaultDepth</a> to 16.</p>
    </li>
    <li class="gap">
    <p class="line862">For other problems, please visit the forums at <a class="http" href="http://www.ubuntuforums.org">http://www.ubuntuforums.org</a></p>
    </li>
</ul>
<p class="line867">&nbsp;</p>
<h2 id="head-e2de147a313baf4abcaf8943b77d5e794c57c9c9">4. See Also</h2>
<p>&nbsp;</p>
<p class="line867"><a class="http" href="http://doc.gwos.org/index.php/Latest_Nvidia_Edgy">Install Nvidia proprietary drivers, Howto @gwos</a></p>
<p class="line862">Part of <a href="http://127.0.0.1:8000/UserDocumentation">UserDocumentation</a></p>
<p class="line867"><a href="http://127.0.0.1:8000/CategoryDocumentation">CategoryDocumentation</a> <a href="http://127.0.0.1:8000/CategoryCleanup">CategoryCleanup</a></p>
<p class="line867"><em>备注</em>:</p>
<p class="line867">&nbsp;</p>
<h3 id="head-fbcdd2c55391363b6f9bce5a8e99f4ca807ddc78">4.1. 删除 nVidia 标志</h3>
<p>&nbsp;</p>
<p class="line874">如果您不想在启动界面之前显示 nVidia 标志,您需要手动编辑您的 Xorg 配置文件.</p>
<ul>
    <li style="list-style-type: none;">
    <p class="line862">1.选择屏幕上方的 <strong>Applications</strong> <strong>应用程序</strong>菜单,然后选择 <strong>Accessories</strong> <strong>附件</strong><strong>Terminal</strong> <strong>终端</strong>.</p>
    </li>
    <li>输入如下命令:
    <ul>
        <li style="list-style-type: none;">
        <pre>sudo gedit /etc/X11/xorg.conf</pre>
        </li>
    </ul>
    </li>
    <li>在Device一节中找到 &quot;nvidia&quot; 所在行</li>
    <li>在该行后添加
    <ul>
        <li style="list-style-type: none;">
        <pre>Option          &quot;NoLogo&quot;</pre>
        </li>
    </ul>
    </li>
    <li>保存文件并退出</li>
    <li>
    <p class="line862">关闭所有程序,按下 <strong>Ctrl-Alt-Backspace</strong> 以重启 X server. 如果标志消失且其他一切正常则说明更改已生效.</p>
    </li>
</ul>
<p class="line867">&nbsp;</p>
<h2 id="head-a36a645c4a6d809671b04da19d80fb20c8266f81">5. 故障排除</h2>
<p>&nbsp;</p>
<ul>
    <li>某些情况下需要重新启动系统来使某些更改生效.如果3D加速没有起作用,请先重启试试.</li>
    <li class="gap">如果3D加速在重启后依旧没有工作,请确保您选择了linux-restricted-modules软件包的正确版本.该版本必须与您的内核版本一致.</li>
    <li class="gap">
    <p class="line862">如果您的linux-restricted-modules版本正确但是3D加速依旧没有工作,打开 <tt>/etc/X11/xorg.conf</tt> 文件进行编辑 <tt>sudo&nbsp;gedit&nbsp;/etc/X11/xorg.conf</tt> 并确保<tt>Section&nbsp;&quot;Device&quot;</tt> 条目下面 <tt>Driver</tt> 项目设置成 <tt>&quot;nvidia&quot;</tt>.</p>
    </li>
    <li class="gap">如果您在加载NVIDIA模块时出现错误,请通过运行depmod命令来重建模块依赖关系.
    <pre>sudo depmod</pre>
    </li>
    <li class="gap">
    <p class="line862">如果 suspend 模块不工作,请查看 <a class="nonexistent" href="http://127.0.0.1:8000/NvidiaLaptopBinaryDriverSuspend">NvidiaLaptopBinaryDriverSuspend</a></p>
    </li>
    <li class="gap">
    <p class="line862">其他问题,请访问论坛 <a class="http" href="http://www.ubuntuforums.org">http://www.ubuntuforums.org</a></p>
    </li>
</ul>
<p>BinaryDriverHowto/Nvidia  (2007-03-12 08:38:41由<span title="??? @ localhost[127.0.0.1]">localhost</span></p>

2007年5月23日 (三) 09:18的版本

nVidia 显卡安装配置指南

原文出处:https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia

原文作者:

授权许可:

翻译人员:

校正人员:

贡献人员:

适用版本: 文章状态:等待翻译



系统需求

  • 命令 lspci | grep nVidia 输出一行文字
  • 您需要3D硬件加速支持
  • 您需要 TV-Out 支持

安装

允许 restricted 软件包

Note: If you are running Ubuntu 6.10 (Edgy Eft) or later, the Restricted repositories might already be enabled. Also if you are running Kubuntu, gedit is not installed by default, so you should use kate instead of gedit.
注意:如果您正在运行的是 Ubuntu 6.10 (Edgy Eft) 或以后版本,Restricted 软件库则已被允许。如果您正在运行 Kubuntu 的话,gedit 缺省是没有安装的,您可以使用 kate 来代替 gedit。

NVIDIA驱动位与Ubuntu软件仓库的 "restricted" 模块中.因此,在准备安装该驱动前,请在您的系统中允许 restricted 软件库.

  • 选择屏幕上方的系统菜单.
  • 选择系统管理, 新立得软件包管理器. 当提示消息时请输入密码.
  • 在软件包管理器中, 选择设置菜单,然后选择软件库.
  • 当出现软件源窗口时,点击添加按钮.
  • 编辑软件库 窗口中,请确保选择了 Restricted copyright 复选框,然后按下确定按钮.
  • 按下确定按钮以关闭软件源对话框, 当新立得软件包管理器问您是否重新加载软件源时,请选择 是 .

现在您可以添加很多额外的软件包了,NVIDIA驱动也包含在其中.

安装并激活驱动

可以通过右键单击所选的软件包并选择标记以便安装来安装该软件包.

注意:

  • Click the Search button and search for "linux-restricted-modules". You must have restricted modules enabled (see above).
  • 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. 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".
  • 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.
  • 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.
  • 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.
  • In the terminal window, if you are running Ubuntu 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 press Ctrl-Alt-Backspace, or restart your computer, to restart the X server. If you see an NVIDIA splashscreen after hitting Ctrl-Alt-Backspace, your drivers are properly installed.
  • 单击 Search 搜索按钮并搜索 "linux-restricted-modules"。您必须要启用 restricted 软件库(参见上节)
  • 找到与您内核匹配的模块。例如,如果您安装了 linux-image-amd64-k8,那么您将
  • 如果您的显卡为 TNT, TNT2, TNT Ultra, GeForce1, 或 GeForce2, 请安装 nvidia-glx-legacy, 否则,请安装 nvidia-glx 软件包.
  • 如果您准备编译3D应用程序,请安装 nvidia-glx-dev 软件包.
  • 如果您的系统为 Hoary Hedgehog 或 Breezy Badger, 请安装 nvidia-settingsnvidia-xconfig 软件包. 在 Ubuntu 6.06 LTS中 不要 安装其他软件包因为其会删除 nvidia-glx 软件包.
  • 单击 Search 搜索 按钮并搜索 "linux-restricted-modules". 您必须确保在Ubuntu软件仓库中选择了 restricted 模块 (见上方说明).
  • 选择适合您内核的相关模块.例如如果您安装了 linux-image-amd64-k8 内核,您应该安装 linux-restricted-modules-amd64-k8软件包.
  • 单击 Apply 应用 按钮来安装新的(已标记的)软件包.
  • 一旦新立得软件包管理程序完成变更,将其关闭.
  • 选择屏幕上方的 Applications 应用程序菜单,然后选择 Accessories 附件, Terminal 终端.
  • 在终端窗口中输入如下命令:
sudo nvidia-xconfig
  • 关闭所有程序,按下 Ctrl-Alt-Backspace 以重启 X server. 如果您在按下Ctrl-Alt-Backspace后看见 NVIDIA 标志的屏幕闪过, 则说明您的驱动已经安装正确了.

Nvidia Legacy Driver in Edgy

The above instructions did not work for me in Edgy on a GeForce 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

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 probably only needed for the *legacy* driver.


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

  • 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 gksudo gedit /etc/X11/xorg.conf or kdesu kate /etc/X11/xorg.conf if using Kubuntu. Be sure that the Driver entry under Section "Device" is set to "nvidia".


  • 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
  • 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
  • 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 (returns segmentation 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 maybe 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 change DefaultDepth to 16.

See Also

Install Nvidia proprietary drivers, Howto @gwos

Part of UserDocumentation


备注:


删除 nVidia 标志

如果您不想在启动界面之前显示 nVidia 标志,您需要手动编辑您的 Xorg 配置文件.

  • 选择屏幕上方的 Applications 应用程序菜单,然后选择 Accessories 附件, Terminal 终端.
  • 输入如下命令:
sudo gedit /etc/X11/xorg.conf
  • 在Device一节中找到 "nvidia" 所在行
  • 在该行后添加
Option		"NoLogo"
  • 保存文件并退出
  • 关闭所有程序,按下 Ctrl-Alt-Backspace 以重启 X server. 如果标志消失且其他一切正常则说明更改已生效.

故障排除

  • 某些情况下需要重新启动系统来使某些更改生效.如果3D加速没有起作用,请先重启试试.
  • 如果3D加速在重启后依旧没有工作,请确保您选择了linux-restricted-modules软件包的正确版本.该版本必须与您的内核版本一致.
  • 如果您的linux-restricted-modules版本正确但是3D加速依旧没有工作,打开 /etc/X11/xorg.conf 文件进行编辑 sudo gedit /etc/X11/xorg.conf 并确保Section "Device" 条目下面 Driver 项目设置成 "nvidia".
  • 如果您在加载NVIDIA模块时出现错误,请通过运行depmod命令来重建模块依赖关系.
sudo depmod
  • 如果 suspend 模块不工作,请查看 NvidiaLaptopBinaryDriverSuspend