无法更改桌面分辨率 - “在可用模式中找不到大小 1920x1080”

Mis*_*cic 7 display-resolution

我的 xrandr 给

 xrandr -q
Screen 0: minimum 8 x 8, current 1360 x 768, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
VGA-0 connected primary 1360x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768      60.00 +
   1360x768      59.96*   59.80  
   1152x864      60.00  
   800x600       72.19    60.32    56.25  
   680x384       59.96    59.80  
   640x480       59.94  
   512x384       60.00  
   400x300       72.19  
   320x240       60.05  
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
Run Code Online (Sandbox Code Playgroud)

如果我尝试

xrandr -s 1920x1080
Size 1920x1080 not found in available modes
Run Code Online (Sandbox Code Playgroud)

我也试过

 cvt 1920 1080
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
Run Code Online (Sandbox Code Playgroud)

但是出现了新的问题

xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
X Error of failed request:  BadName (named color or font does not exist)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  16 (RRCreateMode)
  Serial number of failed request:  29
  Current serial number in output stream:  29
Run Code Online (Sandbox Code Playgroud)

如何将此添加到可用模式?我正在使用 Ubuntu 16.04

Mih*_*hov 6

这是我在 Ubuntu wiki 中找到的内容:

添加未检测到的分辨率

由于硬件或驱动程序有问题,可能无法始终检测到显示器的正确分辨率。例如,从您的显示器查询的 EDID 数据块可能不正确。

如果该模式已经存在,但与特定输出无关,您可以像这样添加它:

xrandr --addmode S-video 800x600

如果模式尚不存在,您需要先通过指定模式行来创建它:

xrandr --newmode <Mode``Line>

您可以使用 gtf 或 cvt 实用程序创建模式行。例如,如果您想添加一个分辨率为 800x600 60 Hz 的模式,您可以输入以下命令:(输出如下所示。)

cvt 800 600 60

`800x600 59.86 Hz (CVT 0.48M3) hsync: 37.35 kHz; pclk: 38.25 MHz
 Modeline "800x600_60.00"   38.25  800 832 912 1024  600 603 607 624 -
 hsync +vsync`
Run Code Online (Sandbox Code Playgroud)

然后将“Modeline”这个词后面的信息复制到xrandr命令中:

xrandr --newmode "800x600_60.00" 38.25 800 832 912 1024 600 603 607 624 -hsync +vsync

进入模式后,需要使用上述--addmode命令将其添加到输出中。


https://wiki.ubuntu.com/X/Config/Resolution