Ubuntu断开物理显示器,vnc远程黑屏的情况处理

直接问百度的AI就找到方法了,
要先安装两个东西
sudo apt-get install xserver-xorg-core
sudo apt-get install xserver-xorg-video-dummy
最开始直接问的Ubuntu断开物理显示器后vnc黑屏的情况怎么处理
结果给我推了一堆,没有跟我说要安装这个两个工具,直接去/usr/share/X11/xorg.conf.d去添加xorg.conf
结果重启之后还是不行,后来一直不断尝试终于知道原来还缺这两个东西
装好xserver-xorg-core和xserver-xorg-video-dummy 然后再去/usr/share/X11/xorg.conf.d添加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

重启之后就看到display变成了unknow display,此时插上物理显示器,物理显示器就会不显示
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值