LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 6532|回复: 10

FreeBSD下如何安装nvidia显卡驱程

[复制链接]
发表于 2003-9-25 19:55:59 | 显示全部楼层 |阅读模式
下面是简单的步骤:


1. 从www.nvidia.com下载最新的驱程,现在是:NVIDIA-FreeBSD-x86-1.0-4365.tar.gz
2. 解压驱程到临时目录(如/tmp):#tar xzvf NVIDIA-FreeBSD-x86-1.0-4365.tar.gz /tmp
3. #cd NVIDIA-FreeBSD-x86-1.0-4365
#make setup
4. 修改 "/etc/X11/XF86Config"文件的"Section Device"部分

Section "Device"

Identifier "Card"
Driver "nvidia" # Rename "nv" to "nvidia"
#ChipSet "RIVA TNT2" # Comment out
Card "nv RIVA TNT2"
#Option "NvAgp" "1" # Use NVIDIA's AGP GART Driver
#Option "NvAgp" "0" # Disable AGP
Option "NvAgp" "2" # Use the OS AGP GART driver (agp.ko)
#Option "NvAgp" "3" # Attempt "2", fall back to "1"



5. 注意 Section "Screen"和  "Section Device"中"Identifier" 的设置

Section "Screen"

Identifier "Screen0"
Device "Card" # <------------This
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x1024"

6. 在/etc/defaults/loader.conf中加入:

# -- load FreeBSD AGP GART driver -- #
agp_load="YES"

7. shutdown -r now
 楼主| 发表于 2003-9-25 19:56:07 | 显示全部楼层
My sections looks like:
Section "Device"
Identifier "GeForceDDR 32MB"
Driver "nvidia"
Option "NvAgp" "2"

Section "Screen"
Identifier "Screen 1"
Device "GeForceDDR 32MB"
Monitor "SyncMaster 950p"
DefaultDepth 24
I used text mode generator to create /etc/X11/XF86Config
After installing nvidia drivers I had to add only two lines in Device section:
Driver "nvidia"
Option "NvAgp" "2"

No magic here.

Also one should add to /boot/loader.conf
nvidia_load="YES"

and if one wants to add 100-150 fps more then add to /etc/sysctl.conf

hw.nvidia.registry.EnableAGPFW=1 <-- this is for driver version 4365, syntax looks a little different in previous driver version
hw.nvidia.registry.EnableVia4x=1 <--- for VIA mobos
发表于 2003-9-26 15:27:41 | 显示全部楼层
不用重新编译内核吗?
 楼主| 发表于 2003-9-26 16:13:22 | 显示全部楼层
假如你用的是4.8的话,你就需要在内核里加入
options USER_LDT 然后编译内核 在Freebsd 5.1-RELEASE 该项默认已经启用了,所以不需要编译内核
 楼主| 发表于 2003-9-28 10:22:39 | 显示全部楼层
如果出现下面的错误:

  1. (II) Primary Device is: PCI 01:00:0
  2. (--) Assigning device section with no busID to primary device
  3. (WW) NVIDIA: Chipset "RIVA TNT2 Model 64" in Device section "Card0" isn't valid for this driver
  4. (EE) No devices detected.

  5. Fatal server error:
  6. no screens found
复制代码

请注释掉:
ChipSet "RIVA TNT2 Model 64"
Card "nv RIVA TNT2 Model 64"
发表于 2003-9-28 11:29:52 | 显示全部楼层
不敢用啊。。。看了nvidia介绍kde可能会崩溃。看到都怕。算了,不玩游戏。不装了!
发表于 2003-10-4 14:06:56 | 显示全部楼层
最初由 Freebird 发表
假如你用的是4.8的话,你就需要在内核里加入
options USER_LDT 然后编译内核 在Freebsd 5.1-RELEASE 该项默认已经启用了,所以不需要编译内核



怎么在内核里加入?
 楼主| 发表于 2003-10-4 14:09:41 | 显示全部楼层
最初由 andrew 发表
怎么在内核里加入?


先看看Handbook,怎么编译内核,否则出错了就麻烦。
http://www.freebsd.org/doc/en_US ... k/kernelconfig.html
发表于 2004-5-26 13:24:01 | 显示全部楼层
好像ports有一个是关于nvidia驱动。。。
找个机会看看
发表于 2004-7-14 23:48:39 | 显示全部楼层
最初由 梦幻者言 发表
好像ports有一个是关于nvidia驱动。。。
找个机会看看

我用ports安装死活不对,直接从nvidia下载安装就可以了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表