【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
相关推荐
天骄t11 小时前
OSI与TCP/IP:网络协议栈深度解析
linux
丁丁丁梦涛11 小时前
nginx解决域名代理到IP+端口的平台静态资源和接口地址问题
运维·tcp/ip·nginx
无事好时节11 小时前
Linux 进程通信:信号与共享内存详解
linux·网络·网络协议
春日见11 小时前
如何提升手眼标定精度?
linux·运维·开发语言·数码相机·matlab
weixin_4624462311 小时前
使用 Ubuntu 构建 code-server Docker 镜像的完整指南
linux·ubuntu·docker
Tipriest_11 小时前
Python 常用特殊变量与关键字详解
linux·python·关键字·特殊变量
2501_9399090511 小时前
Docker(2)资源限制及数据卷容器以及容器互联
运维·docker·容器
北京阿法龙科技有限公司11 小时前
AR眼镜工业设备巡检运维的应用场景介绍|阿法龙XR云平台
运维·ar·xr
一周困⁸天.11 小时前
GitOps 详解与工具链全解析
linux·运维·devops
坐吃山猪11 小时前
Python命令行工具Fire
linux·开发语言·python