-1

我正在尝试将 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

4

1 回答 1

0

您可以尝试执行以下操作

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
于 2021-10-16T07:37:06.643 回答