【问题标题】:X11 (xorg) fails to set/change resolution (linux x86)X11 (xorg) 无法设置/更改分辨率 (linux x86)
【发布时间】:2021-07-13 19:25:47
【问题描述】:

我正在尝试将 10 英寸触摸屏(原始分辨率:1280x800)切换到 1024x768,但我尝试的所有操作都被忽略或导致错误。据报道,显示器支持分辨率,不过,xrandr --verbose 报告(我使用的是默认的 VESA 驱动程序):

xrandr: Failed to get size of gamma for output default
Screen 0: minimum 640 x 480, current 640 x 480, maximum 1280 x 800
default connected 640x480+0+0 (0x180) normal (normal) 0mm x 0mm
        Identifier: 0x17d
        Timestamp:  635022581
        Subpixel:   horizontal rgb
        Clones:
        CRTC:       0
        CRTCs:      0
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter:
  1280x800 (0x17e)    0.0MHz
        h: width  1280 start    0 end    0 total 1280 skew    0 clock    0.0KHz
        v: height  800 start    0 end    0 total  800           clock    0.0Hz
  800x600 (0x17f)    0.0MHz
        h: width   800 start    0 end    0 total  800 skew    0 clock    0.0KHz
        v: height  600 start    0 end    0 total  600           clock    0.0Hz
  640x480 (0x180)    0.0MHz *current
        h: width   640 start    0 end    0 total  640 skew    0 clock    0.0KHz
        v: height  480 start    0 end    0 total  480           clock    0.0Hz
  1024x768 (0x181)    0.0MHz
        h: width  1024 start    0 end    0 total 1024 skew    0 clock    0.0KHz
        v: height  768 start    0 end    0 total  768           clock    0.0Hz

如果我尝试通过xrandr --output default --mode 1027x768 更改分辨率,我会得到:

xrandr: Failed to get size of gamma for output default
xrandr: Configure crtc 0 failed

据我所知,只有第二行与我的问题相关;我不知道为什么xrandr 要配置crtc 0,不过我只连接了触摸屏。

失败了,我尝试使用以下xorg.conf直接配置模式:

Section "InputClass"
        Identifier      "calibration"
        MatchProduct    "DIALOGUE INC PenMount USB"
        Option  "Calibration"   "95 911 93 919"
        Option  "SwapAxes"      "0"
EndSection

Section "Monitor"
        Identifier "disp0"
        Modeline "1024x768_60.00"   63.50  1024 1072 1176 1328  768 771 775 798 -hsync +vsync
        Option "PreferredMode" "1024x768_60.00"
EndSection
Section "Device"
        Identifier "card0"
        Driver "vesa"
EndSection
Section "Screen"
        Identifier "src0"
        Device "card0"
        Monitor "disp0"
        SubSection "Display"
                Modes "1024x768_60.00" "1024x768"
        EndSubSection
EndSection

不幸的是,这不起作用,Xorg.log 显示以下内容:

[634043.694] (II) VESA(0): Not using mode "1024x768_60.00" (no mode of this name)
[634043.694] (II) VESA(0): Not using built-in mode "1024x768" (no mode of this name)

为什么这不起作用?还有什么方法可以让显示器切换到 1024x768?

我已将完整的日志文件上传到Pastebin

【问题讨论】:

    标签: x11 xorg xrandr vesa


    【解决方案1】:

    您可以尝试执行以下操作

    cvt -r 1024 768
    xrandr --newmode "1024x768_60.00"  63.50  1024 1072 1176 1328  768 771 775 798 -hsync +vsync
    xrandr --addmode default 1024x768_60.00
    xrandr --output default --mode 1024x768_60.00
    

    【讨论】:

    • 正如目前所写,您的答案尚不清楚。请edit 添加其他详细信息,以帮助其他人了解这如何解决所提出的问题。你可以找到更多关于如何写好答案的信息in the help center
    猜你喜欢
    • 2014-05-31
    • 2019-07-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多