免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: aries215
打印 上一主题 下一主题

Xorg设置显示器最佳分辨率的方法 [复制链接]

论坛徽章:
0
41 [报告]
发表于 2009-05-24 00:43 |只看该作者
原帖由 SanRoute 于 2009-5-24 00:25 发表
这是填入Section "Screen"那行



加了呀,放在subsection中不对是不?

论坛徽章:
0
42 [报告]
发表于 2009-05-24 00:52 |只看该作者

我还是贴一下我的配置文件吧,17"CRT!此时正用FB发帖

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

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

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

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

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "Protocol" "auto"
        Option            "Device" "/dev/sysmouse"
        Option            "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        #DisplaySize          280   210        # mm
        Identifier   "Monitor0"
        VendorName   "MAG"
        ModelName    "MAG 770PF"
        Modeline        "1024*768_70.00"  76.16  1024 1080 1192 1360  768 769 772 800  -HSync +Vsync
### Comment all HorizSync and VertRefresh values to use DDC:
        HorizSync    30.0 - 70.0
        VertRefresh  50.0 - 130.0
        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>
        #Option     "DualHead"                   # [<bool>]
        Identifier  "Card0"
        Driver      "nv"
        VendorName  "nVidia Corporation"
        BoardName   "NV5 [RIVA TNT2/TNT2 Pro]"
        BusID       "PCI: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
                Modes        "1024*768_70.00"
        EndSubSection
EndSection

[ 本帖最后由 aries215 于 2009-5-24 00:55 编辑 ]

论坛徽章:
0
43 [报告]
发表于 2009-05-24 00:54 |只看该作者
我的配置文件仅仅添加两行“gtf”出来的信息,没删改其他内容。

论坛徽章:
0
44 [报告]
发表于 2009-05-24 00:57 |只看该作者

回复 #43 aries215 的帖子

### Comment all HorizSync and VertRefresh values to use DDC:
        HorizSync    30.0 - 70.0
        VertRefresh  50.0 - 130.0
        Option            "DPMS"
我看手册上也有这行,可我的没有,为啥呢?

论坛徽章:
0
45 [报告]
发表于 2009-05-24 01:05 |只看该作者

回复 #44 SanRoute 的帖子

噢,你那好像是液晶屏吧,没有行频场频的。
你先休息吧。

论坛徽章:
0
46 [报告]
发表于 2009-05-24 11:03 |只看该作者

回复 #14 sorrento 的帖子

我的是在/root下阿?

论坛徽章:
0
47 [报告]
发表于 2009-05-24 11:24 |只看该作者

回复 #45 aries215 的帖子

我用的是笔记本,dell Latitude D630  我看有人贴dell的本用bsd的不能启动x啥的,也没咋懂,不过我用freebsd时一startx就画屏,按ctrl+alt+backspace不管用,只能关电源,是不是openbsd和那是一样的?(安openbsd我是在虚拟机中,不敢拿电脑直接试)

我刚刚安了debian5,显示正常,可就是亮度一会就变成最大值了。调回去过会还会变回来,我看来看debian的xorg.conf.什么也没有,比openbsd的少不少。

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc104"
        Option          "XkbLayout"     "us"
EndSection

Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
EndSection

Section "Device"
        Identifier      "Configured Video Device"
EndSection

Section "Monitor"
        Identifier      "Configured Monitor"
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Monitor         "Configured Monitor"
EndSection
~                                                     


以上是debian5在物理机上的xorg.conf。


物理机的gtf:
# 1280x800 @ 60.00 Hz (GTF) hsync: 49.68 kHz; pclk: 83.46 MHz
  Modeline "1280x800_60.00"  83.46  1280 1344 1480 1680  800 801 804 828  -HSync +Vsync

论坛徽章:
0
48 [报告]
发表于 2009-05-24 11:52 |只看该作者
设置HorizSync和VertRefresh和Modes 就可以了, 手册上看的

论坛徽章:
0
49 [报告]
发表于 2009-05-24 11:59 |只看该作者

回复 #48 MiracleNo1 的帖子

因为按手册上说的设置没有成功,所以发贴子问的

论坛徽章:
0
50 [报告]
发表于 2009-05-24 13:20 |只看该作者
还是不行阿楼主,加我QQ  378539310
我注意到了这一行

        RgbPath      "/usr/local/share/X11/rgb"

我的FB里面没有文件!自动生成的xorg.conf.new 里面也没有这一行!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP