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 
相关推荐
foo1st1 小时前
JDK(Ubuntu 18.04.6 LTS)安装笔记
java·笔记·ubuntu
菜鸟射手2 小时前
QT creater和vs2017文件路径问题
linux·c++·windows·qt
@Aurora.2 小时前
【项目日记(三)】
linux·服务器·网络
白总Server3 小时前
Nginx 中间件
大数据·linux·运维·服务器·nginx·bash·web
望获linux4 小时前
实时操作系统在服务型机器人中的关键作用
linux·机器人·操作系统·开源软件·rtos·具身智能
哈哈幸运4 小时前
Linux Sed 深度解析:从日志清洗到 K8s 等12个高频场景
linux·运维·编辑器·sed
心随_风动4 小时前
主流操作系统对比分析(macOS、Linux、Windows、Unix)
linux·windows·macos
m0_738355695 小时前
护眼-科学使用显示器
计算机外设
啊吧怪不啊吧5 小时前
Linux常见指令介绍下(入门级)
linux·开发语言·centos
陈大大陈6 小时前
基于 C++ 的用户认证系统开发:从注册登录到Redis 缓存优化
java·linux·开发语言·数据结构·c++·算法·缓存