
========================
Quickstart (for Windows)
========================
1. Enable Gadget Serial (g_serial) on Boox M92 by following
   http://www.mobileread.com/forums/showpost.php?p=1951689&postcount=5
2. Make sure Windows detects the device and installs appropriate
   drivers for it. Note down the port number (you can see it in "Devices and Printers")
3. Install TightVNC server (see below)
4. Install DF Mirage driver (see below)
5. Stop the Gadget Serial driver on boox side if it is running
6. Copy start_usb_serial_withoutgetty.oar to Boox M92 and run it
7. Copy Serial_VNC.oar to Boox M92 and run it
8. Start TightVNC server with configuration mentioned below
9. Start TightVNC Viewer with configuration mentioned below
10. Enjoy!


List of components (all three are required):

==================
1. TightVNC server
==================
Get it from: http://www.tightvnc.com/download.php

No modifications required.
Options when running it:
* use mirror driver if available
* screen polling cycle 10000ms
* allow loopback connections
* allow only loopback connections (optional)

DF Mirage driver (faster image updates in TightVNC server) - highly recommended
http://www.tightvnc.com/download.php

==================
2. TightVNC client
==================
Get it from http://www.tightvnc.com/download.php

Some source files are modified and included in this archive.
Modified version is included in this archive.

List of modified source files from TightVNC java viewer 2.5.2:
src/viewer_swing/java/com/glavsoft/viewer/swing/Surface.java
src/viewer_swing/java/com/glavsoft/viewer/Viewer.java
src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java

To run it:
0a) make sure TightVNC server is running
0b) make sure no serial connection to Boox is open already - if they are, close them
1) run Tight VNC viewer like so: 
java -Dboox_serial_port=COMXX -jar tightvnc-jviewer.jar -JpegImageQuality=Lossless -ViewOnly=Yes
	(replace boox_serial_port with the actual COM port number of Boox M92)
	(once you run the application, it will take around 10-15 seconds to make the serial connection 
	before showing connection dialog - be patient, it hasn't hanged)
2) input the parameters of the VNC server (default: localhost, 5900) and press "Connect"
3) Minimize the TightVNC viewer window

=========================
3. Serial VNC application
=========================
Included in this archive. 

To install:
1) Get FDD's g_serial drivers from http://www.mobileread.com/forums/showpost.php?p=1951689&postcount=5
2) Copy /bin/boox/gserial/start_usb_serial_withoutgetty.oar to the gserial/ directory on Boox M92. 
   Has to be same directory as FDD's g_serial.ko  file
3) Copy files from /bin/boox/serial_vnc to Boox M92 (can be any directory)

To run:
1) run start_usb_serial_withoutgetty.oar
2) run Serial_VNC.oar 
	(to see something you need to run the TightVNC client - otherwise you will see a blank screen)
	(to exit, simply press the "return" / "escape" key on Boox)

NOTES ABOUT THE SERIAL VNC APPLICATION:
* All image updates are partial, i.e. they don't flash the screen.
  If the image becomes too blurry then you can do a manual full refresh of the screen.
  For that, use the "page down" key.
* Onyx Boox M92 e-ink screen supports a resolution of 1200x825. No scaling of the picture received
  from the PC is done by the serial vnc app,  so any resolution above that will only be displayed 
  partly on the Boox e-ink screen.