安装软件
sudo apt-get install xserver-xorg-core-hwe-18.04
sudo apt-get install xserver-xorg-input-all
sudo apt-get install xserver-xorg-video-dummy-hwe-18.04 --fix-missing
修改配置文件
sudo nano /usr/share/X11/xorg.conf.d/xorg.conf
Section "Device"
Identifier "Configured Video Device"
Driver "dummy"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
VertRefresh 50-70
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1920x1200"
EndSubSection
EndSection
重启
sudo reboot