总结10.04安装Nvidia驱动的方法

KDE桌面环境
回复
slam430
帖子: 5
注册时间: 2011-04-25 13:48
送出感谢: 0
接收感谢: 0

总结10.04安装Nvidia驱动的方法

#1

帖子 slam430 » 2011-05-04 14:54

我的卡是NV8400gs,我是一个灰常灰常的新手,结合大家的教程和自已屡试屡败的经验终于把显卡驱动安装成功了
我安装总是出现下列错误
ERROR: The Nouveau kernel driver is currently in use by your system. This
driver is incompatible with the NVIDIA driver, and must be disabled
before proceeding. Please consult the NVIDIA driver README and your
Linux distribution's documentation for details on how to correctly
disable the Nouveau kernel driver.
看到好多教程都是修改已有的blacklist.conf,来解决此问题,但我修改以后出现了Ctrl + Alt +F1进入不了控制台,然后找nvidia的官方说明,写的是建立一个新的disable-nouveau.conf然后配置, 贴出来E文好的可以翻译一下
What is Nouveau, and why do I need to disable it?

Nouveau is a display driver for NVIDIA GPUs, developed as an open-source project through reverse-engineering of the NVIDIA driver. It ships with many current Linux distributions as the default display driver for NVIDIA hardware. It is not developed or supported by NVIDIA, and is not related to the NVIDIA driver, other than the fact that both Nouveau and the NVIDIA driver are capable of driving NVIDIA GPUs. Only one driver can control a GPU at a time, so if a GPU is being driven by the Nouveau driver, Nouveau must be disabled before installing the NVIDIA driver.

Nouveau performs modesets in the kernel. This can make disabling Nouveau difficult, as the kernel modeset is used to display a framebuffer console, which means that Nouveau will be in use even if X is not running. As long as Nouveau is in use, its kernel module cannot be unloaded, which will prevent the NVIDIA kernel module from loading. It is therefore important to make sure that Nouveau's kernel modesetting is disabled before installing the NVIDIA driver.

How do I prevent Nouveau from loading and performing a kernel modeset?

A simple way to prevent Nouveau from loading and performing a kernel modeset is to add configuration directives for the module loader to a file in /etc/modprobe.d/. These configuration directives can technically be added to any file in /etc/modprobe.d/, but many of the existing files in that directory are provided and maintained by your distributor, which may from time to time provide updated configuration files which could conflict with your changes. Therefore, it is recommended to create a new file, for example, /etc/modprobe.d/disable-nouveau.conf, rather than editing one of the existing files, such as the popular /etc/modprobe.d/blacklist.conf. Note that some module loaders will only look for configuration directives in files whose names end with .conf, so if you are creating a new file, make sure its name ends with .conf.

Whether you choose to create a new file or edit an existing one, the following two lines will need to be added:

blacklist nouveau
options nouveau modeset=0

The first line will prevent Nouveau's kernel module from loading automatically at boot. It will not prevent manual loading of the module, and it will not prevent the X server from loading the kernel module; see "How do I prevent the X server from loading Nouveau?" below. The second line will prevent Nouveau from doing a kernel modeset. Without the kernel modeset, it is possible to unload Nouveau's kernel module, in the event that it is accidentally or intentionally loaded.

You will need to reboot your system after adding these configuration directives in order for them to take effect
具体步聚:
1.去官方下载最新版的nVidia驱动,现最新版本是Nvidia-Linux-x86-270.41.06.run
2.删除之前所安装的nVidia驱动(没安的略去这一步)

代码: 全选

sudo apt-get --purge remove nvidia-*
3.这是从Nvidia官方说明里找的,建立并修改disable-nouveau.conf

代码: 全选

gedit /etc/modprobe.d/disable-nouveau.conf
在里面填入两行内容

代码: 全选

blacklist nouveau
options nouveau modeset=0 
然后重启电脑,重启之后画面质量明显降低证明生效了
4.按Ctrl + Alt +F1到第一控制台,输入用户名,密码登陆后执行:

代码: 全选

sudo /etc/init.d/gdm stop
因为Nvidia官方驱动不能运行在X-server下
5进入驱动所在文件夹,安装驱动

代码: 全选

sudo ./NVIDIA-Linux-x86-270.41.06
注意区分大小写
安装过程中出现更新,选择NO
安装完毕,然后配置Xconfig

代码: 全选

sudo nvidia-xconfig
然后重启图形界面

代码: 全选

sudo /etc/init.d/gdm restart
出现Nvidia的logo,表示安装成功了
我是按自已安装成功的过程写的,还希望大家帮忙解释
附件
Screenshot.png
上次由 slam430 在 2011-05-05 23:44,总共编辑 1 次。
头像
nmsfan
帖子: 18958
注册时间: 2009-10-16 22:46
来自: finland
送出感谢: 16 次
接收感谢: 36 次

Re: 总结10.04安装Nvidia驱动的方法

#2

帖子 nmsfan » 2011-05-04 15:24

又是开源驱动的问题...........
>>>>推Ubuntu 桌面培训~~<<<<
>>>>想加入/了解gimp汉化吗,点我吧~<<<<
——————————————————————
不推荐wubi,也不推荐你给别人推荐wubi…………
随心而为的感觉真好……
强推mayhem!!
强推ensiferum
头像
373992900
帖子: 4200
注册时间: 2010-06-14 13:37
送出感谢: 0
接收感谢: 1 次

Re: 总结10.04安装Nvidia驱动的方法

#3

帖子 373992900 » 2011-05-04 15:25

从来没在ubuntu下纠结过显卡
头像
leni
帖子: 1989
注册时间: 2008-09-28 17:24
送出感谢: 6 次
接收感谢: 14 次

Re: 总结10.04安装Nvidia驱动的方法

#4

帖子 leni » 2011-05-04 15:43

驱动还是源的好,就算不是最新也比编译好。
viewtopic.php?f=126&t=301674
latex 是个命令集,不是软件,所以在应用程序里找不到,也不存在启动。使用的话,自己写个 .tex 的文件,用 latex 编译。viewtopic.php?f=35&t=331555 的 4楼 有入门教程PDF下载。
回复

回到 “Kubuntu”