# How to change screen resolution of VNC server without restarting it?

Is it possible to change the resolution of the viewer specified during starting of the vnc server with the geometry command line argument? I have a vncserver configured for a wide screen monitor but I want to view it on a 1024x768 screen.

-

The UltraVNC viewer supports auto scaling, so it will resize the viewing window automatically, to display the whole screen of the remote server.

Update

Both RealVNC and TightVNC display/desktop scaling.

-
I am using real vnc 4.1.3. where to find the desktop scaling option? I cannot find it. –  Rohit Banga Sep 4 '10 at 12:56
It is not included in the RealVNC Free Edition, you need to by the Personal or Enterprise version. See the feature comparison realvnc.com/products/download.html –  stukelly Sep 4 '10 at 16:27
I have downloaded the ultra vnc viewer. It works thanks. –  Rohit Banga Sep 5 '10 at 5:47

This same question was asked a while ago on stack overflow: http://stackoverflow.com/questions/15816/changing-the-resolution-of-a-vnc-session-in-linux

The accepted answer from Nathan Fellman:

Real VNC server 4.4 includes support for Xrandr, which allows resizing the VNC. Start the server with:

vncserver -geometry 1600x1200 -randr 1600x1200,1440x900,1024x768

Then resize with:

xrandr -s 1600x1200

xrandr -s 1440x900

xrandr -s 1024x768

-

With TightVNC (at least) if the server (windows) changes screen resolution then the client automatically changes to match the new resolution.

-

If you need to change the setting without restarting VNC server, I had good results with:

vncconfig -set RandR="1024x768,1600x900"


and then using xrandr to change resolution as fgregg suggested:

xrandr -s 1024x768
xrandr -s 1600x900

-