LinuxSir.cn,穿越时空的Linuxsir!

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

升级NVIDIA显卡驱动

[复制链接]
发表于 2002-9-20 14:50:35 | 显示全部楼层 |阅读模式
在WINDOWS下调好屏幕,但每次进入LINUX后,屏幕总会偏移,要人手调教,请问有什么方法能一次解决这个问题啊?还有,怎么改分辨率?
谢谢!
发表于 2002-9-20 15:14:15 | 显示全部楼层

Re: 显示器的问题?

好像没有什么好的办法,我的也有这种情况。可以调一下分辨率试试  (setup).....

最初由 orange 发布
在WINDOWS下调好屏幕,但每次进入LINUX后,屏幕总会偏移,要人手调教,请问有什么方法能一次解决这个问题啊?谢谢!
 楼主| 发表于 2002-9-20 15:16:48 | 显示全部楼层
怎样在KDE 下调分辨率啊?请讲详细点!谢谢!
发表于 2002-9-20 15:27:53 | 显示全部楼层
这个问题早就解决了。。兄弟,看到帖子回个话,我转到硬件版去,然后就给答案。。
 楼主| 发表于 2002-9-20 15:35:34 | 显示全部楼层
是吗?那谢谢了!怎么解决啊?
发表于 2002-9-20 15:42:38 | 显示全部楼层
 楼主| 发表于 2002-9-20 15:49:45 | 显示全部楼层
调整显示屏幕偏移和刷新频率。[非NVIDIA的显卡,可用这种办法,如果NVIDIA的,我们要升级显卡驱动]
1]在控制台下运行
#xvidtune
2]会有一个设置显示器的图形工具,用left和right按钮调好屏幕位置,test一下,调到显示位于最中间为准,再show一下,将终端窗口上显示的那一行输出记下来,类似这样的语句,在控制台下用鼠标帖到编辑器上。
"1024x768" 94.50 1024 1088 1184 1376 768 769 772 808 +hsync +vsync
3]编辑/etc/X11/XF86config-4这个文件
找到Section "Monitor"中当前分辨率的那段,应该你会看到类似
ModeLine "1024x480" 65.00 1024 1032 1176 1344 480 488 494 563 -hsync -vsync
在这句的前面加一个#号,注销掉,然后把你测试出来的如上面我说的类似的那个帖在编辑器的那个,帖在我们加#号的那句的前面,但要加一个ModeLine,也就成了如下的样子。ModeLine后面要有一个空格;
ModeLine "1024x768" 94.50 1024 1088 1184 1376 768 769 772 808 +hsync +vsync
4]重启XWIN服务器,就能看到效果了。

但我可是用TNT2-M64的显卡的啊!
发表于 2002-9-20 15:55:24 | 显示全部楼层
你的显卡的芯片是NVIDIA的吗,如果是就升级驱动就OK了。。
 楼主| 发表于 2002-9-20 16:00:14 | 显示全部楼层
可惜,我找不到FOR LINUX 的驱动啊!哪有?
发表于 2002-9-20 16:09:41 | 显示全部楼层
http://www.linuxsir.cn/forum.php?mod=viewthread&tid=6630
到上面的地址下载驱动。解压后,在两个相应的目录里执行
#make
然后改/etc/X11/XF86Config-4文件

用下面的来参考



# 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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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