1️⃣版本 Ubuntu 24.04Todesk 4.7.2.0xserver-xorg-video-dummy 1:0.4.0-1build1 2️⃣安装配置虚拟显示器 sudo apt install xserver-xorg-video-dummy编辑/etc/gdm3/custom.conf,关闭Ubuntu24.04Wayland切换为X11 WaylandEnable=false /usr/share/X11/xorg.conf.d/目录下新建一个显示器配置文件99-dummy.conf # 99-dummy.conf Section "Device"Identifier "Configured Video Device"Driver "dummy"VideoRam 256000 EndSectionSection "Monitor"Identifier "Configured Monitor"HorizSync 10.0-300VertRefresh 10.0-200 EndSectionSection "Screen"Identifier "Default Screen"Monitor "Configured Monitor"Device "Configured Video Device"DefaultDepth 24SubSection "Display"Depth 24Modes "1920x1080"EndSubSection EndSection 3️⃣重启后查看 xrandr