【Ubuntu24.04无显示器远控】【Todesk远程桌面黑屏】【Linux虚拟显示器】解决方案

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
    • WaylandEnable=false
  • /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
相关推荐
yexiaoyex25 分钟前
nginx的重定向(rewrite)
运维·nginx
wjf6300026 分钟前
Linux常用命令
linux
lxw100519240128 分钟前
LINUX 安装MINIO文件服务
linux·运维·服务器·minio
2019一路前行1 小时前
本地Windows电脑 连接 Windows 服务器
运维·服务器
翠花也老了1 小时前
linux 中 vi 和 less 命令(超全建议收藏)
linux·运维·less·vi
Li&ShuaiShuai1 小时前
Linux系统编程:信号
linux·运维·服务器·c++·信号
是乐乐啊呀2 小时前
docker
运维·docker·容器
零度㏄2 小时前
[软件安装]linux下安装steam
linux·运维
pokemon..2 小时前
Linux 文件系统以及日志管理
linux·运维·服务器
真果粒wrdms2 小时前
【sqlite3】联系人管理系统
linux·c语言·数据库·经验分享·笔记·sqlite