hi all,
We have ported android on the ARM9 based board. We are able to see the
home page after booting android on target. But the touch screen is not
working. The touch screen driver is modified to pass the of X,Y
pressure as shown below.
xtmp = (axis_table[2] + axis_table[0]*x + axis_table
[1]*y )>>axis_table[6];
ytmp = (axis_table[5] + axis_table[3]
*x + axis_table[4]*y )>>axis_table[6];
printk("x (xtmp)-> %d (%d)\t y(ytmp) -
> %d (%d)\n p->%d\n",x,xtmp,y,ytmp,p);
input_report_abs(d->idev, ABS_X,
ytmp);
input_report_abs(d->idev, ABS_Y,
xtmp);
input_report_abs(d->idev,
ABS_PRESSURE, p);
input_report_key(d->idev,BTN_TOUCH,1);
input_sync(d->idev);
ours is resistance based touchscreen with resoultion of 240*432.
The pointer location application of the android does'nt recognise the
touch screen inputs. The touch screen is calibrated using ts_calibrate
of tslib. The max values for x and y is 4095.
Currently the date and time bar scrolls down upon clicking on the
screen, we are not able to lauch any of the applications.
Can anyone please tell what needs to be done to correct the
touchscreen issue.
Thanks
Pramod
Qingzhan Zhang wrote:
> in your touch driver ,you should set the x/y/pressure's MAX value and MIN
> value,the android according to the MAX and MIN value to calculate your
> inputing values
>
> On Thu, Jan 15, 2009 at 4:34 PM, vishal bhoj <[email protected]> wrote:
>
> > when i did a logcat i get
> > Starting input on non-focused client
> > com.android.internal.view.iinputmethodclient$stub$pr...@4)
> > D/InputManagerService( 554):
> > hide the small icon for the input method
> > W/InputManagerService( 554):
> > Ignoring focus gain of:
> > android.view.inputmethod.inputmethodmanage...@435b54c0
> >
> >
> >
> > On Thu, Jan 15, 2009 at 3:31 AM, vishal bhoj <[email protected]> wrote:
> >
> >> hi,
> >>
> >> TOuch screen is not working for me on omapzoom. when i run pointer
> >> location i don get any values there. when i touch only the top time & date
> >> bar slides down and goes back. what has to be changed to get touch screen
> >> working in android on omap3evm
> >>
> >>
> >> On Tue, Jan 13, 2009 at 8:37 AM, Kai Wei <[email protected]> wrote:
> >>
> >>>
> >>> Hi,
> >>> How can I get calibration with android? The value returned by driver
> >>> seemed too big to be used directly.
> >>>
> >>> On Dec 5 2008, 3:30 am, Maxime Petazzoni <[email protected]>
> >>> wrote:
> >>> > Hi,
> >>> >
> >>> > You need to invert the READ_X and READ_Y calls in drivers/input/
> >>> > touchscreen/ads7846.c for the ts->read_x and ts->read_y values. This
> >>> > is a well known OmapZoom issue with Android.
> >>> >
> >>> > - Maxime
> >>> >
> >>> > On Dec 4, 8:42 am, Manav Gautama <[email protected]> wrote:
> >>> >
> >>> > > Dear droidans,
> >>> > > I have aads7846chip and the tslib working fine on
> >>> a
> >>> > > 2.6.27 kernel ported to my 2430 based board, with Xorg and tslib
> >>> have
> >>> > > got it to give fine calibration and behaviour. On using android i am
> >>> > > getting inverted touch with reference being the X axis. Any tips on
> >>> how
> >>> > > to get it calibrated on android ?
> >>> >
> >>> > > Warm regards,
> >>> > > Manav
> >>> >
> >>> > > bandwidthcrunch at gmail dot com
> >>> >
> >>> > >www.bandwidthcrunch.com
> >>>
> >>>
> >>
> >>
> >> --
> >> with regards vishal
> >>
> >
> >
> >
> > --
> > with regards vishal
> >
> > >
> >
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---