mattmiller
Posts: 2234
Joined: Thu Feb 05, 2015 11:25 pm

Pi4 Buster VNC headless resolution

Tue Jul 23, 2019 2:06 pm

Just got my Pi4 - booted with 2019-10-07 full and I can't set my headless screen resolution to anything close to what I'd like
(1800 x 900 so that it nicely fits inside my Win10 screen res of 1980 x 1020)

In old days - I just used to uncomment these in /boot/config.txt
#framebuffer_width=1600
#framebuffer_height=720

set them to whatever I wanted - all worked fine

Buster seems to ignore these so I've been playing around with the HDMI settings in the config.txt file but none of resolutions I've tried seem to be accepted and it often defaults back to something 1024x730 ish)

The GUI screen res program seems to just offer a very small selection of options but wither too big or too small

Is there anyway to get around this problem?

mattmiller
Posts: 2234
Joined: Thu Feb 05, 2015 11:25 pm

Re: Pi4 Buster VNC headless resolution

Tue Jul 23, 2019 2:23 pm

I think I may have found how to get a reasonable compromise

I had a look at the GUI screen resolution changer and I noticed that if I select an hdmi_mode in config.txt , it becomes available as top option.

Then I select it and it changes to it :)

So I'm going to work with hdmi_mode=83 (1600 x 900)

rrobinet
Posts: 10
Joined: Wed Oct 09, 2019 11:29 pm

Re: Pi4 Buster VNC headless resolution

Sun Nov 03, 2019 2:03 pm

Thanks to this thread I was able to change my VNC screen resolution to 1920x1080.
However the steps weren't clear to me:

1) Modify the /boot/config.ext file as described above and reboot
2) Execute Pi->Preferences->Screen Configuration
3) Right-click on the "HDMI-1" screen and select 'Resolution->1920x1080'
4)Click on 'Configure->Apply' and the resolution of your current session will immediately change to 1920x1080

I am surprised that with so many headless Pi users changing the default or making this change less obscure wasn't part of Buster

mattmiller
Posts: 2234
Joined: Thu Feb 05, 2015 11:25 pm

Re: Pi4 Buster VNC headless resolution

Sun Nov 03, 2019 2:34 pm

Buster on the Pi4 came out of the oven a little bit under-cooked and other things are being triaged 1st.

bls
Posts: 596
Joined: Mon Oct 22, 2018 11:25 pm
Location: Seattle, WA
Contact: Twitter

Re: Pi4 Buster VNC headless resolution

Sun Nov 03, 2019 3:11 pm

Sounds like you're using RealVNC connecting to the physical console? VNC also supports virtual screens, which have more screen resolution flexibility. And, besides RealVNC, there are two other VNC servers in Raspbian.

I've written up a note on how to use TigerVNC or TightVNC in virtual mode. This enables you to have multiple VNC connections defined, each with a different resolution. In my scenario this lets me have the VNC windows sized to my liking across my various VNC client devices (desktop, laptop, etc). WAN security requires either a VPN or SSH, but this works perfectly on the LAN.

Notes here: https://github.com/gitbls/RPiVNCHowTo
Super-useful tools:
RPi SD Card Image Manager: https://github.com/gitbls/sdm
Lightweight Virtual VNC Config: https://github.com/gitbls/RPiVNCHowTo
Easy-Peasy VPN installer/manager: https://github.com/gitbls/pistrong

globiboulga666
Posts: 40
Joined: Sun Jun 17, 2018 6:38 pm

Re: Pi4 Buster VNC headless resolution

Sun Nov 10, 2019 3:53 pm

Suceeded to have my Pi 4 displaying at 1920x1080 normally on main display, without real screen on it, without DPI size problem (xrandr commands trick is trash).

Into my config.txt :

#EDID file extracted from my 1920x1080 Samsung S22D300, works :
hdmi_edid_file=1
hdmi_edid_filename:0=edid-1920x1080.bin

# Usefull for having something, but 1024x768 only
#hdmi_force_hotplug:0=1

# Does nothing on Pi4
#hdmi_group:0=1
#hdmi_mode:0=16

If someone needs the EDID file :
https://sorel.pixconfig.fr/edid-1920x1080.bin
Should be placed into the fat32 boot partition

mattmiller
Posts: 2234
Joined: Thu Feb 05, 2015 11:25 pm

Re: Pi4 Buster VNC headless resolution

Sun Nov 24, 2019 10:53 am

I've just put two and two together after realising what this meant

https://www.raspberrypi.org/forums/view ... 0#p1501760

so I just commented out the

Code: Select all

#dtoverlay=vc4-fkms-v3d
and set my framebuffers back to the size I like (so that the Pi VNC window sits just inside my main PC window res)

Code: Select all

framebuffer_width = 1900
framebuffer_height = 900
and I'm back to way I used to setup my Pi :)

PS I've no idea what the side-effect of disabling vc4-fkms-v3d so YMMV

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5590
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Pi4 Buster VNC headless resolution

Sun Nov 24, 2019 4:18 pm

Alternatively perhaps try the server's virtual mode (no messing with the frame buffer settings): https://www.cpmspectrepi.uk/raspberry_p ... uster.html
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

Return to “Raspberry Pi OS”