查看“NVIDIA显卡安装配置指南”的源代码
来自Ubuntu中文
←
NVIDIA显卡安装配置指南
跳到导航
跳到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
<p class="line862">[https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia 原文出处]: <p class="line874">原文作者:</p> <p class="line867"> </p> <p class="line867"> </p> <p class="line874">授权许可:</p> <ul> <li style="list-style-type: none;"> <p class="line891"><a class="http" href="http://creativecommons.org/licenses/by-sa/2.0/">创作共用协议Attribution-ShareAlike 2.0</a></p> </li> <li style="list-style-type: none;"> <p class="line891"><a class="http" href="http://www.gnu.org/copyleft/fdl.html">GNU自由文档许可证</a></p> </li> </ul> <p class="line874">翻译人员:</p> <p class="line874">校正人员:</p> <p class="line874">贡献人员:</p> <p class="line874">适用版本:</p> <p class="line862">文章状态:<a href="http://127.0.0.1:8000/%E7%AD%89%E5%BE%85%E7%BF%BB%E8%AF%91">等待翻译</a></p> <p class="line874"> </p> <p> </p> <p class="line867"> </p> <h2 id="head-19ad18f57a4ffcbad5da5e5d71e76d0194990e45">1. 系统需求</h2> <p> </p> <ul> <li>命令 lspci | grep nVidia 输出一行文字</li> <li>您需要3D硬件加速支持</li> <li>您需要 TV-Out 支持</li> </ul> <p class="line867"> </p> <h2 id="head-72b2999378538a37b8920d7c675acd94dcc70b97">2. 安装</h2> <p> </p> <p class="line867"> </p> <h3 id="head-105844e97f18a5953c5bf8466aa8ede856e1d5a9">2.1. 允许 restricted 软件包</h3> <p> </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软件仓库的 "restricted" 模块中.因此,在准备安装该驱动前,请在您的系统中允许 restricted 软件库.</p> <ol type="1"> <li> <p class="line862">选择屏幕上方的<strong>系统</strong>菜单.</p> </li> <li> <p class="line862">选择<strong>系统管理</strong>, <strong>新立得软件包管理器</strong>. 当提示消息时请输入密码.</p> </li> <li> <p class="line862">在软件包管理器中, 选择<strong>设置</strong>菜单,然后选择<strong>软件库</strong>.</p> </li> <li> <p class="line862">当出现<strong>软件源</strong>窗口时,点击<strong>添加</strong>按钮.</p> </li> <li> <p class="line862">在 <strong>编辑软件库</strong> 窗口中,请确保选择了 <strong>Restricted copyright</strong> 复选框,然后按下<strong>确定</strong>按钮.</p> </li> <li> <p class="line862">按下<strong>确定</strong>按钮以关闭<strong>软件源</strong>对话框, 当新立得软件包管理器问您是否重新加载软件源时,请选择 是 .</p> </li> </ol> <p class="line874">现在您可以添加很多额外的软件包了,NVIDIA驱动也包含在其中.</p> <p class="line867"> </p> <h3 id="head-22b610e5f7d47efe83395a584eac03a295062388">2.2. 安装并激活驱动</h3> <p> </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 "linux-restricted-modules". You must have restricted modules enabled (see above).</p> </li> <li> <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> </li> <li> <p class="line862">Click the <strong>Search</strong> button and search for "nvidia".</p> </li> <li> <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 "legacy"), you will need to install <strong>nvidia-glx-legacy</strong>. Otherwise, install <strong>nvidia-glx</strong>.</p> </li> <li> <p class="line862">If you are going to compile 3D applications, install <strong>nvidia-glx-dev</strong>.</p> </li> <li> <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> </li> <li> <p class="line862">Click the <strong>Apply</strong> button to install the new packages.</p> </li> <li>Once Synaptic has finished applying your changes, exit the application.</li> <li> <p class="line862">Select the <strong>Applications</strong> menu at the top of the screen, then <strong>Accessories</strong>, then <strong>Terminal</strong>.</p> </li> <li>In the terminal window, if you are running Ubuntu 6.10 Edgy, type the following: <ul> <li style="list-style-type: none;"> <pre>sudo nvidia-xconfig</pre> </li> </ul> </li> </ol> <p class="line874">If you are running an earlier version, type the following instead:</p> <ul> <li style="list-style-type: none;"> <pre>sudo nvidia-glx-config enable</pre> </li> </ul> <ol type="1"> <li> <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> </li> <li> <p class="line862">单击 <strong>Search</strong> <strong>搜索</strong>按钮并搜索 "linux-restricted-modules"。您必须要启用 restricted 软件库(参见上节)</p> </li> <li> <p class="line862">找到与您内核匹配的模块。例如,如果您安装了 <strong>linux-image-amd64-k8</strong>,那么您将</p> </li> <li> <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> </li> <li> <p class="line862">如果您准备编译3D应用程序,请安装 <strong>nvidia-glx-dev</strong> 软件包.</p> </li> <li> <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> <p class="line862">单击 <strong>Search</strong> <strong>搜索</strong> 按钮并搜索 "linux-restricted-modules". 您必须确保在Ubuntu软件仓库中选择了 restricted 模块 (见上方说明).</p> </li> <li> <p class="line862">选择适合您内核的相关模块.例如如果您安装了 <strong>linux-image-amd64-k8</strong> 内核,您应该安装 <strong>linux-restricted-modules-amd64-k8</strong>软件包.</p> </li> <li> <p class="line862">单击 <strong>Apply</strong> <strong>应用</strong> 按钮来安装新的(已标记的)软件包.</p> </li> <li>一旦新立得软件包管理程序完成变更,将其关闭.</li> <li> <p class="line862">选择屏幕上方的 <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 nvidia-xconfig(如果是6.06及以前的版本输入则:sudo nvidia-glx-config enable)</pre> </li> </ul> </li> <li> <p class="line862">关闭所有程序,按下 <strong>Ctrl-Alt-Backspace</strong> 以重启 X server. 如果您在按下<strong>Ctrl-Alt-Backspace</strong>后看见 NVIDIA 标志的屏幕闪过, 则说明您的驱动已经安装正确了.</p> </li> </ol> <p class="line867"> </p> <h3 id="head-d3968a4d3bed6eeef4b10fd3202bcdf313b1e75d">2.3. Nvidia Legacy Driver in Edgy</h3> <p> </p> <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> <ul> <li style="list-style-type: none;"> <pre>Section "Device" <br /> Identifier "NVIDIA Corporation NV10DDR [GeForce 256 DDR]"<br /> Driver "nv"<br /> BusID "PCI:1:0:0"<br />EndSection</pre> </li> </ul> <p class="line874">to</p> <ul> <li style="list-style-type: none;"> <pre>Section "Device" <br /> Identifier "NVIDIA Corporation NV10DDR [GeForce 256 DDR]"<br /> Driver "nvidia"<br /> BusID "PCI:1:0:0"<br />EndSection</pre> </li> </ul> <p class="line862">If <tt>Driver "nvidia"</tt> is not found in xorg.conf then attempting to <tt>modprobe nvidia</tt> will result in an error message (thus <tt>sudo nvidia-glx-config 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> <ul> <li style="list-style-type: none;"> <pre>Section "Extensions" <br /> Option "Composite" "Disable"<br />EndSection</pre> </li> </ul> <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> <li style="list-style-type: none;"> <pre>(EE) GLX is not supported with the Composite extension</pre> </li> </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> <p class="line867"> </p> <h3 id="head-25d26bb166158beeff13520345659f002827c94b">2.4. Remove the nVidia logotype</h3> <p> </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> </li> <li class="gap">Type the following: <ul> <li style="list-style-type: none;"> <pre>gksudo gedit /etc/X11/xorg.conf</pre> </li> </ul> or if you are using Kubuntu: <ul> <li style="list-style-type: none;"> <pre>kdesu kate /etc/X11/xorg.conf</pre> </li> </ul> </li> <li>Find the line Driver "nvidia" in the Device section</li> <li>Just after this line, add <ul> <li style="list-style-type: none;"> <pre>Option "NoLogo"</pre> </li> </ul> </li> <li>Save the file and exit</li> <li> <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> </ol> <p class="line867"> </p> <h2 id="head-20c0b7106f06055eed889efe3946f560c34a8b1a">3. Troubleshooting</h2> <p> </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 gedit /etc/X11/xorg.conf</tt> or <tt>kdesu kate /etc/X11/xorg.conf</tt> if using Kubuntu. Be sure that the <tt>Driver</tt> entry under <tt>Section "Device"</tt> is set to <tt>"nvidia"</tt>.</p> </li> <li class="gap">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>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 fault</tt> when launched from a terminal), this line may be the culprit:</p> <pre>Option "NoRenderExtension" "On"</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 & 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"> </p> <h2 id="head-e2de147a313baf4abcaf8943b77d5e794c57c9c9">4. See Also</h2> <p> </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"> </p> <h3 id="head-fbcdd2c55391363b6f9bce5a8e99f4ca807ddc78">4.1. 删除 nVidia 标志</h3> <p> </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一节中找到 "nvidia" 所在行</li> <li>在该行后添加 <ul> <li style="list-style-type: none;"> <pre>Option "NoLogo"</pre> </li> </ul> </li> <li>保存文件并退出</li> <li> <p class="line862">关闭所有程序,按下 <strong>Ctrl-Alt-Backspace</strong> 以重启 X server. 如果标志消失且其他一切正常则说明更改已生效.</p> </li> </ul> <p class="line867"> </p> <h2 id="head-a36a645c4a6d809671b04da19d80fb20c8266f81">5. 故障排除</h2> <p> </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 gedit /etc/X11/xorg.conf</tt> 并确保<tt>Section "Device"</tt> 条目下面 <tt>Driver</tt> 项目设置成 <tt>"nvidia"</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>
返回
NVIDIA显卡安装配置指南
。
导航菜单
页面操作
页面
讨论
阅读
查看源代码
历史
页面操作
页面
讨论
更多
工具
个人工具
登录
导航
首页
最近更改
随机页面
页面分类
帮助
搜索
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息