F200 touchscreen hack permanent installer
by EvilDragon

----------- WHAT DOES THIS DO? ---------------

notaz did a great work fixing the touchscreen problem with the recent firmwares.
I wrote a small tool to easily install and uninstall the hack permanently.

It enables touchscreen support for homebrew games but
disables touchscreen support for the official gp2xmenu.

----------- HOW TO USE IT? -------------------

You need FW 4.1.0 or 4.1.1 to run it.
Simply extract everything on the SD Card and run "install.gpu".

After the installation finished, you can delete everything.

Since no touchscreen works with the original menu anymore, you can't
calibrate the Touchscreen using the LCD Settings.
However, I included a touchscreen calibration within the Built-in Games menu.

To uninstall, recopy everything to the SD Card and run "uninstall.gpu".

That's it.
Should work with ALL F200 (older and newer ones).

And here's the original readme from notaz:

F200 touchscreen hack r1
(c) notaz, 2008


Disclaimer
----------

This software "hacks" the Linux kernel and mangles internal structures in a way
they weren't meant to, so it may easily crash you GP2X. But it doesn't write
anything to flash, so bricking should not occur, and everything should work
fine after power cycling the GP2X.
However, I cannot be held responsible if this software somehow manages to kill
your GP2X. It will be YOUR fault, because YOU ran it. By running this software
you agree with terms above.


About
-----

This is a hack for F200 firmwares 4.0.2 and above, which should hack
touchscreen driver to work the same way as it does in 4.0.0 firmware. This
means that later firmware users should be able to use homebrew written for
4.0.0.
Please note that while the hack is active, the default GP2X menu won't work
properly. You have to remove the hack for it to work again (see below).


Easy install/remove
-------------------

Just run (on the GP2X) install_hack.gpu/remove_hack.gpu to install/remove
the hack.


Advanced install/remove
-----------------------

You can copy wm97xx_hack.o to the game directory and add insmod/rmmod commands
into the game scripts. For example, for "Space Varments", open up
space_varments.gpe with a text editor and you should see something like this:
=== cut ===
#!/bin/sh
cd runtime
./fxi ../data/space_varments.dcb -nosplash
cd /usr/gp2x
exec /usr/gp2x/gp2xmenu
=== cut ===

Change it to this:
=== cut ===
#!/bin/sh
rmmod wm97xx_hack # remove in case already loaded
insmod wm97xx_hack.o
cd runtime
./fxi ../data/space_varments.dcb -nosplash
rmmod wm97xx_hack
cd /usr/gp2x
exec /usr/gp2x/gp2xmenu
=== cut ===

This way "Space Varments" will run with the hack enabled, but the hack will
be automatically removed when you return to menu.

