屏幕分辨率 - 无法让 xorg.conf 使用 Modeline 而不是 EDID

屏幕分辨率 - 无法让 xorg.conf 使用 Modeline 而不是 EDID

在 Sony Vaio VGC-JS1E All In One 台式电脑上正确运行 Ubuntu 13.04 确实存在问题。我也没有声音,但这个问题与屏幕分辨率有关。

PC 中的面板的原始分辨率为 1680 x 1050。我找不到任何其他信息,包括刷新率。显卡是英特尔的。首次安装时,屏幕默认为屏幕左上角的低分辨率,其余部分由最右侧和底部像素列/行的重复填充。我可以在 Ubuntu 设置中将分辨率更改为更高的分辨率,但原始分辨率不会出现在列表中。此外,即使我没有连接第二个面板,也会检测到第二个面板。我知道这可能与 HDMI 输出有关,即使它没有被使用。

我尝试使用 xrandr 添加它,但列表中最大分辨率(1600 x 1200)以外的区域被隐藏(鼠标指针消失在重复像素后面)。因此,我开始在论坛上寻找创建一个 xorg.conf 文件的方法,其中包含适当的 Modeline 和各种选项,以强制 X 仅使用一个屏幕(有效),并忽略来自屏幕的虚假 EDID 信息,而改用 Modeline。然而,我尝试的一切似乎都无济于事。

检查了 Xorg.0.log 后,本节似乎适用(也重复了几次):

