Ubuntu配置虚拟显示器

这里写自定义目录标题

当前配置方式

  1. 安装 xserver-xorg-video-dummy
  2. 添加文件 /usr/share/X11/xorg.conf.d/99-dummy.conf
    内容如下:
Section "Device"
    Identifier  "Configured Video Device"
    Driver      "dummy"
    VideoRam 256000
EndSection

Section "Monitor"
    Identifier  "Configured Monitor"
    HorizSync 10.0-300
    VertRefresh 10.0-200
EndSection

Section "Screen"
    Identifier  "Default Screen"
    Monitor     "Configured Monitor"
    Device      "Configured Video Device"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    Modes "1920x1080"
    EndSubSection
EndSection
以上Modes "1920x1080"部分是默认的分辨率,可以自行修改
注意: 此种修改方式可能会导致接上物理显示器后显示器无输出的情况,此时需要删除/etc/X11/xorg.conf.d/99-dummy.conf,然后重启。

引用自:https://blog.csdn.net/weixin_43640082/article/details/109029526

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值