1️⃣版本
- Ubuntu 24.04
- Todesk 4.7.2.0
- xserver-xorg-video-dummy 1:0.4.0-1build1
2️⃣安装配置虚拟显示器
sudo apt install xserver-xorg-video-dummy
- 编辑
/etc/gdm3/custom.conf
,关闭Ubuntu24.04Wayland切换为X11
/usr/share/X11/xorg.conf.d/
目录下新建一个显示器配置文件99-dummy.conf
bash
复制代码
# 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
3️⃣重启后查看
bash
复制代码
xrandr