[  1439.982] (II) intel(0): EDID for output LVDS1
[  1439.982] (II) intel(0): Not using mode "1680x1050_60" (exceeds panel dimensions)
[  1439.982] (II) intel(0): Not using default mode "320x240" (doublescan mode not supported)
[  1439.982] (II) intel(0): Not using default mode "400x300" (doublescan mode not supported)
[  1439.982] (II) intel(0): Not using default mode "400x300" (doublescan mode not supported)
[  1439.982] (II) intel(0): Not using default mode "512x384" (doublescan mode not supported)
[  1439.982] (II) intel(0): Not using default mode "640x480" (doublescan mode not supported)
[  1439.982] (II) intel(0): Not using default mode "640x512" (doublescan mode not supported)
[  1439.982] (II) intel(0): Not using default mode "800x600" (doublescan mode not supported)
[  1439.982] (II) intel(0): Not using default mode "896x672" (doublescan mode not supported)
[  1439.982] (II) intel(0): Not using default mode "928x696" (doublescan mode not supported)
[  1439.982] (II) intel(0): Not using default mode "960x720" (doublescan mode not supported)
[  1439.982] (II) intel(0): Not using default mode "576x432" (doublescan mode not supported)
[  1439.982] (II) intel(0): Not using default mode "680x384" (doublescan mode not supported)
[  1439.982] (II) intel(0): Not using default mode "680x384" (doublescan mode not supported)
[  1439.982] (II) intel(0): Not using default mode "700x525" (doublescan mode not supported)
[  1439.982] (II) intel(0): Not using default mode "720x450" (doublescan mode not supported)
[  1439.982] (II) intel(0): Not using default mode "800x512" (doublescan mode not supported)
[  1439.982] (II) intel(0): Not using default mode "840x525" (doublescan mode not supported)
[  1439.982] (II) intel(0): Not using default mode "840x525" (doublescan mode not supported)
[  1439.982] (II) intel(0): Not using default mode "960x540" (doublescan mode not supported)
[  1439.982] (II) intel(0): Not using default mode "960x600" (doublescan mode not supported)
[  1439.982] (II) intel(0): Not using default mode "1024x768" (doublescan mode not supported)
[  1439.982] (II) intel(0): Printing probed modes for output LVDS1
[  1439.982] (II) intel(0): Modeline "1600x1200"x60.0  162.00  1600 1664 1856 2160  1200 1201 1204 1250 -hsync -vsync (75.0 kHz eP)
[  1439.982] (II) intel(0): Modeline "1600x1024"x60.2  103.12  1600 1600 1656 1664  1024 1024 1029 1030 +hsync +vsync (62.0 kHz d)
[  1439.982] (II) intel(0): Modeline "1400x1050"x60.0  122.00  1400 1488 1640 1880  1050 1052 1064 1082 +hsync +vsync (64.9 kHz d)
[  1439.982] (II) intel(0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz d)
[  1439.982] (II) intel(0): Modeline "1440x900"x59.9  106.50  1440 1520 1672 1904  900 903 909 934 -hsync +vsync (55.9 kHz d)
[  1439.982] (II) intel(0): Modeline "1280x960"x60.0  108.00  1280 1376 1488 1800  960 961 964 1000 +hsync +vsync (60.0 kHz d)
[  1439.982] (II) intel(0): Modeline "1360x768"x59.8   84.75  1360 1432 1568 1776  768 771 781 798 -hsync +vsync (47.7 kHz d)
[  1439.982] (II) intel(0): Modeline "1360x768"x60.0   72.00  1360 1408 1440 1520  768 771 781 790 +hsync -vsync (47.4 kHz d)
[  1439.982] (II) intel(0): Modeline "1152x864"x60.0   81.62  1152 1216 1336 1520  864 865 868 895 -hsync +vsync (53.7 kHz d)
[  1439.982] (II) intel(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz d)
[  1439.982] (II) intel(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz d)
[  1439.982] (II) intel(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[  1439.982] (II) intel(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz d)

这是我的 xorg.conf:

Section "ServerLayout"
    Identifier "layout1"
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0" "CorePointer"
    Screen "screen1"
EndSection

Section "Files"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "/usr/share/fonts/X11/misc"
    FontPath     "/usr/share/fonts/X11/cyrillic"
    FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
    FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
    FontPath     "/usr/share/fonts/X11/Type1"
    FontPath     "/usr/share/fonts/X11/100dpi"
    FontPath     "/usr/share/fonts/X11/75dpi"
    FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
    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 "LVDS1"
    HorizSync 30-81
    VertRefresh 56-75
    Option   "NoUseBios"
    Option "PreferredMode" "1680x1050_60"
    Modeline "1680x1050_60"  147.14  1680 1784 1968 2256  1050 1051 1054 1087 -HSync +VSync
    Option "DPMS"
EndSection

Section "Monitor"
    Identifier "VGA1"
    Option "Ignore" "True"
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     "SWcursor"              # [<bool>]
        #Option     "kmsdev"                # <str>
        #Option     "ShadowFB"              # [<bool>]
    Identifier  "Card0"
    Driver      "modesetting"
    BusID       "PCI:0:2:0"
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     "SWcursor"              # [<bool>]
        #Option     "kmsdev"                # <str>
        #Option     "ShadowFB"              # [<bool>]
    Identifier  "Card1"
    Driver      "modesetting"
    BusID       "PCI:0:2:1"
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  "Card2"
    Driver      "intel"
    BusID       "PCI:0:2:0"
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  "Card3"
    Driver      "intel"
    BusID       "PCI:0:2:1"
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     "ShadowFB"              # [<bool>]
        #Option     "Rotate"                # <str>
        #Option     "fbdev"                 # <str>
        #Option     "debug"                 # [<bool>]
    Identifier  "Card4"
    Driver      "fbdev"
    BusID       "PCI:0:2:0"
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     "ShadowFB"              # [<bool>]
        #Option     "DefaultRefresh"        # [<bool>]
        #Option     "ModeSetClearScreen"    # [<bool>]
    Identifier  "Card5"
    Driver      "vesa"
    BusID       "PCI:0:2:0"
EndSection

Section "Device"
    Identifier "device1"
    Driver "intel"
    # Option "DPMS"
    # Option "AccelMethod" "UXA"
    Option "monitor-LVDS" "LVDS1"
    Option "IgnoreEDID" "true"
    Option "NoDDC" "true"
    # Option "monitor-VGA" "VGA1"
EndSection

Section "Screen"
    Identifier "screen1"
    Device "device1"
    Monitor "LVDS1"
    DefaultDepth 24
    Option "UseEDID" "false"
    Option "UseEDIDDpi" "false"
    Option "ModeDebug" "true"
    Option "ExactModeTimingsDVI" "true"
    Option "ModeValidation" "NoWidthAlignmentCheck, NoDFPNativeResolutionCheck"
    Option "TwinView" "0"
    Subsection "Display"
        Depth 24
        Modes "1680x1050"
    EndSubsection
EndSection

还修改了/etc/default/grub中的以下内容,但无济于事:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="
GRUB_CMDLINE_LINUX="video=LVDS1:1680x1050"

如有任何建议我将非常感激!

谢谢,

安迪

答案1

我没有一块液晶矩阵上的屏幕,它也是使用英特尔渲染的。在我更换1366x7681024x768矩阵。它仍然制作视频1366每行点数。驱动程序报告“错误”扩展显示识别码任何更换司机的尝试都没有成功。

看起来英特尔驱动程序忽略了模式行完全没有。我不知道如何但设置软件控制分辨率的实际设置,这些设置来自驱动程序的选项。这使得它们脱离了自己的判断,有时脱离了扩展显示识别码有时会出现一些可怕的巫术,但不会模式行设置。

相关内容