Wednesday, July 30, 2008

Freebsd|[精华] 写给新手:显卡驱动的安装

[精华] 写给新手:显卡驱动的安装 - ChinaUnix.net

[精华] 写给新手:显卡驱动的安装


http://www.chinaunix.net 作者:snnn  发表于:2007-04-18 14:35:54
发表评论】 【查看原文】 【BSD讨论区】【关闭

刚在这里看见几篇关于显卡驱动的安装,dri等问题。

我简单说下我的经验:

第一条原则:不要尝试把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
EndSection

Keve Nagy wrote:
> Thank you for the feedback, Everyone!
>
> Seems that for now a cheap nvidia is a good choice.


I have a 7300 GS myself. One of the 7600 models is probably a notch
better - very good, cheap, fanless cards with all the resolution you
need, I believe.

> Those of you who had success with these nvidia cards, what driver did
> you use? I found one in the ports, did you build that one? Or did you
> use the one available for download from the nvidia site?


The one in the ports seems to be the official Nvidia driver. You will
need to have kernel sources.

> How smooth did the driver installation go?
> Any reliability issues with these binary drivers?


No problems, but do read the fine print about agp and running
nvidia-xconfig. Install nvidia-settings if you are into photography or
otherwise care about good colors etc.

Rainer Duffner wrote:
> I'm not running FreeBSD natively on my setup (yet), but I believe there
> are multiple version of the binary NVidia driver in the freebsd
> ports-tree, because NVidia doesn't have a "unified" driver for all their
> hardware.


I presumed that Keve was looking at /usr/ports/x11/nvidia-driver, which
is the latest driver and most probably the correct one if he buys a new
product. But he could always keep in mind that there are legacy
versions. Hard to discuss the matter until he decides on a card.
--
Tore (home period no, user tl18)



No comments: