battletux
Posts: 39
Joined: Mon May 21, 2012 7:33 pm

RealVNC on Pixel: How to change default screen size?

Thu Oct 20, 2016 4:06 pm

Just need some help with a headless RPI3 I have running VNC. How do I change the default resolution from 640x480 to say a 720p resolution: 1280x720?

Thanks.
http://about.me/andy_mc

klricks
Posts: 6720
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: RealVNC on Pixel: How to change default screen size?

Thu Oct 20, 2016 5:17 pm

RealVNC uses the setting of the current attached HDMI monitor. If HDMI monitor is not present then it reverts to Composite resolution.

You need to force HDMI to stay on when unplugged.
Edit /boot/config.txt and remove the # from the line that has hdmi_force_hotplug=1

Code: Select all

sudo nano /boot/config.txt
You may also need to enable and adjust these settings to the resolution you want to use

Code: Select all

#hdmi_group=1
#hdmi_mode=1
See this for details: viewtopic.php?f=28&t=5851&p=77547#p77547

There may be other ways to do this such as through a VNC config file of some sort?
Unless specified otherwise my response is based on the latest and fully updated Raspbian Buster w/ Desktop OS.

battletux
Posts: 39
Joined: Mon May 21, 2012 7:33 pm

Re: RealVNC on Pixel: How to change default screen size?

Fri Oct 21, 2016 7:22 am

Got it, thank you! Had to set the mode to 4 and I now have a 720p remote session.
http://about.me/andy_mc

Return to “Troubleshooting”