启用虚拟显示器(无物理显示器时必选)
树莓派未连物理显示器时,默认会降低图形渲染性能,导致VNC卡顿或延迟,
解决办法
sudo apt update
sudo apt install xserver-xorg-video-dummy # 安装虚拟显示驱动
sudo nano /usr/share/X11/xorg.conf.d/xorg.conf # 创建配置文件
粘贴以下内容到xorg.conf
Section "Device"
Identifier "DummyDevice"
Driver "dummy"
VideoRam 256000
EndSection
Section "Monitor"
Identifier "DummyMonitor"
HorizSync 30-70
VertRefresh 50-75
EndSection
Section "Screen"
Identifier "DummyScreen"
Device "DummyDevice"
Monitor "DummyMonitor"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1920x1080"
EndSubSection
EndSection
按ctrl+o保存