Android resistive touchscreen calibration

Alex Freed
I'm trying to use the tiny210 module in a custom device with an 800x600
screen, different from the ones that come with the dev board. Everything is
wonderful under Linux. Not so under Android.

It appears that the binary-only file /linuxrc is supposed to do the
touchscreen calibration. In fact it seems to be mostly a recompiled
ts_calibrate, but there is no source available (contrary to the GNU license
I may add). If I don't include the skipcal=yes on the command line the
system crashes not being able to open the touchscreen device. No surprise
here - I don't have "1wire", I have normal s3c resistive touchscreen.

I have no problem doing the calibration under Linux. I can also recompile
ts_calibrate as a static binary to run with the Android kernel, but Android
doesn't use the /etc/pointercal file. There is another binary-only file
"/sbin/tsd" that appears to deal with the touchscreen, but again no source.

So my questions are:
1. Is there a way to tell the system to use /dev/input/event1 and calibrate
the touchscreen?
2. Where is the source for /linuxrc and /sbin/tsd?
3. Anybody running Android with a resistive ts?

-Alex.

Reggie
/linuxrc has nothing to do with the touchscreen.  You need tslib installed
and the correct env vars set at the very least to run ts_calibrate,
ts_calibrate should in theory produce the pointercal file that it needs
once you've calibrated.  google tslib.