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 
相关推荐
会跑的葫芦怪2 分钟前
cursor 打开wsl Ubuntu项目
linux·运维·ubuntu
用户4672445449933 分钟前
linux的网络配置
linux
Lueeee.1 小时前
字符设备驱动---自己实现点LED
linux
Full Stack Developme1 小时前
linux sudo su su - 三者区别
linux·运维·服务器
Byron Loong1 小时前
【系统】Linux内核和发行版的关系
linux·运维·服务器
ChenYY~1 小时前
双系统显卡冲突修复记录
ubuntu·显卡·黑屏·双系统·nvidia驱动
oMcLin1 小时前
如何在 Ubuntu 22.04 LTS 上部署并优化 OpenStack 云计算平台,实现多租户虚拟化与弹性伸缩?
ubuntu·云计算·openstack
SmartRadio1 小时前
在CH585M代码中如何精细化配置PMU(电源管理单元)和RAM保留
linux·c语言·开发语言·人工智能·单片机·嵌入式硬件·lora
济6172 小时前
linux(第十四期)--Uboot移植(2)-- 在U-Boot 中添加自己的开发板-- Ubuntu20.04
linux·运维·服务器
ben9518chen2 小时前
嵌入式linux操作系统简介
linux·运维·服务器