Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
obs: fedora环境下AOC I2367f 显示器分辨率设置
04-01-2019, 05:31 PM
Post: #1
obs: fedora环境下AOC I2367f 显示器分辨率设置
Move to http://tab.d-thinker.org/showthread.php?tid=13598 .

1 操作系统环境
OS:Fedora 19 64 bit
GPU: i5-3470 with Intel HD 4000 Graphics

2 /etc/X11/xorg.conf 文件配置
在google上查阅了相关资料后得到的回答都是在 Screen 这个段中的 SubScreen 子段中 增加 Modes 这一参数来控制分辨率,但经测试发现都是无效,最后是通过在Monitor 段中增加 Modeline 这一相关参数 ,xorg.conf文件配置如下
Code:
Section "Files"
    ModulePath   "/usr/lib64/xorg/modules"
    FontPath     "catalogue:/etc/X11/fontpath.d"
    FontPath     "built-ins"
EndSection

Section "Module"
    Load  "glx"
EndSection

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

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

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
        HorizSync    30 - 83
        VertRefresh  50 - 76
    Gamma 1
        Modeline "1920x1080_60" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 +hsync +vsync
        ModeLine "1152x864_75" 108.0 1152 1216 1344 1600 864 865 868 900 +hsync +vsync
    ModeLine "1280x1024_60" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
EndSection


Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "NoAccel"                # [<bool>]
        #Option     "AccelMethod"            # <str>
        #Option     "Backlight"              # <str>
        #Option     "DRI"                    # <str>
        #Option     "ColorKey"               # <i>
        #Option     "VideoKey"               # <i>
        #Option     "Tiling"                 # [<bool>]
        #Option     "LinearFramebuffer"      # [<bool>]
        #Option     "SwapbuffersWait"        # [<bool>]
        #Option     "TripleBuffer"           # [<bool>]
        #Option     "XvPreferOverlay"        # [<bool>]
        #Option     "HotPlug"                # [<bool>]
        #Option     "RelaxedFencing"         # [<bool>]
        #Option     "XvMC"                   # [<bool>]
        #Option     "ZaphodHeads"            # <str>
        #Option     "TearFree"               # [<bool>]
        #Option     "PerCrtcPixmaps"         # [<bool>]
        #Option     "FallbackDebug"          # [<bool>]
        #Option     "DebugFlushBatches"      # [<bool>]
        #Option     "DebugFlushCaches"       # [<bool>]
        #Option     "DebugWait"              # [<bool>]
        #Option     "BufferCache"            # [<bool>]
    Identifier  "Card0"
    Driver      "intel"
    BusID       "PCI:0:2: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 "1920x1080"  "1680x1050"  "1024x768"
    EndSubSection
EndSection


Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection
其中的modeline 参数的后面几个数字是通过gtf/cvf命令来计算得到 例如计算分辨率为1920x1080 刷新率为60 的 modeline 命令如下
Code:
gtf 1920 1080 60
结果为
Code:
Modeline "1920x1680_60.00"  275.30  1920 2072 2280 2640  1680 1681 1684 1738  -HSync +Vsync
Quote this message in a reply
Post Reply 


Messages In This Thread
obs: fedora环境下AOC I2367f 显示器分辨率设置 - xwcwt - 04-01-2019 05:31 PM

Forum Jump: