总结10.04安装Nvidia驱动的方法

CPU/显卡/打印机/USB设备等硬件问题
回复
slam430
帖子: 5
注册时间: 2011-04-25 13:48

总结10.04安装Nvidia驱动的方法

#1

帖子 slam430 » 2011-05-05 23:47

我的卡是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
头像
黄美姬
帖子: 8428
注册时间: 2009-10-08 11:15
来自: 大城市铁岭

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

#2

帖子 黄美姬 » 2011-05-05 23:55

第一次运行自动生成/etc/modprobe.d/disable-nouveau.conf
重启动再装
OK
我们是命运的妓女,它把我们都嫖了

N卡驱动:http://www.nvidia.cn/Download/index.aspx?lang=cn
极品飞车:http://www.geforce.cn/optimize/optimal- ... ts-450-ops
孤岛危机优化设置:http://www.geforce.cn/optimize/optimal- ... tx-450-ops
:cp /etc/skel/.bashrc ~/
PS1="\[\e]2;\u@\H \w\a\e[32;1m\]\T$\[\e[0m\] "
http://cdimage.ubuntu.com/
http://releases.ubuntu.com/
头像
黄美姬
帖子: 8428
注册时间: 2009-10-08 11:15
来自: 大城市铁岭

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

#3

帖子 黄美姬 » 2011-05-05 23:56

好怪我从没出现Nvidia的logo
GTS450
我定制安装的,11.04
装gdm或init就会装上,xserver-xorg-video-nouveau xserver-xorg-video-radeon 等等
删除N卡
xserver-xorg-video-nouveau
定制安装好像没有 nvidia-*

就这个不能删除,删除就装上N卡的了 :em06
Screenshot.png
我们是命运的妓女,它把我们都嫖了

N卡驱动:http://www.nvidia.cn/Download/index.aspx?lang=cn
极品飞车:http://www.geforce.cn/optimize/optimal- ... ts-450-ops
孤岛危机优化设置:http://www.geforce.cn/optimize/optimal- ... tx-450-ops
:cp /etc/skel/.bashrc ~/
PS1="\[\e]2;\u@\H \w\a\e[32;1m\]\T$\[\e[0m\] "
http://cdimage.ubuntu.com/
http://releases.ubuntu.com/
头像
冲浪板
论坛版主
帖子: 7513
注册时间: 2007-05-06 8:19

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

#4

帖子 冲浪板 » 2011-05-07 12:18

MARK一下
回复