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 
相关推荐
有谁看见我的剑了?1 小时前
linux 添加硬盘后系统识别不到硬盘处理
linux·运维·服务器
yc_12242 小时前
用 Visual Studio 远程调试 Linux:从零到流畅的完整指南
linux·ide·visual studio
计算机安禾3 小时前
【Linux从入门到精通】第31篇:防火墙漫谈——iptables与firewalld防护指南
linux·运维·php
下一页盛夏花开3 小时前
ubuntu 20中安装QT以后出现红色空心断点
linux·运维·ubuntu
sanshanjianke4 小时前
Thunderobot 911ME 笔记本 Linux 风扇控制研究
linux
fengyehongWorld6 小时前
TeraTerm ttl脚本登录wsl
linux·teraterm
乌托邦的逃亡者7 小时前
Linux中如何检测IP冲突
linux·运维·tcp/ip
一曦的后花园7 小时前
linux搭建promethes并对接node-exporter指标
linux·运维·服务器
乌托邦的逃亡者8 小时前
CentOS/Openeuler主机中,为一个网卡设置多个IP地址
linux·运维·网络·tcp/ip·centos
拾贰_C8 小时前
【OpenClaw | openai | QQ】 配置QQ qot机器人
运维·人工智能·ubuntu·面试·prompt