I can't answer this question properly, but I found a pure software and better solution. Add Fake Display when No Monitor is Plugged In
Email from RealVNC support team:
Hi Guy,
If there is no monitor plugged in to the computer, it defaults back to
the safest resolution, 640 x 480.
I'd recommend an EDID emulator. This will allow you to set a
resolution without the need for a monitor plugged in.
You would need one that supports Linux, however this is an example of
one:
https://www.amazon.co.uk/Pass-Through-Emulator-splitters-Switches-Extenders-HDMI-EDID/dp/B072JC9443/ref=sr_1_1?s=computers&ie=UTF8&qid=1505822141&sr=1-1&keywords=edid
Please note, we cannot recommend any particular brand/vendor.
I hope this helps.
Regards, Simon Product Support Engineer
Ticket Details Ticket ID: TIM-497-72944 Status: On Hold
Asking for a Non Hardware solution:
Guy,
Yes, there is. My apologies.
There is a parameter in the VNC Server settings when running it in
Virtual mode - for this you must have an Enterprise subscription.
https://www.realvnc.com/en/connect/docs/server-modes.html#server-modes
https://www.realvnc.com/en/connect/docs/server-parameter-ref.html#RandR
You can set your resolution from here.
Regards, Simon Product Support Engineer
Ticket Details Ticket ID: TIM-497-72944 Status: On Hold