小编dmi*_*100的帖子

如何在 Ubuntu 18.04 上连接时使用物理显示而不是虚拟显示驱动程序

我有配备 Ubuntu 18.04 的英特尔 NUC,它大部分时间都作为服务器运行。有时 SSH 还不够,我需要使用 Team Viewer 来控制它。这就是我安装和设置 xserver-xorg-video-dummy 的原因,因为 Team Viewer 需要一些显示。一切工作正常,但是当我想连接物理显示器(在没有网络的情况下控制服务器)时,虚拟显示器不允许使用物理显示器,并且显示器说没有信号。有没有办法将 Ubuntu 配置为同时使用物理显示器和虚拟显示器,但使物理显示器成为最需要的?我的意思是,当我连接它时,Ubuntu 使用它,当断开连接时,Ubuntu 切换到虚拟。

我的虚拟 /etc/X11/xorg.conf 的工作配置如下:

# This xorg configuration file is meant to be used
# to start a dummy X11 server.
# For details, please see:
# https://www.xpra.org/xorg.conf

# Here we setup a Virtual Display of 1920x1080 pixels

Section "Device"
    Identifier "Configured Video Device"
    Driver "dummy"
    VideoRam 256000
EndSection

Section "Monitor"
    Identifier "Configured Monitor"
    HorizSync 5.0 - 1000.0
    VertRefresh 5.0 - 200.0 …
Run Code Online (Sandbox Code Playgroud)

display xorg multiple-monitors

5
推荐指数
0
解决办法
2943
查看次数

标签 统计

display ×1

multiple-monitors ×1

xorg ×1