LinuxSir.cn,穿越时空的Linuxsir!

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

请帮我查看一下xorg.con哪里出现了错误?已解决

[复制链接]
发表于 2009-5-6 07:34:47 | 显示全部楼层 |阅读模式
文件内容如下:
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/lib/xorg/modules"
        FontPath     "/usr/share/fonts/misc/"
        FontPath     "/usr/share/fonts/TTF/"
        FontPath     "/usr/share/fonts/OTF"
        FontPath     "/usr/share/fonts/Type1/"
        FontPath     "/usr/share/fonts/100dpi/"
        FontPath     "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
        Load  "record"
        Load  "dri"
        Load  "xtrap"
        Load  "glx"
        Load  "dbe"
        Load  "extmod"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "rotocol" "auto"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "nvidia"
        VendorName  "nVidia Corporation"
        BoardName   "NV18 [GeForce4 MX 440 AGP 8x]"
        BusID       "CI:1:0:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth        24
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes        "1024x768"
               
        EndSubSection
EndSection


运行时出现no screen found错误,请教如何修改?
发表于 2009-5-6 08:09:03 | 显示全部楼层
运行Xorg --configure先, 然后 X -config /root/xorg.conf.new
看有什么debug info
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-6 08:39:56 | 显示全部楼层
谢谢cokebingo

是的,刚编译好的系统。

用 Xorg -configure生成/root/xorg.conf.new,
编辑了一下该文件,添加了:
...
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24 #这是添加项
....
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" #这是添加项

然后测试──X -config /root/xorg.conf.new

输出的错误信息是:
(EE) No devices detected
Fatal server error
noscreens found

-----------

原来是我编译X的时候,加入了nv显卡支持,结果不能支持我的mmx440,取消了这个USE标志后重新编译,生成的xorg.conf不用修改就可以直接进去了。
回复 支持 反对

使用道具 举报

发表于 2009-5-6 08:44:33 | 显示全部楼层
Xorg -configure 是最基本的生成方法,几乎无视你的硬件。

你大可以用xorg-server自带的更友好的 xorgconfig 和 xorgcfg两个工具一步步wizard式的生成xorg.xonf.

这在http://www.gentoo.org/doc/en/xorg-config.xml 里都提及
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-6 10:27:11 | 显示全部楼层
谢谢 MeaCulpa

你说的方法也试过了,产生的xorg.conf文件看来也是需要配置一下的。否则还是会产生同样的错误信息。

我估计是分辨率的问题,但不知道如何设置。

我的显示器是三星的953BW,最大分辨是1440x900

显卡如xorg.conf所示,是GeForce4 MX 440 AGP 8x

哪位前辈能不能给个自用的xorg.conf参考一下,谢谢了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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