QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 769|回复: 5

[体会及疑惑]nv显卡驱动安装,帮忙顶!

[复制链接]
发表于 2004-6-2 12:27:40 | 显示全部楼层 |阅读模式
昨天我又装了一次NV显卡驱动5336,我接着参照了DOC里面的XF86Config.in.sample尝试修改了XV86Config(抄了一些),后来居然连X都启动不了了!怀疑是Identifier的关系,后来终于搞定~

先贴出我的XF86Config这个配置文件。
# XFree86 4 configuration created by redhat-config-xfree86

Section "ServerLayout"
Identifier "Screen AGP"
Screen "Screen AGP"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "DevInputMice" "AlwaysCore"
EndSection

Section "Files"
FontPath "/usr/share/fonts/zh_CN/TrueType/simsun"

# RgbPath is 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.
# 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.
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "unix/:7100"
EndSection

Section "Module"
Load "xtt"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "type1"
# Load "dri"
EndSection

Section "InputDevice"

# 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:swapcaps"
# Or if you just want both to be control, use:
# Option "XkbOptions" "ctrl:nocaps"
#
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection

Section "InputDevice"

# If the normal CorePointer mouse is not a USB mouse then
# this input device can be used in AlwaysCore mode to let you
# also use USB mice at the same time.
Identifier "DevInputMice"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection

Section "Monitor"
Identifier "Screen AGP"
VendorName "Monitor Vendor"
ModelName "Philips 105M"
DisplaySize 280 210
HorizSync 30.0 - 70.0
VertRefresh 50.0 - 120.0
Option "dpms"
EndSection

Section "Device"
Identifier "NV AGP"
VendorName "nvidia"
Driver "nvidia"
BoardName "NVIDIA GeForce 5200"
EndSection

Section "Screen"
Identifier "Screen AGP"
Device "NV AGP"
Monitor "Screen AGP"
DefaultColorDepth 24
Subsection "Display"
Depth 8
Modes "1024x768" "800x600" "640x400"
EndSubsection
Subsection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubsection
Subsection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubsection

EndSection
#Section "DRI"
# Group 0
# Mode 0666
#EndSection

贴出这个我只想和大家共同讨论一点细节问题,但这些很关键哦:
1.Section "ServerLayout"里面的InputDevice必须是在Section "InputDevice"
中存在!就是"InputDevice"段的Identifier!如下:
Section "ServerLayout"
Identifier "Screen AGP"
Screen "Screen AGP"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "DevInputMice" "AlwaysCore"
EndSection

2.Section "Device"的Identifier要与Section "Screen"中的Device相同!
3.Section "Monitor"的Identifier要与Section "Screen"的Monitor相同!
4.Section "Screen"的Identifier必须要与Section "ServerLayout"里面的Screen相同!
5.Section "ServerLayout"的Identifier有何作用?只是做个名称的标识吗?

1-4是我的观点,请大家畅所欲言,有何不同的请发表,如果我的观点正确,也请同意一个;)
5是我不明的地方,请大家指教!
发表于 2004-6-2 12:36:49 | 显示全部楼层
楼主鼠标是不是没有滚轮呀!
还有楼主用xtt做美化

呵呵, 随便说了一下
回复

使用道具 举报

 楼主| 发表于 2004-6-2 12:44:38 | 显示全部楼层
[quote:06d2546bba="sunmoon1997"]楼主鼠标是不是没有滚轮呀!
还有楼主用xtt做美化

呵呵, 随便说了一下[/quote]
是高人,一看就知道我XTT美化,鼠标确实是2键,也没有模拟3键~
不过我上面的想法是否正确呢?请说一个,我认为这些很关键!
回复

使用道具 举报

发表于 2004-6-2 13:48:46 | 显示全部楼层
呵呵,你的想法当然没错
man 5 XF86Config 看看
东西太多我就不贴出来了
回复

使用道具 举报

发表于 2004-6-2 14:04:34 | 显示全部楼层
完全同意。
我也认为Section "ServerLayout"的Identifier只是做个名称的标识。

ServerLayout
{
   InputDevice(mouse)
  InputDevice(keyboard)
  screen
   {
       Monitor(显示器)
     Device(显卡)
     Display(显示模式)
  }
}
回复

使用道具 举报

 楼主| 发表于 2004-6-2 17:11:53 | 显示全部楼层
[quote:f6b23b9d19="sunmoon1997"]呵呵,你的想法当然没错
man 5 XF86Config 看看
东西太多我就不贴出来了[/quote]
哈哈,我是懒人,很少看MAN的说,一般是错误先出现,就看提示、LOG,然后考虑解决方法~
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-20 07:37 , Processed in 0.039072 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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