Ubuntu 之旅—— 调整扩展屏分辨率

打开终端输入

xrandr

得到如下信息

Screen 0: minimum 320 x 200, current 2390 x 768, maximum 8192 x 8192
LVDS connected primary 1366x768+1024+0 (normal left inverted right x axis y axis) 309mm x 174mm
   1366x768       60.0*+
   1280x720       59.9  
   1152x768       59.8  
   1024x768       59.9  
   800x600        59.9  
   848x480        59.7  
   720x480        59.7  
   640x480        59.4  
HDMI-0 disconnected (normal left inverted right x axis y axis)
VGA-0 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768       60.0* 
   800x600        60.3     56.2  
   848x480        60.0  
   640x480        59.9  

这里 LVDS是我的笔记本屏幕,外接显示器是 VGA-0

我的外接显示器的分辨率是1440x900,而列表最大的是1024x768,所以需要增加我需要的分辨率:

cvt 1440 900

得到输出如下:

# 1440x900 59.89 Hz (CVT 1.30MA) hsync: 55.93 kHz; pclk: 106.50 MHz
Modeline "1440x900_60.00"  106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync

这里Modeline后面的内容就是需要添加的内容,然后添加:

sudo xrandr --addmode VGA-0 "1440x900_60.00"

最后改变显示

sudo xrandr --output VGA-0 --mode "1440x900_60.00"

完成。

可能在每次开机时,又不能使用设定好的分辨率了,使用如下命令:

sudo gedit ~/.profile

在 ~/.profile 最末尾添加修改分辨率的命令:

cvt 1440 900
xrandr --newmode "1440x900_60.00"  106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync
xrandr --addmode VGA-0 "1440x900_60.00"
原文地址:https://www.cnblogs.com/lightxun/p/4384276.html