0


Ubuntu20.04 配置虚拟显示器(最高2048*1152)和切回物理显示器

1、安装软件

用终端安装虚拟显示器软件

sudo apt-get install xserver-xorg-core-hwe-18.04
sudo apt-get install xserver-xorg-video-dummy

2、添加配置文件

进入/usr/share/X11/xorg.conf.d/

创建xorg.conf文件

touch xorg.conf

编辑xorg.conf文件

sudo nano xorg.conf

往里面添加以下内容:

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、后续如果想要却换回物理显示器,只需卸载卸载

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

文件

sudo rm /usr/share/X11/xorg.conf.d/xorg.conf

6、重启电脑

标签: linux 运维 ubuntu

本文转载自: https://blog.csdn.net/weixin_44272558/article/details/135819809
版权归原作者 问星的世纪 所有, 如有侵权,请联系我们删除。

“Ubuntu20.04 配置虚拟显示器(最高2048*1152)和切回物理显示器”的评论:

还没有评论