How to enforce headless VNC resolution on RPi4?

I would like to run any version 14 or 15 on Raspberry Pi 4 at 1280x720 or 1024x768 resolution headless via VNC. It works fine with HDMI attached, I can set the "Requested resolution" from the list of available "Supported resolutions" in the Raspberry Pi Settings app. Unfortunately after disconnecting HDMI the system boots in 1920x1080, and all my desktop apps disappear also by the way (not that it is important any more at this point). I tried 15.2.66, 15.2.9, 14.10.6, 14.7, ... and I have the same problem with all of them. Headless via VNC I can still see "Supported resolutions" available, but it ignores the requested one and goes with fullhd. It almost works on 14.2.0 (I request 1280 and get 1024) but there are different randomly emerging issues - among others with rotation and missing colors.
Is there any way to enforce the resolution for VNC? It is not a problem for me to set it first via HDMI, it just needs to work headless later.

Sign In or Register to comment.