- 打开终端
- 查看修改分辨率的信息
root@ubuntudesk:~# cvt 1600 900
# 1600x900 59.95 Hz (CVT 1.44M9) hsync: 55.99 kHz; pclk: 118.25 MHz
Modeline "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync
3.永久修改分辨率
sudo vim /etc/profile
if [ "${PS1-}" ]; then
if [ "${BASH-}" ] && [ "$BASH" != "/bin/sh" ]; then
# The file bash.bashrc already sets the default PS1.
# PS1='\h:\w\$ '
if [ -f /etc/bash.bashrc ]; then
. /etc/bash.bashrc
fi
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
if [ -d /etc/profile.d ]; then
for i in /etc/profile.d/*.sh; do
if [ -r $i ]; then
. $i
fi
done
unset i
xrandr --newmode "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync #这里的 "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync 是用shell命令【cvt 1600 900】提取的
xrandr --addmode Virtual1 "1600x900_60.00"
fi
重新载入配置文件。
root@ubuntudesk:~# source /etc/profile
5.此时就可以在settings->displays->resolution中找到刚才添加的分辨率了,见下图: