1、安裝軟件
用終端安裝虛擬顯示器軟件
sudo apt-get install xserver-xorg-core-hwe-18.04
sudo apt-get install xserver-xorg-video-dummy
2、添加配置文件
進(jìn)入/usr/share/X11/xorg.conf.d/
創(chuàng)建xorg.conf文件
touch xorg.conf
編輯xorg.conf文件
sudo nano xorg.conf
往里面添加以下內(nèi)容:
Section "Device"
Identifier "Device0"
Driver "dummy"
VideoRam 256000
EndSection
Section "Monitor"
Identifier "Monitor0"
HorizSync 28.0-80.0
VertRefresh 48.0-75.0
Modeline "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
EndSection
Section "Screen"
DefaultDepth 24
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
SubSection "Display"
Depth 24
Modes "1920x1080_60.00"
EndSubSection
EndSection
3、重啟電腦
4、后續(xù)如果想要卻換回物理顯示器,只需卸載卸載xserver-xorg-core-hwe-18.04
和xserver-xorg-video-dummy
包。
sudo apt-get --purge remove xserver-xorg-core-hwe-18.04
sudo apt-get --purge remove xserver-xorg-video-dummy
5、刪除xorg.conf
文件文章來源:http://www.zghlxwxcb.cn/news/detail-850751.html
sudo rm /usr/share/X11/xorg.conf.d/xorg.conf
6、重啟電腦文章來源地址http://www.zghlxwxcb.cn/news/detail-850751.html
到了這里,關(guān)于Ubuntu20.04 配置虛擬顯示器(最高2048*1152)和切回物理顯示器的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!