系统环境:Xubuntu16.04+x11vnc
关于VNC的其他问题参考:
1.https://blog.csdn.net/qq_45445740/article/details/125988495
2.https://blog.csdn.net/qq_45445740/article/details/127543490
3.https://blog.csdn.net/qq_45445740/article/details/130300956
4.https://blog.csdn.net/qq_45445740/article/details/130473441
问题描述
Xubuntu16.04系统,安装了x11vnc,现在设备未连接外接显示器,导致使用VNC的过程中很卡顿,需要解决这个问题。
原因分析:
由于没有外接显示器,X服务器可能没有启动合适的分辨率和刷新率。
解决方案:
软件上:创建一个虚拟显示器来解决这个问题。
硬件上:买一个HDMI显卡欺骗器插在设备上。
PS:还需要排查其他方法:
1.调整VNC参数,如减小VNC的分辨率或调整编码方式等;
2.检查网络是否流畅,VNC的卡顿有时候是由于网络带宽不足或延迟过高导致的
3.检查CPU使用率,确保VNC服务器运行时没有其他高负载的进程在占用CPU
- 1.安装
xserver-xorg-video-dummy
驱动
sudo apt update
sudo apt install xorg-video-abi-20 xserver-xorg-core
sudo apt install xserver-xorg-video-dummy
- 2.配置虚拟显示器
创建或编辑/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
- 3.重启X服务器或重启设备
PS:启动虚拟显示器后,在原来设备上外接显示器不会显示桌面了,退化为终端模式。