如何更改我的 Xorg 配置文件来修复我遇到的屏幕失真问题?

如何更改我的 Xorg 配置文件来修复我遇到的屏幕失真问题?

我有一个运行 FreeBSD 8.2-RELEASE-p2 的系统,附带一个 LCD 显示屏,能够以 1600 x 900 的本机分辨率运行。我已经按照我认为应该工作的方式配置了 Xorg,但是显示图像的右侧显示在屏幕左侧:

在此输入图像描述

显示在较低分辨率下看起来是正确的...是否是 Xorg.conf 文件中的某些设置导致了这种情况?我可以尝试采取哪些步骤来解决/纠正此问题?

这是我的 Xorg.conf 文件:

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

Section "Files"
    ModulePath   "/usr/local/lib/xorg/modules"
    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  "dri2"
    Load  "glx"
    Load  "dbe"
    Load  "dri"
    Load  "extmod"
    Load  "record"
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"
    Identifier   "GenericMonitor0"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Acer"
    ModelName    "S202HL"
    HorizSync    30-80
    VertRefresh  55-75
    # 1600x900 @ 60.00 Hz (GTF) hsync: 55.92 kHz; pclk: 119.00 MHz
    Modeline "1600x900_60.00"  119.00  1600 1696 1864 2128  900 901 904 932  -HSync +Vsync

    # 1200x675 @ 60.00 Hz (GTF) hsync: 41.94 kHz; pclk: 65.09 MHz
    #Modeline "1200x675_60.00"  65.09  1200 1248 1376 1552  675 676 679 699  -HSync +Vsync

    # 1280x720 @ 60.00 Hz (GTF) hsync: 44.76 kHz; pclk: 74.48 MHz
    #Modeline "1280x720_60.00"  74.48  1280 1336 1472 1664  720 721 724 746  -HSync +Vsync

    # 1024x576 @ 60.00 Hz (GTF) hsync: 35.82 kHz; pclk: 47.00 MHz
    #Modeline "1024x576_60.00"  47.00  1024 1064 1168 1312  576 577 580 597  -HSync +Vsync

    Option "PreferredMode" "1600x900_60.00"
    #Option "PreferredMode" "1600x675_60.00"
    #Option "PreferredMode" "1280x720_60.00"
    #Option "PreferredMode" "1024x576_60.00"
    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     "ShadowFB"              # [<bool>]
        #Option     "DefaultRefresh"        # [<bool>]
        #Option     "ModeSetClearScreen"    # [<bool>]
    Identifier  "Card0"
    Driver      "vesa"
    VendorName  "Intel Corporation"
    BoardName   "Core Processor Integrated Graphics Controller"
    BusID       "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    #Device     "Card0"
    #Monitor    "Monitor0"
    SubSection "Display"
        Depth     24
        Modes "1280x720_60.00" "1024x768"
        #Virtual 1200 675
    EndSubSection
EndSection

Section "Screen"
    Identifier "Screen1"
    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

编辑:已更新信息。这是连接到板载视频控制器的 VGA 电缆。pciconf -lv将其报告为:

vgapci0@pci0:0:2:0: class=0x030000 card=0x04381028 chip=0x00428086 rev=0x12 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = display
    subclass   = VGA

这是一条全新的 VGA 电缆,但我会尝试使用不同的电缆。没有板载 DVI。

答案1

您的配置仅ModeLine定义了一个 - 用于1600x900决议 - 并使其成为首选模式。您可以获得恰当的模型行(由 Xorg 为您的显示器确定)通过查看日志文件 - 通常是/var/log/Xorg.0.log.

如果设置 Modeline 没有帮助,请尝试运行X -configure,这将创建一个xorg.conf.new包含建议设置的文件。如果这也不能解决您的问题,您可能需要使用其他显示驱动程序。

答案2

根据英特尔显卡的新程度,您还可以通过更新到 10-CURRENT 来获得服务,该版本支持英特尔 Sandy Bridge 卡上的 KMS,并且最近 X.org 已更新以支持此功能(实际上是在最近几天)。

相关内容