LinuxSir.cn,穿越时空的Linuxsir!

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

看一下我的xorg.conf,搞不懂

[复制链接]
发表于 2005-4-9 19:09:42 | 显示全部楼层 |阅读模式
如果是按照xorg.conf.example中所说的,应该要制定一些显示的分辨率才对
我的配置文件是自动生成的,能够用,但是出现了问题,我第一次进入gnome时分辨率特别的大
后来在gnome里设置才正常的,可我明明在xorg.conf里设置了分辨率那个
后来用gdm,进入gdm分辨率也是特别的大,要调一下才能进入到正常的gnome-session
这样就造成我注销重新登录时由于分辨率过大造成的"花屏"问题。现在想使用xpde桌面,进入之后也是分辨率特别的大。由此可以推知:我设置的只是gnome而xorg.conf的设置是没有作用的。谁有类似的问题,请指点一下。

Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen         "Screen0"
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        RgbPath      "/usr/lib/X11/rgb"
        ModulePath   "/usr/lib/modules"
        FontPath     "/usr/share/fonts/misc/"
        FontPath     "/usr/share/fonts/TTF/"
        FontPath     "/usr/share/fonts/Type1/"
        FontPath     "/usr/share/fonts/CID/"
        FontPath     "/usr/share/fonts/75dpi/"
        FontPath     "/usr/share/fonts/100dpi/"
EndSection

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

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

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        option      "CorePointer"
        Option            "rotocol" "IMPS/2"
        Option            "Device" "/dev/mouse"
        Option             "ZAxisMapping" "4 5"       
EndSection

Section "Monitor"
        #DisplaySize          320   240        # mm
        Identifier   "Monitor0"
        VendorName   "ADI"
        ModelName    " F71"
        Option            "DPMS"

EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "SWcursor"                   # [<bool>]
        #Option     "HWcursor"                   # [<bool>]
        #Option     "NoAccel"                    # [<bool>]
        #Option     "ShadowFB"                   # [<bool>]
        #Option     "UseFBDev"                   # [<bool>]
        #Option     "Rotate"                     # [<str>]
        #Option     "VideoKey"                   # <i>
        #Option     "FlatPanel"                  # [<bool>]
        #Option     "FPDither"                   # [<bool>]
        #Option     "CrtcNumber"                 # <i>
        #Option     "FPScale"                    # [<bool>]
        #Option     "FPTweak"                    # <i>
        Identifier  "Card0"
        Driver      "nv"
        VendorName  "nVidia Corporation"
        BoardName   "NV11 [GeForce2 MX/MX 400]"
        BusID       "CI:1:0:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        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"
                Depth     24
                Modes "1024x768"
        EndSubSection
EndSection
发表于 2005-4-9 19:12:59 | 显示全部楼层
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"
                Depth     24
                Modes "1024x768"
        EndSubSection
EndSection[/QUOTE]
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-9 19:40:37 | 显示全部楼层
谢谢,问题解决了。
如你所说。
对于这个问题,我得出的的结论是XFree和Xorg的配置文件有点不一致
Xfree是要去读取一个用分辨率比如1024X768标识的model,但是Xorg可能是按照色深(depth)来辨识的
在对应的depth下写的modes写分辨率必不可少
回复 支持 反对

使用道具 举报

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

本版积分规则

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