How to set headless VNC resolution using real VNC
- Comment these line in /boot/config.txt
sudo nano /boot/config.txt
[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
# dtoverlay=vc4-fkms-v3d
# max_framebuffers=2
[all]
# dtoverlay=vc4-fkms-v3d
[all]
# dtoverlay=vc4-kms-v3d
2. Open raspi-config and change to new resolution in 2 Display Options > D1 Resolution
sudo raspi-config