1. 程式人生 > >rethat下安裝nvidia 顯示卡驅動問題解決方法

rethat下安裝nvidia 顯示卡驅動問題解決方法



1.下載: http://www.nvidia.com/object/linux.html

2.安裝:nvidia驅動安裝有一點很重要一定要在純字元介面下。一般你可以init 3(rh系統的runlevel設定)等級進入系統或者已經登入圖形的情況下,在字元介面執行 init 3 命令。    然後給下載的它加上執行權

#chmod a+x NVIDIA-Linux-x86-1.0-6629-pkg1.run
--執行安裝程式
#sh NVIDIA-Linux-x86-1.0-6629-pkg1.run


--安裝出錯

WARNING: You do not appear to have an NVIDIA GPU supported by the 1.0-8776

         NVIDIA Linux graphics driver installed in this system.  For further
         details, please see the appendix SUPPORTED NVIDIA GRAPHICS CHIPS in
         the README available on the Linux driver download page at
         www.nvidia.com.
License accepted.
-> A precompiled kernel interface for kernel 'Red Hat Linux 9 updated to kernel

   2.4.20-8 Athlon' has been found here:
   ./usr/src/nv/precompiled/nv-linux.o-1.0-8776.rh9up_2.4.20-8_athlon.
   executing: 'cd ./usr/src/nv; /usr/bin/ld -d -r -o nvidia.o precompiled-nv-li
   nux.o nv-kernel.o'...
-> Kernel module linked successfully.
ERROR: Unable to load the kernel module 'nvidia.o'.  This happens most

       frequently when this kernel module was built against the wrong or
       improperly configured kernel sources, with a version of gcc that differs
       from the one used to build the target kernel, or if a driver such as
       rivafb/nvidiafb is present and prevents the NVIDIA kernel module from
       obtaining ownership of the NVIDIA graphics device(s).

       Please see the log entries 'Kernel module load error' and 'Kernel
       messages' at the end of the file '/var/log/nvidia-installer.log' for
       more information.

--安裝時出錯原因


目前nvidia 驅動主持2.4和2.6 核心,debian/fedora 使用者安裝驅動時注意安裝 kernel-headers。
      


解決方法有如下三種:優先順序3->2->1

===========================================================================================
 
方法1:

1.執行下面的命令來獲得它的原始碼

#sh NVIDIA-Linux-x86-1.0-4496-pkg2.run --extract-only

2.設定環境變數

#eXPort IGNORE_CC_MISMATCH=yes

3.進入原始碼資料夾,執行安裝命令

#cd ../NVIDIA-Linux-x86-1.0-4496-pkg2

#make install

4.修改/etc/X11/XF86Config

然後改/etc/X11/XF86Config檔案中的這段。
將顯示卡配置段 Driver "nv" (or Driver "vesa") 改為Driver "nvidia"  ,在Module 部分
加上
        Load   "glx" ;
去掉  
        Load  "dri"
        Load  "GLcore"

===========================================================================================

方法2:
export CC=gcc32
sh ./NVIDIA-Linux-x86-1.0-4496-pkg2.run

===========================================================================================

方法3:
./NVIDIA-Linux-x86-1.0-4496-pkg2.run --add-this-kernel