无法在 AWS ubuntu VM 中设置分辨率

无法在 AWS ubuntu VM 中设置分辨率

尝试在启用 GUI 的 AWS ubuntu EC2 上设置 1920x1080 分辨率,但它不起作用。

错误 :- xrandr:无法获取输出默认值的伽马大小

xrandr:配置 crtc 0 失败

更新/etc/gdm3/custom.conf取消注释

WaylandEnable=false 但仍然失败

尝试了下面提到的命令:-

awsgui@<ip>:~$ xrandr --newmode $(cvt 1920 1080 | grep -Pio 'modeline\K.*' | xargs)
xrandr: Failed to get size of gamma for output default
awsgui@<ip>:~$ xrandr --addmode 'default' '1920x1080_60.00'
xrandr: Failed to get size of gamma for output default
awsgui@<ip>:~$ xrandr -q
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 640 x 480, current 1280 x 720, maximum 1920 x 1080
default connected primary 1280x720+0+0 0mm x 0mm
   1280x720       0.00* 
   1024x768       0.00  
   800x600        0.00  
   640x480        0.00  
   1280x768       0.00  
   1920x1080_60.00  59.96  
awsgui@<ip>:~$ xrandr --output default --mode 1920x1080_60.00
xrandr: Failed to get size of gamma for output default
xrandr: Configure crtc 0 failed
awsgui@<ip>:~$ inxi -G
Graphics:
  Device-1: Amazon.com driver: N/A
  Display: x11 server: X.Org v: 1.21.1.7 with: Xwayland v: 23.2.0 driver: X:
    loaded: vesa unloaded: fbdev,modesetting dri: swrast gpu: N/A
    resolution: 1280x720
  API: OpenGL v: 4.5 Mesa 23.2.1-1ubuntu3.1 renderer: llvmpipe (LLVM 15.0.7
    256 bits)
awsgui@<ip>:~$ xrandr --verbose
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 640 x 480, current 1280 x 720, maximum 1920 x 1080
default connected primary 1280x720+0+0 (0x51d) normal (normal) 0mm x 0mm
    Identifier: 0x51c
    Timestamp:  166059
    Subpixel:   unknown
    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: 
    _MUTTER_PRESENTATION_OUTPUT: 0 
    non-desktop: 0 
        supported: 0, 1
  1280x720 (0x51d)  0.000MHz *current
        h: width  1280 start    0 end    0 total 1280 skew    0 clock   0.00KHz
        v: height  720 start    0 end    0 total  720           clock   0.00Hz
  1024x768 (0x51e)  0.000MHz
        h: width  1024 start    0 end    0 total 1024 skew    0 clock   0.00KHz
        v: height  768 start    0 end    0 total  768           clock   0.00Hz
  800x600 (0x51f)  0.000MHz
        h: width   800 start    0 end    0 total  800 skew    0 clock   0.00KHz
        v: height  600 start    0 end    0 total  600           clock   0.00Hz
  640x480 (0x520)  0.000MHz
        h: width   640 start    0 end    0 total  640 skew    0 clock   0.00KHz
        v: height  480 start    0 end    0 total  480           clock   0.00Hz
  1280x768 (0x521)  0.000MHz
        h: width  1280 start    0 end    0 total 1280 skew    0 clock   0.00KHz
        v: height  768 start    0 end    0 total  768           clock   0.00Hz
  1920x1080_60.00 (0x52e) 173.000MHz -HSync +VSync
        h: width  1920 start 2048 end 2248 total 2576 skew    0 clock  67.16KHz
        v: height 1080 start 1083 end 1088 total 1120           clock  59.96Hz
awsgui@<ip>:~$ 

相关内容