问题:Ubuntu虚拟机在使用图形界面设置分辨率时显示Unknown Display
1.解决方法:此方法为永久设置分辨率
1.在命令行中输入想要设置的分辨率
cvt 1920 1080
2.在/etc/X11目录下新建xorg.conf文件 vim /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
3.保存之后重启。
2.xrandr命令也可以暂时设置分辨率
查看当前分辨率
设置分辨率:
xrandr -s 1920x1080_60.00