LinuxSir.cn,穿越时空的Linuxsir!

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

安装NVIDIA的驱动后,屏幕狂闪?

[复制链接]
发表于 2003-2-6 20:04:52 | 显示全部楼层 |阅读模式
我按南北兄的方法安装了nvidia驱动,本方法对所有NVIDIA的显卡都有效。前提是必须把kernel source安装上,如果弟兄们升级有错误可能就是gcc或者kernel source没有安装上。如果出现问题,就要把错误信息发上来,这样才能高效解决问题。发帖时不要忘记说自己的所用的版本,以及硬件信息等。多谢。

1]下载显卡的驱动tar包,只要是NVIDIA的,这两个包都适用:
http://www.linuxsir.cn/driver/nvidia/NVIDIA_GLX-1.0-3123.tar.gz
http://www.linuxsir.cn/driver/nv ... nel-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 "rotocol" "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 "rotocol" "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

但是之后重起后屏幕狂闪,我按ctrl+alt+f1...f8,后出现字符界面就是进不去xwindows,是我没按上吗,对了出现字符界面时说甚么太快,设为了5秒,我要图型,哪位大虾帮忙。
 楼主| 发表于 2003-2-8 18:55:07 | 显示全部楼层
出现字符界面了后的提示信息:INIT:Id"x" respawning too fast:disabled for 5 minutes
发表于 2003-2-8 23:41:45 | 显示全部楼层
你在字符界面下startx后出现什么现象?
发表于 2003-2-9 03:00:05 | 显示全部楼层
注释掉#Load "freetype"
 楼主| 发表于 2003-2-9 21:01:27 | 显示全部楼层
"注释掉#Load "freetype""???我进不去图形界面能注释掉吗 我很菜,尽在图型下混了哈哈。
我敲了startx出现了下面的提示:
Build Operating System:linux2.4.1T-0.13smp i686 [ELF]
Build Host :daffy.perf.redhat.com
Module Loader present
Makers--)probed,(**)from configfile,(==)default setting,(++)from command line,(ii)notice,(II)informational,(ww)warning,(EE)error,(NI)not implemented,(??)unknown
(==)logfile:"var/log/XFree86.0.log",Time:Sun Feb 9 20:16:25 2003
(==) Using config file:"/etc/X11/xF86config-4)
(EE) Failed to load module "GLcore"(module does not exist,0)
(EE)NVIDIA(0):failed to initialize the NVdriver kernel module! EE NIDIA(0):***Aborting***
(EE|Screen(s)found,but none have a usable configuration
Fatal server error
no screens found
When reporting a problem related to a server crash, please send the full server output,
not just the last messages.
This can be found in the log file "/var/log/xFree86.0.log"
please report problems to xfree86@xfree86.org
XIO:fata1 IO error 104(Connecton reset by peer)on X server":0:0"after 0 requests(
0 Known processed)with 0 events remaining.
总算输完了,出现此提示时过一段时间屏幕也会闪,先谢谢大家了
发表于 2003-2-9 22:52:39 | 显示全部楼层
把你的xF86Config-4文件名改成XF86Config-4。linux的文件名区分大小写的。然后再看看有什么问题。
发表于 2003-2-10 08:33:51 | 显示全部楼层
你用的是上面贴出来的XF86Config-4吗?那里不时有几个地方
说要注释掉吗?可是文件本身没有注释掉。
在命令行下用vi。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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