LinuxSir.cn,穿越时空的Linuxsir!

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

如何通过改XFconfig来改动分辨率和刷新率

[复制链接]
发表于 2005-1-12 20:24:02 | 显示全部楼层 |阅读模式
自动生成的XFconfig,分辨率竟然是1280×1024,而刷新率却是60HZ,我改了半天也没能把它改过来,搞的我的glxgears也不能运行,因为glx最大支持到1024×768的!再说闪的太利害了,那位大哥帮我改改,说的具体些!!在哪个地方添加的语句是什么!!!在这儿先谢过了!!!
这是我的XFconfig:
Section "ServerLayout"
        Identifier     "XFree86 Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

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

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

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "keyboard"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "rotocol" "auto"
        Option      "Device" "/dev/mouse"
EndSection

Section "Monitor"
        #DisplaySize      320   240     # mm
        Identifier   "Monitor0"
        VendorName   "BUF"
                  ModelName    "7KlrT"
        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>
        Identifier  "Card0"
        Driver      "nvidia"
        VendorName  "nVidia Corporation"
        BoardName   "NV5M64 [RIVA TNT2 Model 64/Model 64 Pro]"
                 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"
                Viewport   0 0
                Depth     24

        EndSubSection
EndSection
发表于 2005-1-13 10:56:50 | 显示全部楼层
我是这么改的,没改之前,测试startx不行,改了就正常了,也许是对的吧,我也是第一次该,不确定。

添加刷新率,添加2行:
Section "Monitor"
#DisplaySize 320 240 # mm
....
HorizSync 35.15           (这里的数值你按照你自己显卡的配置来设,我的显卡太老了)
VertRefresh 55-65        (这里的数值你按照你自己显卡的配置来设,我的显卡太老了)
EndSection

添加分辨率,添加1行:
Section "Screen"
.........
SubSection "Display"     (我的情况没有Viewport 0 0)
                Depth 16
                Modes "800x600"   (add)
EndSubSection

总共添加完以上3行,我的X就算是跑起来啦,startx是可以的
good luck!
 楼主| 发表于 2005-1-13 14:29:45 | 显示全部楼层
不知你的是xorg还是xfconfig???
我的是xfconfig
发表于 2005-1-13 14:54:34 | 显示全部楼层
HorizSync     查显示器的参数,这个是行频,看显示器的规格就知道了。      
VertRefresh  这个是垂直刷新率,还是根据显示器改,一般可以设为 60.0 - 85.0 ,如果是液晶,直接设为 60.0 - 60.0

SubSection "Display"
                Depth 16
                Modes "1024x768" "800x600" "640x480"
Modes 一般三个,如上写。

分辨率可以用 Ctrl+Alt+小键盘上的加减号修改,加号是提高分辨率,减号是降低分辨率。
 楼主| 发表于 2005-1-14 10:54:47 | 显示全部楼层
我的 xfconfig终于行了,感觉最关键的是在最后添加了如下语句:
Section "DRI"
        Group        0
        Mode         0666
EndSection
哈哈,高兴,感谢楼上各位大哥的帮忙!!!
回复 支持 反对

使用道具 举报

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

本版积分规则

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