歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> 更多Linux >> nvidia驅動程序安裝

nvidia驅動程序安裝

日期:2017/2/27 14:18:05   编辑:更多Linux
  本方法對所有NVIDIA的顯卡都有效。前提是必須把kernel source安裝上,如果弟兄們升級有錯誤可能就是gcc或者kernel source沒有安裝上。如果出現問題,就要把錯誤信息發上來,這樣才能高效解決問題。發帖時不要忘記說自己的所用的版本,以及硬件信息等。多謝。 1]下載顯卡的驅動tar包,只要是NVIDIA的,這兩個包都適用: www.Linuxsir.org/driver/nvidia/NVID...1.0-3123.tar.gz www.linuxsir.org/driver/nvidia/NVID...1.0-3123.tar.gz 安裝:[經quanlinking兄指教,make時是有先後順序的,要先make NVIDIA_kernel-1.0-3123] # tar zxvf NVIDIA_GLX-1.0-3123.tar.gz # tar zxvf NVIDIA_kernel-1.0-3123.tar.gz # cd NVIDIA_kernel-1.0-3123 # make # cd NVIDIA_GLX-1.0-3123 # make 把/etc/X11中的XF86Config-4文件中的nv改成nvidia。其它注銷項目,請見我的XF86Config-4文件。有些版本沒有這個文件,可以修改XF86Config文件. /etc/X11/XF86Config-4文件,有些版本沒有這個文件,可以修改XF86Config文件. 用下面的來參考 # File generated by anaconda. Section "ServerLayout" Identifier "Anaconda Configured" Screen 0 "Screen0" 0 0 InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "Files" # The location of the RGB database. Note, this is the name of the # file minus the extension (like ".txt" or ".db"). There is normally # no need to change the default. RgbPath "/usr/X11R6/lib/X11/rgb" # Multiple FontPath entries are allowed (they are concatenated together) # By default, Red Hat 6.0 and later now use a font server independent of # the X server to render fonts. 如果漢化就把路徑加在這裡,如果不漢化,就不要加了 FontPath "unix/:7100" EndSection Section "Module" Load "xtt"如果漢化了,在加上這一句沒有漢化就不要加了 Load "GLcore"在這句的前面,要加一個#號 Load "dbe"在這句的前面,要加一個#號 Load "extmod" Load "fbdevhw" Load "dri"在這句的前面,要加一個#號 Load "glx" Load "record" Load "freetype"如果漢化了,也在這句的前面,要加一個#號;沒有用漢化,就不要加#號了 Load "type1"如果漢化了,也在這句的前面,要加一個#號;沒有用漢化,就不要加#號了 EndSection Section "InputDevice" Identifier "Keyboard0" Driver "keyboard" # Option "AutoRepeat" "500 5" # when using XQUEUE, comment out the above line, and uncomment the # following line # Option "Protocol" "Xqueue" # Specify which keyboard LEDs can be user-controlled (eg, with xset(1)) # Option "Xleds" "1 2 3" # To disable the XKEYBOARD extension, uncomment XkbDisable. # Option "XkbDisable" # To customise the XKB settings to suit your keyboard, modify the # lines below (which are the defaults). For example, for a non-U.S.


# keyboard, you will probably want to use: # Option "XkbModel" "pc102" # If you have a US Microsoft Natural keyboard, you can use: # Option "XkbModel" "microsoft" # # Then to change the language, change the Layout setting. # For example, a german layout can be oBTained with: # Option "XkbLayout" "de" # or: # Option "XkbLayout" "de" # Option "XkbVariant" "nodeadkeys" # # If you'd like to switch the positions of your capslock and # control keys, use: # Option "XkbOptions" "ctrl:nocaps" Option "XkbRules" "xfree86" Option "XkbModel" "pc102" Option "XkbLayout" "us" Option "XkbVariant" "basic" #Option "XkbOptions" "" EndSection Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "IMPS/2" Option "Device" "/dev/input/mice" Option "ZAxisMapping" "4 5" Option "Emulate3Buttons" "no" EndSection Section "Monitor" Identifier "Monitor0" VendorName "Monitor Vendor" ModelName "Monitor Model" HorizSync 30-62 VertRefresh 50-75 Option "dpms"在這句的前面,要加一個#號 # -- 1400x1050 -- # 1400x1050 @ 60Hz, 65.8 kHz hsync Modeline "1400x1050" 129 1400 1464 1656 1960 1050 1051 1054 1100 +HSync +VSync # 1400x1050 @ 70Hz, 76.8 kHz hsync Modeline "1400x1050" 151 1400 1464 1656 1960 1050 1051 1054 1100 +HSync +VSync # 1400x1050 @ 75Hz, 82.3 kHz hsync Modeline "1400x1050" 162 1400 1464 1656 1960 1050 1051 1054 1100 +HSync +VSync # 1400x1050 @ 85Hz, 93.2 kHz hsync Modeline "1400x1050" 184 1400 1464 1656 1960 1050 1051 1054 1100 +HSync +VSync EndSection Section "Device" # no known options Identifier "NVIDIA GeForce 3 (generic)" Driver "nv"在這裡,要把nv改成nvidia VendorName "NVIDIA GeForce 3 (generic)" BoardName "NVIDIA GeForce 3 (generic)" #BusID EndSection Section "Screen" Identifier "Screen0" Device "NVIDIA GeForce 3 (generic)" Monitor "Monitor0" DefaultDepth 24 Subsection "Display" Depth 24 Modes "1024x768" "1024x768" EndSubsection EndSection Section "DRI" Mode 0666 EndSection



# no known options Identifier "NVIDIA GeForce 3 (generic)" Driver "nv"在這裡,要把nv改成nvidia VendorName "NVIDIA GeForce 3 (generic)" BoardName "NVIDIA GeForce 3 (generic)" #BusID EndSection Section "Screen" Identifier "Screen0" Device "NVIDIA GeForce 3 (generic)" Monitor "Monitor0" DefaultDepth 24 Subsection "Display" Depth 24 Modes "1024x768" "1024x768" EndSubsection EndSection Section "DRI" Mode 0666 EndSection



Copyright © Linux教程網 All Rights Reserved