当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 4 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 总结10.04安装Nvidia驱动的方法
帖子发表于 : 2011-05-04 14:54 

注册: 2011-04-25 13:48
帖子: 5
送出感谢: 0 次
接收感谢: 0 次
我的卡是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
Screenshot.png [ 124.67 KiB | 被浏览 1225 次 ]



最后由 slam430 编辑于 2011-05-05 23:44,总共编辑了 1 次
页首
 用户资料  
 
2 楼 
 文章标题 : Re: 总结10.04安装Nvidia驱动的方法
帖子发表于 : 2011-05-04 15:24 
头像

注册: 2009-10-16 22:46
帖子: 18958
地址: finland
送出感谢: 28
接收感谢: 48
又是开源驱动的问题...........


_________________
>>>>推Ubuntu 桌面培训~~<<<<
>>>>想加入/了解gimp汉化吗,点我吧~<<<<
——————————————————————
不推荐wubi,也不推荐你给别人推荐wubi…………
随心而为的感觉真好……
强推mayhem!!
强推ensiferum


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 总结10.04安装Nvidia驱动的方法
帖子发表于 : 2011-05-04 15:25 
头像

注册: 2010-06-14 13:37
帖子: 4200
送出感谢: 0 次
接收感谢: 3
从来没在ubuntu下纠结过显卡


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 总结10.04安装Nvidia驱动的方法
帖子发表于 : 2011-05-04 15:43 
头像

注册: 2008-09-28 17:24
帖子: 1989
送出感谢: 6
接收感谢: 14
驱动还是源的好,就算不是最新也比编译好。
viewtopic.php?f=126&t=301674


_________________
latex 是个命令集,不是软件,所以在应用程序里找不到,也不存在启动。使用的话,自己写个 .tex 的文件,用 latex 编译。http://forum.ubuntu.com.cn/viewtopic.php?f=35&t=331555 的 4楼 有入门教程PDF下载。


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 4 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译