歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> 關於Unix >> 關於顯卡驅動的安裝,dri等問題

關於顯卡驅動的安裝,dri等問題

日期:2017/2/28 11:19:48   编辑:關於Unix


第一條原則:不要嘗試把Linux下的驅動裝到freebsd下來。
第二條原則:不要去Linux社區問怎麼在freebsd下安裝顯卡驅動
1、nv
在nv的官方網站上就可以下載到專門為freebsd設計的驅動,不過那樣太麻煩。
nv的驅動在ports中就有。/usr/ports/x11/nvidia-driver/
/usr/ports/x11/nvidia-xconfig/這個ports是幫你配置xorg.cfg的
nv的驅動安裝的時候會有幾個選項。
例如是選用freebsd的agp驅動還是nv的agp驅動。
建議是:
不要使用freebsd自帶的agp驅動。
如果你要使用nv的agp驅動,
首先檢查你的內核配置文件,如果有driver agp這樣的行,一定要注釋掉。
如果你對內核配置文件做了任何修改,請先重新編譯內核。
然後切記,xorg.cfg中這樣一行必須刪除或者注釋掉。
Load "dri"
2、ati
ATI沒有freebsd的驅動。
請在內核配置文件中加入下面兩行
device drm # DRM core module required by DRM drivers
device radeondrm # ATI Radeon
然後重新編譯內核。
然後切記,xorg.cfg中這樣一行必須刪除或者注釋掉。
Load "dri"
3、intel集成顯卡。
intel集成顯卡沒有freebsd的驅動。
device drm # DRM core module required by DRM drivers
device i915drm # Intel i830 through i915
然後切記,xorg.cfg中這樣一行必須刪除或者注釋掉。
Load "dri"
附:
1、如何使用ports安裝驅動請參考freebsd使用手冊。
2、我的系統是freebsd 6.2,以上方式在部分5.x系統下測試過,還有一部分沒有測試過。
3、配置xorg.cfg可以使用xorgcfg -textmode命令。
4、我的ati顯卡的xorg.cfg的配置
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "Module"
Load "freetype"
# Load "xtt"
Load "extmod"
Load "glx"
#Load "dri"
Load "dbe"
Load "record"
Load "xtrap"
Load "type1"
Load "speedo"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "Auto"
Option "Emulate3Buttons"
Option "Device" "/dev/sysmouse"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "Monitor"
Identifier "Monitor0"
### Comment all HorizSync and VertSync values to use DDC:
HorizSync 31.5 - 57.0
VertRefresh 50.0 - 90.0
EndSection
Section "Device"
Identifier "Card0"
Driver "ati"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" "800x600"
EndSubSection
Copyright © Linux教程網 All Rights Reserved