一、通过xrandr手动添加
1.通过cvt 1920 1080查看console输出内容,获取modeline后面的部分,我这里是:"1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
2.xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
3.xrandr --addmode Virtual1 "1920x1080_60.00",其中Virtual1是显示器,可以输入xrandr查看
但这种方法重启失效,可以写成脚本放在桌面开机手动启动:
#!/bin/bash
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode Virtual1 "1920x1080_60.00"
xrandr --output Virtual1 --mode "1920x1080_60.00"
二、添加/etc/X11/xorg.conf
添加 /etc/X11/xorg.conf 文件,将此模式保存为默认分辨率。
$ 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
保存重启后默认使用设置分辨率