ubuntu 手动修改分辨率为1920 X 1080 的两种方式

方案一(临时性,重启会失效):

1、打开终端。输入:cvt 1920 1080

出现有modeline 的提示。

2、使用 xrandr 创建新的 mode,--newmode 后面跟刚刚 cvt 产生的 modeline 后面的信息,如果去掉“_60.00”就可以在显示器首选项中看到。

$ sudo xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

3、添加新的 mode,--addmode 后面第一个参数是 命令xrandr 显示的列表中,目标输出设备的名称,

$sudo xrandr --addmode VGA-1 "1920x1080_60.00"

4、 将分辨率应用到指定的输出设备

$ sudo xrandr --output  VGA-1 --mode "1920x1080_60.00"

方案二(永久性,重启也不失效)

添加 /etc/X11/xorg.conf 文件,将此模式保存为默认分辨率。

1、$ sudo vim /etc/X11/xorg.conf(若没有安装vim,可以使用“sudo gedit /etc/X11/xorg.conf”)

粘贴以下内容:

Section "Monitor"

Identifier "Configured Monitor"

Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

Option "PreferredMode" "1920x1080_60.00"

EndSection

Section "Screen"

Identifier "Default Screen"

Monitor "Configured Monitor"

Device "Configured Video Device"

EndSection

Section "Device"

Identifier "Configured Video Device"

EndSection

2、保存。重启后就变成1920x1080了。

若是没有worg.conf文件,可以将上述内容保存为xorg.conf文件。

猜你喜欢

转载自www.cnblogs.com/Sky-Raining/p/9907137.html