Mirroring the tablet screen on the VGA screen

These notes describe how to set up mirroring of the tablet screen on the external screen. The method described here uses an X-windows-based VNC viewer which is both very inefficient (4 processes have to run to display the screen) and also does not produce perfect results: vncviewer insists on putting margins around the screen and so the whole width cannot be displayed if the screen is set up to be 600 pixels wide. A better solution for the future would be to create a VNC viewer which talked directly to the screen and did not need X-windows.

This requires installing two additional packages: x11vnc and vncviewer. These packages are not available in the standard repositories but must be downloaded and installed by hand.

x11vnc

Go to https://garage.maemo.org/projects/x11vnc/ and click on download. Once the .deb file has been downloaded, use the Application Manager's Application->Install from file... command to install the package.

vncviewer

Go to https://garage.maemo.org/projects/vncviewer/ and click on download. Once the .deb file has been downloaded, use the Application Manager's Application->Install from file... command to install the package.

Instructions

  1. Start X-server
    	/usr/bin/Xsisusb :1 -screen 800x600x16/16
    

    Note: this mode does not work correctly in V0.2, it is fixed in packages dated 20080503 or later. In V0.2 specify -screen 1024x768x16/16

  2. Start sapwood
    	/usr/lib/sapwood/sapwood-server --display :1
    
  3. Start matchbox without title bars
    	/usr/bin/matchbox-window-manager -display :1 -theme default -use_titlebar no \
    	 -use_desktop_mode plain -use_lowlight no -use_cursor yes -use_dialog_mode static 
    
  4. Start x11vnc on tablet display
     	x11vnc -shared -forever -allow 127.0.0.1 -solid -display :0
            
  5. Start vncviewer on external screen
    	vncviewer --display :1 --hostname localhost:0
    

These steps are automated in the start-sismirror script.