直接问百度的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,此时插上物理显示器,物理显示器就会不显示

5万+

被折叠的 条评论
为什么被折叠?



