il_diavolo
Posts: 137
Joined: Mon Dec 02, 2013 7:56 pm

VNC viewer window too big for 800 x 480 screen (Solved)

Sun Jun 18, 2017 9:42 pm

For some time I have been using a Pi2B with an official 7" touchscreen as a remote controller for my Pi3b brained robot. It uses the installed VNC Viewer to connect headlessly with the robot.
I have just (17/06/2017) carried out an apt-get dist-upgrade and find that the size of the updated VNC Viewer window is too large for the screen. As none of the window control buttons (minimise, resize, exit) are visible the only way I can exit the program is to shut down the Pi by disconnecting the power.
Is there any way of configuring VNC Viewer to use a smaller window without having to start VNC Viewer as no menus are visible and no other program, including the terminal, can be accessed once the Viewer is opened?
Thanks
Last edited by il_diavolo on Tue Jun 20, 2017 10:20 pm, edited 1 time in total.

User avatar
scruss
Posts: 2419
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: VNC viewer window too big for 800 x 480 screen

Sun Jun 18, 2017 10:22 pm

If you remotely log in to the robot's Raspberry Pi, raspi-config should give you an option (7 Advanced Options → A5 Resolution) to set the boot resolution. When you reboot, I've found that VNC repects the resolution you set.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

il_diavolo
Posts: 137
Joined: Mon Dec 02, 2013 7:56 pm

Re: VNC viewer window too big for 800 x 480 screen

Mon Jun 19, 2017 9:19 pm

Thanks for your reply. I'm afraid I wasn't explicit enough, the problem is with the VNC Viewer application window at start up of the app, long before I try to connect to the robot.
I tried booting to HDMI mode on a monitor rather than the 7" screen but I get the same result, the VNC Viewer app fills all available screen space with no window control buttons visible. By hitting the down arrow key a couple times I can get a command line search box into which I can type the ip address of the robot and connect to it as previously. However, when I cut the connection I have no way of getting back to the desktop as the VNC Viewer app still fills the screen and I have to power off by pulling the plug.
I have tried uninstalling both VNC Viewer (and server) and reinstalling them but the problem remains. At the moment the only solution I can find is to reload the back-up img file I made before the dist-upgrade as VNC Viewer works properly in that.
Perhaps there is a key sequence I can use to close the app, if there is could some kind person spell it out to me in words of one syllable!

User avatar
scruss
Posts: 2419
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: VNC viewer window too big for 800 x 480 screen

Tue Jun 20, 2017 2:24 am

Did you enable ssh? That way, you can get in from another computer on the same network.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

User avatar
sconemad
Posts: 228
Joined: Thu Apr 28, 2016 1:47 pm
Location: Cambridge, UK
Contact: Website

Re: VNC viewer window too big for 800 x 480 screen

Tue Jun 20, 2017 8:54 am

I see what you mean, the default size for the VNC viewer window is 900x640, which is larger than you display resolution.

Here are a few key combinations which might make things easier to work with (assuming you have a keyboard connected of course):
Alt+F4 (closes the window)
Alt+Space, x (maximize)
Alt+Space, n (iconify)

Also, if you hold down Alt, you can click and drag anywhere in the window to move it about.

il_diavolo
Posts: 137
Joined: Mon Dec 02, 2013 7:56 pm

A usable work around

Tue Jun 20, 2017 10:20 pm

Thanks sconemad, "alt" and drag using the Florence virtual on screen keyboard works a treat. I will try to deliver some feedback to Real VNC about the default window size problem.

Return to “General discussion”