On Thu, 2008-12-11 at 05:41 -0800, Pivotian wrote:
> can you put some more light on using touch screen with the help of
> "tslib".?
>
tslib is a user space library which basically hooks to your driver and
provides filtering like dejitter , variance It comes with certain tool
like ts_print_raw , ts_calibrate which basically are helpful in getting
your calibration up and running
without the need of X.
This is how you can proceed
1) check /etc/ts.conf, make sure the module_raw entry for your
platform is appropriate, and linear, variance, and dejitter are
uncommented.
A sample ts.conf file is like this
module_raw input * Note that i had enabled events in the input layer of
the kernel
module variance
module dejitter
module linear
2) export TSLIB_TSDEVICE=/dev/yourtouchscreendevicenode
other env settimgs that have to be exported
TSLIB_CALIBFILE=/etc/pointercal
TSLIB_CONFFILE=/etc/ts.conf
TSLIB_PLUGINDIR=/usr/share/ts/plugins
TSLIB_FBDEVICE=/dev/fb0
TSLIB_CONSOLEDEVICE=/dev/tty
3) ts_print_raw .. confirm you can get raw unfiltered data from the
touchscreen. Tap it a few times while it’s running.
4) ts_calibrate and make sure your /etc/pointercal has been updated
with calibrating values
5) ts_print .. confirm you can get filtered data
6) ts_test .. confirm the filters are doing what they should. not too
much jitter, etc.
Once you have atleast X running with touch succesfully you could use the
same pointercal
file in the /system/etc/ of android. recompile android after sean's
changes for using pointercal file. Should do the trick.