Win10 连接到 Ubuntu 黑屏无法连接 使用Rustdesk显示 No Displays 没有显示器

Win10 连接到 Ubuntu 黑屏无法连接 使用Rustdesk显示 No Displays 没有显示器

解决办法安装虚拟显示器

安装xorg虚拟显示器

复制代码
$ sudo apt install xserver-xorg-video-dummy
# 提示错误依赖使用下面这个试试
$ sudo apt-get install xserver-xorg-video-dummy  --fix-missing

配置虚拟显示器

复制代码
$ sudo vim /etc/X11/xorg.conf
# 内容如下:
Section "Device"
    Identifier  "Configured Video Device"
    Driver      "dummy"
EndSection

Section "Monitor"
    Identifier  "Configured Monitor"
    HorizSync 31.5-48.5
    VertRefresh 50-70
EndSection

Section "Screen"
    Identifier  "Default Screen"
    Monitor     "Configured Monitor"
    Device      "Configured Video Device"
    DefaultDepth 24
    SubSection "Display"
        Depth 24
        Modes "1920x1080"
    EndSubSection
EndSection
# 内容结束

# 同样也填入以上内容到以下文件 
$ sudo vim /usr/share/doc/xserver-xorg-video-intel/xorg.conf

重启

复制代码
$ sudo reboot

连接远程不再提示 没有显示器或黑屏 但是正常插入显示器 不能正常显示

解决办法:移除刚才的连个配置文件
复制代码
$ sudo mv /usr/share/doc/xserver-xorg-video-intel/xorg.conf ~
$ sudo mv /etc/X11/xorg.conf ~

恢复正常

使用虚拟显示器的时候 再把文件移动到原来位置
复制代码
$ sudo mv /home/cc/xorg.conf /usr/share/doc/xserver-xorg-video-intel/xorg.conf
$ sudo mv /home/cc/xorg.conf /etc/X11/xorg.conf 
相关推荐
人工智能训练17 分钟前
Ubuntu中如何进入root用户
linux·运维·服务器·人工智能·ubuntu·ai编程·root
tianshiyeben19 分钟前
WGCLOUD监控系统使用指南 - 告警消息整理完整版
linux·运维·服务器·系统安全·zabbix
Unlyrical22 分钟前
splice, io_uring_prep_splice 调用(无效参数)
linux·服务器·c++·unix
---学无止境---1 小时前
Linux内核用户身份管理全链路深度剖析:setuid系统调用完整架构
linux
CS_浮鱼1 小时前
【Linux】进程控制
linux·运维·网络
Miraitowa_cheems2 小时前
LeetCode算法日记 - Day 104: 通配符匹配
linux·数据结构·算法·leetcode·深度优先·动态规划
fengyehongWorld2 小时前
Linux stat命令
linux
人工智能训练2 小时前
Docker中容器的备份方法和步骤
linux·运维·人工智能·ubuntu·docker·容器·nvidia
渡我白衣2 小时前
深入 Linux 内核启动:从按下电源到用户登录的全景解剖
java·linux·运维·服务器·开发语言·c++·人工智能
代码炼金术士3 小时前
linux的nginx版本升级
linux·运维·nginx