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 
相关推荐
欧先生^_^10 分钟前
Linux内核可配置的参数
linux·服务器·数据库
海尔辛28 分钟前
学习黑客5 分钟读懂Linux Permissions 101
linux·学习·安全
王RuaRua1 小时前
[数据结构]5. 栈-Stack
linux·数据结构·数据库·链表
push_2 小时前
罗技无线鼠标的配对方法
计算机外设
曼岛_2 小时前
[架构之美]linux常见故障问题解决方案(十九)
linux·运维·架构
tan180°2 小时前
Linux进程信号处理(26)
linux·c++·vscode·后端·信号处理
大神的风范2 小时前
从0开始学linux韦东山教程第三章问题小结(4)
linux·服务器
sz66cm2 小时前
Linux基础 -- SSH 流式烧录与压缩传输笔记
linux·笔记·ssh
YOYO--小天3 小时前
RS485和RS232 通信配置
linux·嵌入式硬件
Lw老王要学习3 小时前
Linux数据库篇、第一章_02_MySQL的使用增删改查
linux·运维·数据库·mysql·云计算·it