VNC SERVER for GP2X
===================

This program is using LibVNCServer 0.7.1 (http://sourceforge.net/projects/libvncserver/).

The program opens /dev/fb0 and checks for changes and converts the modified pixels to the right format.

It can help to emulate the touchscreen on F100 devices using incoming mouse events over vnc.

Run this program in the background on your gp2x, make sure your network to the gp2x is working and then connect with a vnc viewer.

Lithosphere


Touchscreen usage
-----------------

Choose the right module (tsemu_o2x.o or tsemu_gph.o) depending on your kernel version (Open2x or GPH firmware), rename it to tsemu.o and remove the other file and run:

	insmod tsemu.o

Set up the calibration file:

	echo "65536 0 0 0 65536 0 65536" > /etc/pointercal

For best performance while using the touchscreen emulation run:

	./vncserver2x --none &

This will run the program in background and will not send the framebuffer contents to the remote vnc client.


Extra Command Line Options
--------------------------

Mode:

	By default it checks for differences between 2 frames and only sends the changed rectangle.

	--none:
		do not send /dev/fb0 contents, on some games /dev/fb0 doesn't give the right results, it also minimizes network traffic and cpu usage (only useful when using touchscreen emulation)

	--full:
		send the full screen each time (no more cpu usage for comparing different frames at the cost of more data to be compressed and sent over the network), use this when each frame is almost completely different from the previous frame

Other:

	--showfps:
		show the number of fps (sent using VNC, not in your application)

	--usleep:
		microseconds of sleep after each frame