天天看点

Linux安装Nvidia显卡驱动:禁用The Nouveau kernel driver的方法!

系统:Red Hat Enterprise 6(32位)

显卡:Nvidia Gforce 7300GT

将驱动从Nvidia官网下载回来后 进入文本模式直接运行安装,发现提示如下错误:

错误日志如下:

  nvidia-installer log file '/var/log/nvidia-installer.log'

creation time: Thu Jun 16 23:35:00 2011

installer version: 275.09.07

PATH:

/usr/lib/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bi

n:/root/bin

option status:

  license pre-accepted : false

  update : false

  force update : false

  expert : false

  uninstall : false

  driver info : false

  precompiled interfaces : true

  no ncurses color : false

  query latest version : false

  no questions : false

  silent : false

  no recursion : false

  no backup : false

  kernel module only : false

  sanity : false

  add this kernel : false

  no runlevel check : false

  no network : false

  no ABI note : false

  no RPMs : false

  no kernel module : false

  force SELinux : default

  no X server check : false

  no cc version check : false

  run distro scripts : true

  no nouveau check : false

  run nvidia-xconfig : false

  sigwinch work around : true

  force tls : (not specified)

  X install prefix : (not specified)

  X library install path : (not specified)

  X module install path : (not specified)

  OpenGL install prefix : (not specified)

  OpenGL install libdir : (not specified)

  utility install prefix : (not specified)

  utility install libdir : (not specified)

  installer prefix : (not specified)

  doc install prefix : (not specified)

  kernel name : (not specified)

  kernel include path : (not specified)

  kernel source path : (not specified)

  kernel output path : (not specified)

  kernel install path : (not specified)

  precompiled kernel interfaces path : (not specified)

  precompiled kernel interfaces url : (not specified)

  proc mount point : /proc

  ui : (not specified)

  tmpdir : /tmp

  ftp mirror : ftp://download.nvidia.com

  RPM file list : (not specified)

  selinux chcon type : (not specified)

Using: nvidia-installer ncurses user interface

-> Tagging shared libraries with chcon -t textrel_shlib_t.

-> License accepted.

-> Installing NVIDIA driver version 275.09.07.

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.

WARNING: The modprobe configuration file to disable Nouveau,

  /etc/modprobe.d/nvidia-installer-disable-nouveau.conf, is already

  present. Please be sure you have rebooted your system since that file

  was written. If you have rebooted, then Nouveau may be enabled for

  other reasons, such as being included in the system initial ramdisk or

  in your X configuration file. Please consult the NVIDIA driver README

  and your Linux distribution's documentation for details on how to

  correctly disable the Nouveau kernel driver.

ERROR: Installation has failed. Please see the file

  '/var/log/nvidia-installer.log' for details. You may find suggestions

  on fixing installation problems in the README available on the Linux

  driver download page at www.nvidia.com.

上面是安装显卡驱动的时候的错误提示:意思就是:

Nouveau kernel driver 这个驱动正在被系统使用,这个驱动和Nvidia驱动冲突,要想继续安装,则必须禁用此驱动!因为RHEL 6 系统默认装的显卡驱动就是Nouveau . Nouveau是一个由爱好者组织的针对NVIDIA显卡开发第三方开源3D驱动的共同项目,并且Nouveau是在完全没有得到NVIDIA任何支 持的情况下进行开发的,Nouveau算是X.Org基金会的一个项目.

解决办法如下:

也即关闭Nouveau:

1)把驱动加入黑名单中: /etc/modprobe.d/blacklist.conf  在后面加入:

blacklist nouveau

2) 使用 dracut重新建立  initramfs p_w_picpath file :

* 备份 the initramfs file

$ sudo mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak

* 重新建立 the initramfs file

$ sudo dracut -v /boot/initramfs-$(uname -r).img $(uname -r)

3) 重启系统至文本模式,init 3 这个可以修改/etc/inittab 文件 init 3是文本模式,

   init 5是图形界面模式.重启之后,进入文本模式,其实可以发现字体变大了,也就是说驱动没有被加载,成功禁用了Nouveau

4)检查nouveau driver确保没有被加载!

$ lsmod | grep nouveau

5) 运行安装文件

$ sudo ./NVIDIA-Linux-x86_64-195.36.15-pkg2.run

sh NVIDIA-Linux-x86-275.09.07.run

安装过程中根据相应提示,即可完成安装.

6)重启系统,进入图形界面,即可发现出现了如下选项:

没安装之前提示就是 需要硬件3D支持!

Linux安装Nvidia显卡驱动:禁用The Nouveau kernel driver的方法!

系统-->首选项-->NVIDIA X Server Settings

继续阅读