On Sun, Sep 5, 2010 at 2:01 PM, Mehran <mehra...@gmail.com> wrote:
> Thank you Michael.
>
> I have got a lot of help from ur sample. But these is something
> missing till now.
>
> I am using a application of mine, which makes the touch dead after i
> calibrate.
>
> Im also trying to use this app; http://gitorious.org/0xdroid/packages_apps_tscalibration
> but it also do not give good results. It saves total 20 values in
> pointercal file, and driver reads 7 of them as
> x1,x2,y1,y2,z1,z2,S
No, the driver, the linear plugin actually, reads the 20 values then
turns them into the 7 values, the transformation matrix.
>
> Can you please guide where is the problem? can someone give
> application code to work with the above patch given by Michael?
Please note that
http://gitorious.org/0xdroid/packages_apps_tscalibration is
deprecated, our new code base uses
http://gitorious.org/0xdroid/packages_apps_tscalibration2 instead.
Our calibration process is integrated into the Android framework, you
can check the commit log in
http://gitorious.org/0xdroid/frameworks_base/
Basically the procedure is:
when device added:
config device and tslib
monitor on tslib fd
monitor on pointercal changes
when tslib fd has new event:
read calibrated value from tslib
when pointercal changed:
reconfigure tslib
Cheers,
Kanru
http://0xlab.org
The code is in external/tslib
>
> _______________________________________________
> Mistake#2.
>> when device added:
>> config device and tslib
>> monitor on tslib fd
>> monitor on pointercal changes
>
> Well, i didnt added TSLIB in my code, and dono how to do it. but i
> doubt that it does not contains TSLIB support. I was just trying to
> change the INPUTDEVICES,Java file.
> Can u please tell me that is TSLIB nessesary? and if nessesary, how
> can i add n compile it? step by step please im new to linux.
>
It depends. TSLib is complicated, if you only implement a subset of
the functionality in your framework then I think tslib isn't
necessary.
We did not modify InputDevice.java, our tslib integration is done in
libs/ui/EventHub.cpp. The code is there, I'm sorry I can't tell you
more ;-)
Cheers,
Kanru
http://0xlab.org
please check the following items;
1. did you port touch IC and its board connection kernel driver?
2. did you add export parameters to init.rc?
3. run ts_calibrate for creating " etc/pointercal "
4. port framework changes to you android framework
HB
--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.