QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1305|回复: 7

笔记本电脑 FC5下安装nvidia后的怪异事件!

[复制链接]
发表于 2006-5-21 18:05:37 | 显示全部楼层 |阅读模式
我在装好FC5后(SELinux Disable),运行了yum upgrade,更新了kernel(2.6.16_1.2111_FC5),并装了相应版本的kernel-devel。
而后,我装了livna的xorg-x11-drv-nividia-1.0.8756-3.lvn5以及kmod-nvidia-1.0.8756-3.2.6.16_1.2111_FC5。装了相应的SDK
这个时候,问题出现了,运行startx后出现黑屏,感觉上是进入了Xwindows(硬盘灯狂闪)而显示器上没有内容。运行/usr/bin/glxgears和glxinfo出现couldn't open display (null)的错误。

奇怪的地方在于,我没有装NVIDIA的驱动时的xorg.conf(定为1号配置文件)装好NVIDIA驱动后的xorg.conf(定为2号配置文件)。当我直接使用2号配置文件,startx后,屏幕黑屏,似乎是分辨率的问题(?),不能正常工作。而当我先用1号配置文件startx(800*600),然后退出,并再次用2号配置文件startx,这个时候,屏幕却正常了(1024*76。谁能告诉我这是怎么回事呢? 谢谢了。

附上2个xorg.conf

1号xorg.conf
=======================================================

# XFree86 4 configuration created by pyxf86config

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

Section "Files"

# Multiple FontPath entries are allowed (they are concatenated together)
# By default, a font server independent of the X server is
# used to render fonts.
        FontPath     "unix/:7100"
EndSection

Section "Module"
        Load  "dbe"
        Load  "extmod"
        Load  "fbdevhw"
        Load  "glx"
        Load  "record"
        Load  "freetype"
        Load  "type1"
        Load  "synaptics"
        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      "kbd"
        Option            "XkbModel" "pc105"
        Option            "XkbLayout" "us"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "Protocol" "IMPS/2"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5"
        Option            "Emulate3Buttons" "yes"
EndSection

Section "InputDevice"
        Identifier  "Synaptics"
        Driver      "synaptics"
        Option            "Device" "/dev/input/mice"
        Option            "Protocol" "auto-dev"
        Option            "Emulate3Buttons" "yes"
EndSection

Section "Monitor"

### Comment all HorizSync and VertSync values to use DDC:
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "MS_0003"
### Comment all HorizSync and VertSync values to use DDC:
        HorizSync    31.5 - 37.9
        VertRefresh  50.0 - 70.0
        Option            "dpms"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "nv"
        VendorName  "Videocard vendor"
        BoardName   "nVidia Corporation NV11 [GeForce2 Go]"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     16
                Modes    "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes    "800x600" "640x480"
        EndSubSection
EndSection

Section "DRI"
        Group        0
        Mode         0666
EndSection

=======================================================

2号xorg.conf
=======================================================

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder3)  Wed Mar 29 14:43:26 PST 2006
# Xorg configuration created by system-config-display

Section "ServerLayout"
        Identifier     "single head configuration"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "Synaptics" "CorePointer"
        InputDevice    "Mouse0" "AlwaysCore"
EndSection

Section "Files"

# Multiple FontPath entries are allowed (they are concatenated together)
# By default, a font server independent of the X server is
# used to render fonts.
        ModulePath   "/usr/lib/xorg/modules/extensions/nvidia"
        ModulePath   "/usr/lib/xorg/modules"
        FontPath     "unix/:7100"
EndSection

Section "Module"
        Load  "dbe"
        Load  "extmod"
        Load  "fbdevhw"
        Load  "record"
        Load  "freetype"
        Load  "type1"
        Load  "synaptics"
        Load  "glx"
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      "kbd"
        Option            "XkbModel" "pc105"
        Option            "XkbLayout" "us"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "Protocol" "IMPS/2"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5"
        Option            "Emulate3Buttons" "yes"
EndSection

Section "InputDevice"
        Identifier  "Synaptics"
        Driver      "synaptics"
        Option            "Device" "/dev/input/mice"
        Option            "Protocol" "auto-dev"
        Option            "Emulate3Buttons" "yes"
EndSection

Section "Monitor"

### 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:
### 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:
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "MS_0003"
### Comment all HorizSync and VertSync values to use DDC:
        HorizSync    31.5 - 37.9
        VertRefresh  50.0 - 70.0
        Option            "dpms"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "nvidia"
        VendorName  "Videocard vendor"
        BoardName   "nVidia Corporation NV11 [GeForce2 Go]"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     16
                Modes    "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes    "800x600" "640x480"
        EndSubSection
EndSection
发表于 2006-5-21 18:33:58 | 显示全部楼层
哦,你的nvidia不是yum安装的?
回复

使用道具 举报

发表于 2006-5-21 18:35:14 | 显示全部楼层
2号文件,这行修改成 Modes "1024*768" "800x600" "640x480"。
另,楼主是什么显示器?
回复

使用道具 举报

 楼主| 发表于 2006-5-21 19:03:32 | 显示全部楼层
[quote:cca9cfe8f1="jozhu"]2号文件,这行修改成 Modes "1024*768" "800x600" "640x480"。
另,楼主是什么显示器?[/quote]

我的是笔记本电脑 NEC的P440
改成1024*768还是1024x768?
回复

使用道具 举报

 楼主| 发表于 2006-5-21 19:05:38 | 显示全部楼层
[quote:504da11e6e="积木"]哦,你的nvidia不是yum安装的?[/quote]

我的nvidia是通过yum从livna上装的
回复

使用道具 举报

 楼主| 发表于 2006-5-21 19:50:37 | 显示全部楼层
加上1024x768,还是黑屏,见鬼了
回复

使用道具 举报

发表于 2006-5-21 22:12:02 | 显示全部楼层
注意下刷新率
回复

使用道具 举报

发表于 2006-5-22 13:02:16 | 显示全部楼层
楼主啊,我建议你把第一个xorg.conf备份一下,然后直接在上面改用nvidia的驱动。其实很简单,只要把 Driver "nv改成Driver "nvidia"就可以的拉
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-16 15:04 , Processed in 0.037981 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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