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.