I have inserted the following in my kernel driver:

int axis_table[] = {68845, 607, -2853248, -185, 52345, -2218415, 16}; /
* These are from your pointercal file, the last value must be 16 */

xraw = your x;
yraw = your y;
xtmp = (axis_table[2] + axis_table[0] * xraw + axis_table[1] * yraw )
>> axis_table[6];
ytmp = (axis_table[5] + axis_table[3] * xraw + axis_table[4] * yraw )
>> axis_table[6];


You should change the axis_table values exept the last number, and the
raw x & y values according to your driver.

This is done inside the kernel, not in userspace.

On May 30, 8:29 am, Prashant J Zaveri <[email protected]> wrote:
> Hi Androidphan,
>                           I have managed to get pointercal value in Android.
> But I am not able to find patch by Sean of using those values in Android.
> Can you tell how you used those values in Android ?
>
> This would be very much helpful.
>
> Thanks
> Prashant
>
>
>
> On Thu, May 28, 2009 at 5:36 PM, Androidphan <[email protected]> wrote:
>
> > The calibration tool I used is tslib. I integrated this in the Android
> > source tree. But I used it on x86. I don't know if this works on ARM.
> > I haven't searched why power management is needed for the touchscreen.
>
> > On May 25, 8:48 am, Nimit Manglick <[email protected]> wrote:
> > > Androidphan,
>
> > > You mentioned about caliberation.. so can you share the caliberation
> > tools
>
> > > so that I can caliberate my touchscren with android.
>
> > > Thanks & Regards
> > > Nimit
>
> > > On Mon, May 25, 2009 at 12:15 PM, Nimit Manglick <[email protected]
> > >wrote:
>
> > > > Hi All,
>
> > > > I have TI OMAP 3530 from logicpd.
>
> > > > It has tsc2004 touchscreen. Android is booting on and on getevent i am
> > > > getting teh touchscreen events.
>
> > > > But Its not mapped with android.  First android orientation is in
> > landscape
> > > > mode.
>
> > > > So that might be the problem. ??
>
> > > > How you people have solved this issue.
>
> > > > Thanks & Regards
> > > > Nimit
>
> > > > On Wed, May 13, 2009 at 12:12 PM, Androidphan <[email protected]
> > >wrote:
>
> > > >> Be aware that your touch screen need to be calibrated first.
>
> > > >> On May 13, 7:43 am, Suhas <[email protected]> wrote:
> > > >> > Okay... Thanks a lot
>
> > > >> > On May 13, 10:41 am, Claw <[email protected]> wrote:
>
> > > >> > > As mentioned earlier by Androidphan, building in the androidpower
> > > >> > > module into the linux kernel solved the problem for us.
>
> > > >> > > On May 13, 10:38 am, Suhas <[email protected]> wrote:
>
> > > >> > > > So your problem got solved on enabling thepowermanagement?
>
> > > >> > > > On May 13, 12:05 am, Androidphan <[email protected]> wrote:
>
> > > >> > > > > I had to use tslib as well, the x and y values should match
> > the x
> > > >> and
> > > >> > > > > y values from the resolution. I never get a hold on those
> > patches,
> > > >> but
> > > >> > > > > I integrated the pointercal values in the kernel driver, which
> > is
> > > >> a
> > > >> > > > > rather bad way.
>
> > > >> > > > > On 12 mei, 18:22, Suhas <[email protected]> wrote:
>
> > > >> > > > > > Even I am facing the same problem.
>
> > > >> > > > > > I can observe the touch screen events with getevent command.
>
> > > >> > > > > > Also, similar to Drakou,  top bar expands and displays the
> > > >> > > > > > date when I tap anywhere on the screen, the action is always
> > the
> > > >> same.
> > > >> > > > > > I can't do anything else.
>
> > > >> > > > > > Drakou, did you get this thing working?
>
> > > >> > > > > > I also tried enabling Androidpowermanagement, but no luck.
>
> > > >> > > > > > One more thing is regarding calibration.
> > > >> > > > > > I am using a resistive touch screen and ucb1400 as ts
> > > >> controller.
> > > >> > > > > > The co-ordinates, I get from controller are like
> > > >> > > > > > Top Left (100,900) and Bottom Right (900,100)
> > > >> > > > > > Screen REsolution is 320x240.
> > > >> > > > > > How do Android relate these values?
>
> > > >> > > > > > I think I have to use tslib for calibration of touch screen.
> > Is
> > > >> it
> > > >> > > > > > required?
> > > >> > > > > > If yes, then can you help me get the  Sean Mcneal's tslib
> > > >> patches for
> > > >> > > > > > Android from.
>
> > > >> > > > > > Thanks in Advance,
>
> > > >> > > > > > Suhas Jain
>
> > > >> > > > > > On May 12, 3:45 pm, Androidphan <[email protected]>
> > wrote:
>
> > > >> > > > > > > You maybe missing Androidpowermanagementin the kernel.
>
> > > >> > > > > > > On May 12, 12:12 pm, Drakou <[email protected]> wrote:
>
> > > >> > > > > > > > Hello,
>
> > > >> > > > > > > > I am trying to make a port of Android for Freescale Mx27
> > > >> SoC.
> > > >> > > > > > > > Everything is working for the moment, except
> > thetouchscreen.
> > > >> I
> > > >> > > > > > > > already rode all the posts about Mx31touchscreenproblems
> > (
> > > >> Mx31 is
> > > >> > > > > > > > also using Mc13783 fortouchscreen) . I applied the
> > patches
> > > >> but that
> > > >> > > > > > > > does not solve my problem anymore.
>
> > > >> > > > > > > > When I touch the screen, the top bar is expanding and
> > > >> displaying the
> > > >> > > > > > > > date. I can tap anywhere on the screen, the action is
> > always
> > > >> the same.
> > > >> > > > > > > > I can't do anything else. When I remove the stylus, the
> > top
> > > >> bar hide.
>
> > > >> > > > > > > > If I use the getenvent command, I can see
> > > >> thetouchscreenevents, it's
> > > >> > > > > > > > working well. So I really don't know where to find the
> > > >> problem.
>
> > > >> > > > > > > > Any Ideas ?
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to