安装好Ubuntu 19.04后,发现屏幕分辨率调整选项里没有1920*1080这一选项,经过一番查找,可通过如下方式进行屏幕分辨率设置。
以下操作均在Ubuntu 19.04桌面版操作,不要用远程连接操作,否则xrandr命令会无法监测到显示器信息。
打开Terminal
1.输入 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
复制 Modeline 后的信息备用
2.输入 xrandr
返回
Screen 0: minimum 1 x 1, current 1920 x 972, maximum 8192 x 8192
Virtual1 connected primary 1920x972+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1920x972 60.00*+
2560x1600 59.99
1920x1440 60.00
1856x1392 60.00
1792x1344 60.00
1920x1200 59.88
1600x1200 60.00
1680x1050 59.95
1400x1050 59.98
1280x1024 60.02
1440x900 59.89
1280x960 60.00
1360x768 60.02
1280x800 59.81
1152x864 75.00
1280x768 59.87
1024x768 60.00
800x600 60.32
640x480 59.94
1920x1080_60.00 59.96
Virtual2 disconnected (normal left inverted right x axis y axis)
Virtual3 disconnected (normal left inverted right x axis y axis)
Virtual4 disconnected (normal left inverted right x axis y axis)
Virtual5 disconnected (normal left inverted right x axis y axis)
Virtual6 disconnected (normal left inverted right x axis y axis)
Virtual7 disconnected (normal left inverted right x axis y axis)
Virtual8 disconnected (normal left inverted right x axis y axis)
这里有很多可选分辨率前的 Virtual1 是我的显示器名称
3.结合第1步和第2步信息,增加显示模块,并设置为开机启动,编辑”sudo vim /etc/profile”(这里需要sudo权限,否则无法保存),在末尾增加:
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode Virtual1 "1920x1080_60.00"
这里 --newmode 后的信息就是第一步中复制备用的信息, --addmode 后的 Virtual1 是我的显示器名称,后面是新建1920x1080分辨率的选项名称。
4.立马启用修改后的配置:source /etc/profile
5.现在分辨率选择选项里就有1920x1080了,同时开机屏幕显示率也自动变为1920x1080了。
参考:
Ubuntu16.04调整屏幕分辨率