LinuxSir.cn,穿越时空的Linuxsir!

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

FC6 下安装nvidia 9626显卡驱动总结

[复制链接]
发表于 2006-10-28 22:50:41 | 显示全部楼层 |阅读模式
FC6 下安装nvidia 9626显卡驱动总结
可以选择从rpm安装的方法,或者改动NVIDIA-Linux-x86-1.0-9626-pkg1/usr/src/nv/nv-linux.h 这个文件安装官方的驱动.

我的显卡是GeForce4 Ti 4200 with AGP8X         64M显存
我试了这两种方法,都不成功.今天到nvidia的论坛上看了看,找到两个补丁文件,打了补丁之后,终于成功了(3D桌面顺利启动) 不过.我装好之后,挂起(待机)功能不能用了,具体表现为唤醒时屏幕是黑屏,估计是官方驱动不支持待机,用FC6自带的开源驱动待机可以成功唤醒.


总结如下 (如果你觉得打补丁太麻烦,下面的帖子里有我已经打好补丁的三个文件,在tmp.tar.gz这个附件,往下翻几次屏幕就看见了,嗯,好像是在第10贴)

首先下载NVIDIA_kernel-1.0-9626-linux-2.6.19-rc2.diff.txt NVIDIA_kernel-1.0-9625-NOSMBUS.diff.txt 这两个补丁文件(附件里面有),然后在命令行里把NVIDIA-Linux-x86-1.0-9626-pkg1.run 解压 然后把这两个补丁文件放在解压后的NVIDIA-Linux-x86-1.0-9626-pkg1 这个目录的上一层(就是这两个补丁文件要和安装程序在同一个目录下) 命令如下


./NVIDIA-Linux-x86-1.0-9626-pkg1.run -x
patch -p0 < NVIDIA_kernel-1.0-9626-linux-2.6.19-rc2.diff.txt
cd NVIDIA-Linux-x86-1.0-9626-pkg1
patch -p0 < ../NVIDIA_kernel-1.0-9625-NOSMBUS.diff.txt

如果patch命令出错,应该是这个两个补丁的位置没有放置正确
之后运行./nvidia-installer 这个程序就可以安装了
装好之后,把这些考到你的 /etc/X11/xorg.conf文件里(把原来的那个备份一下即可)
然后重启X就可以启动3D桌面效果了
如果装成功了,请上来汇报一下, 谢谢
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder3) Wed Sep 20 16:56:19 PDT 2006
# Xorg configuration created by pyxf86config

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath "/usr/lib/xorg/modules/extensions/nvidia"
ModulePath "/usr/lib/xorg/modules"
EndSection

Section "Module"
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection
Load "glx"
EndSection

Section "InputDevice"

# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "rotocol" "auto"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "Monitor"

Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
### Comment all HorizSync and VertSync values to use DDC:
HorizSync 30.0 - 110.0
VertRefresh 50.0 - 150.0
Option "DPMS"
EndSection

Section "Device"

# Enable 32-bit ARGB GLX Visuals
Identifier "Videocard0"
Driver "nvidia"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "DisableGLXRootClipping" "True"
Option "AddARGBGLXVisuals" "True"
# Uncomment me if you get black screens with Compiz
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Section "Extensions"
Option "Composite" "Enable"
EndSection

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2006-10-29 02:16:58 | 显示全部楼层
请问当我用命令./NVIDIA-Linux-x86-1.0-9626-pkg1.run --extract-only  解压文件时,总是说“Verifying archive integrity... Error in check sums 2810871323 724962551”
我从新下载了几次,都出现了这个问题,这是什么原因?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-29 07:49:28 | 显示全部楼层
Post by flyclover
请问当我用命令./NVIDIA-Linux-x86-1.0-9626-pkg1.run --extract-only  解压文件时,总是说“Verifying archive integrity... Error in check sums 2810871323 724962551”
我从新下载了几次,都出现了这个问题,这是什么原因?
我估计还是你下的有问题吧,从官方网站下,不要从其它第三方的网站下http://www.nvidia.com/object/linux_display_ia32_1.0-9626.html
这是我解压的信息
[root@localhost video]$ ./NVIDIA-Linux-x86-1.0-9626-pkg1.run -x
Creating directory NVIDIA-Linux-x86-1.0-9626-pkg1
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 1.0-9626.......................................................................................................................................................................................................................................................................................
[root@localhost video]$
回复 支持 反对

使用道具 举报

发表于 2006-10-29 08:48:59 | 显示全部楼层
硬件不一样采用你的xorg会不会有问题啊?
建议把你安装显卡驱动的时候改动的地方说一下也好我们自己改动
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-29 08:58:41 | 显示全部楼层
Post by lzuxz
硬件不一样采用你的xorg会不会有问题啊?
建议把你安装显卡驱动的时候改动的地方说一下也好我们自己改动
改动的地方就是用这两个补丁文件改的,具体的信息可以看那两个补丁文件,不大,是可以看得懂的.也可以打完补丁后用vimdiff跟打补丁之前对比一下 nv.c nv-linux.h nv-i2c.c这三个文件  (在NVIDIA-Linux-x86-1.0-9626-pkg1/usr/src/nv目录下)
回复 支持 反对

使用道具 举报

发表于 2006-10-29 09:09:38 | 显示全部楼层
xorg.conf那里怎么改动的 说说看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-29 09:16:41 | 显示全部楼层
Post by lzuxz
xorg.conf那里怎么改动的 说说看
抱歉,这个我是从这里copy的
http://www.linuxsir.cn/bbs/showthread.php?t=278218
另外,我的显卡是GeForce4 Ti 4200 with AGP8X
不过,`官方网站上说,所有的N卡在装了9625及其后续系列(如9626)的驱动后都可以打开3D功能
回复 支持 反对

使用道具 举报

发表于 2006-10-29 09:51:35 | 显示全部楼层
我的方法似乎也没有错啊 ,但是显示找不到系统核心的接口,好像就是这个意思。。。。。。。
但是
[root@localhost tmp]# patch -p0 < NVIDIA_kernel-1.0-9626-linux-2.6.19-rc2.diff.txt
bash: NVIDIA_kernel-1.0-9626-linux-2.6.19-rc2.diff.txt: 没有那个文件或目录
明明就有阿
回复 支持 反对

使用道具 举报

发表于 2006-10-29 10:38:34 | 显示全部楼层
搂主,参考了你的帖子。
启动X出现如下错误:
  1. /usr/lib/tls/libnvidia-tls.so.1: cannot restore segment prot after reloc: Permission denied
复制代码
怎么解决阿?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-29 11:21:11 | 显示全部楼层
Post by yzwlinux
我的方法似乎也没有错啊 ,但是显示找不到系统核心的接口,好像就是这个意思。。。。。。。
但是
[root@localhost tmp]# patch -p0 < NVIDIA_kernel-1.0-9626-linux-2.6.19-rc2.diff.txt
bash: NVIDIA_kernel-1.0-9626-linux-2.6.19-rc2.diff.txt: 没有那个文件或目录
明明就有阿
干脆这样得了,我打好了补丁,(这样你就不用打补丁了),解压后你把得到的三个文件覆盖到NVIDIA-Linux-x86-1.0-9626-pkg1/usr/src/nv/下面即可 (一定要覆盖)
good luck!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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