[ltp] Dual monitor setup: T40p+XFree-4.3.0
Klaus Weidner
linux-thinkpad@linux-thinkpad.org
Thu, 6 Nov 2003 10:24:25 -0600
On Wed, Nov 05, 2003 at 05:35:59PM -0600, Klaus Weidner wrote:
> Now start a VNC server in the background:
> vncserver -geometry 1024x768 :3
> put a fullscreen VNC client on the external screen:
> xvncviewer -nocursorshape -shared -fullscreen -display :0.1 :3
> and connect them:
> x2vnc -shared -east localhost:3
Some more neat things you can do - my external monitor at home supports
1280x1024, and the one at work only 1024x768. I don't like scrolling
virtual desktops, and definitely don't want to restart the X server all
the time.
To get fullscreen X desktops in both video modes, I keep two Xvnc
sessions running in the background, one at 1024x768 (:3) and one at
1280x1024 (:4).
at office:
# tell X server to use next resolution in mode list
xvidtune -next -display :0.1
killall xvncviewer
xvncviewer -nocursorshape -shared -fullscreen -display :0.1 :3
killall x2vnc
x2vnc -shared -east localhost:3
at home:
xvidtune -prev -display :0.1
killall xvncviewer
xvncviewer -nocursorshape -shared -fullscreen -display :0.1 :4
killall x2vnc
x2vnc -shared -east localhost:4
You can of course use scripts to automate this.
-Klaus