【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
相关推荐
苦瓜汤补钙8 分钟前
论文阅读:WildGS-SLAM:Monocular Gaussian Splatting SLAM in Dynamic Environments
linux·论文阅读·机器学习
Kevin Wang72742 分钟前
Ubuntu服务器安装Miniconda
linux·服务器·ubuntu
Jinxiansen02111 小时前
TypeScript 中的内置工具类型(Utility Type)
javascript·ubuntu·typescript
小米里的大麦2 小时前
021 多语言协同执行(了解)
linux
冬夜戏雪2 小时前
阿里云ubuntu安装mysql docker容器(拉,运行,测试完整版)
mysql·ubuntu·阿里云
甲方求你学点技术吧2 小时前
8:从USB摄像头把声音拿出来--ALSA大佬登场!
linux·图像处理·ffmpeg·音视频
药9552 小时前
网络编程(TCP连接)
运维·服务器
菜萝卜子3 小时前
【Linux】Ubuntu22.04安装zabbix
linux·运维·zabbix
电信2301杨臣3 小时前
Imx6ull用网线与电脑连接
运维·服务器·网络
艾伦_耶格宇3 小时前
【DOCKER】-4 dockerfile镜像管理
运维·docker·容器