Touchscreen support for 7 Inch LCD panel

284 views
Skip to first unread message

Gokul Nagarajan

unread,
Mar 31, 2010, 8:55:44 AM3/31/10
to android-porting
Hello all,
We are working in OMAP3530 processor. We have changed the LCD size
from 480 x 272 to 800 x 480 .
We have changed the front panel parameters accordingly and we are able
to get Android screen properly.

Currently we are working in touchscreen . We are using ads7846 touch
screen controller.

We have tested Touch screen through tslib calibration after linux
booting. Its able to sense it.

But in Android it should not able to sense the proper positions.

we would like to know , how the xmin, xmax, ymin and ymax parameter
values are calculated for the new LCD resolution?

ie For 480 x 272 the following values are given in the board file

struct ads7846_platform_data ads7846_config = {
//#ifdef CONFIG_ADS_SCALED_EV
.x_min = 0,
.y_min = 0,
.x_max = 3800,
.y_max = 3800,
//#else
// .x_max = 0x0fff,
// .y_max = 0x0fff,
//#endif

.x_plate_ohms = 180,
.pressure_max = 255,
.debounce_max = 20,
.debounce_tol = 10,
.debounce_rep = 1,
.get_pendown_state = ads7846_get_pendown_state,
.keep_vref_on = 1,
.settle_delay_usecs = 150,
};


We would like to know for the new LCD 800 x 480 , how this value
should be calculated?

---Gokul


Ashwin Bihari

unread,
Mar 31, 2010, 9:34:22 AM3/31/10
to android-porting
Sending to list as well..

-- Ashwin


---------- Forwarded message ----------
From: Ashwin Bihari <abi...@gmail.com>
Date: Wed, Mar 31, 2010 at 9:33 AM
Subject: Re: [android-porting] Touchscreen support for 7 Inch LCD panel
To: nagara...@gmail.com


Gokul,

You need to take those TSLIB generated calibration information and
then feed that into Android so that it can properly scale the incoming
X, Y, and Z coordinates from the touch screen controller..

I've ported the TSLIB package into Android and added the hooks into
Android 1.6, you can check them out at:

TSLIB - http://gitorious.org/android-omap3logic/external-tslib
Android Changes - http://gitorious.org/android-omap3logic/frameworks-base

Regards
-- Ashwin

> --
> unsubscribe: android-porti...@googlegroups.com
> website: http://groups.google.com/group/android-porting
>
> To unsubscribe, reply using "remove me" as the subject.
>

Fasil

unread,
Apr 1, 2010, 2:28:09 AM4/1/10
to android-porting
Hi Ashwin,

Thanks for your suggestion, Could you help me in adding these files
to Android source.

I have added the TSLIB to the external folder of Android Source and
Framework related files to the framework/base folder of Android
source.

Now do we need to have any changes in Makefile to include TSLIB
package to be build.Any suggestion regarding this.

Thanks
Mohamed Fasil

On Mar 31, 6:34 pm, Ashwin Bihari <abih...@gmail.com> wrote:
> Sending to list as well..
>
> -- Ashwin
>
> ---------- Forwarded message ----------
> From: Ashwin Bihari <abih...@gmail.com>
> Date: Wed, Mar 31, 2010 at 9:33 AM
> Subject: Re: [android-porting] Touchscreen support for 7 Inch LCD panel
> To: nagarajan1...@gmail.com
>
> Gokul,
>
> You need to take those TSLIB generated calibration information and
> then feed that into Android so that it can properly scale the incoming
> X, Y, and Z coordinates from the touch screen controller..
>
> I've ported the TSLIB package into Android and added the hooks into
> Android 1.6, you can check them out at:
>
> TSLIB -http://gitorious.org/android-omap3logic/external-tslib

> Android Changes -http://gitorious.org/android-omap3logic/frameworks-base

Deva R

unread,
Apr 1, 2010, 7:34:45 AM4/1/10
to mfas...@gmail.com, android-porting
can u try this? without doing much, you can just go to the folder,
below command will straighaway will start building the module
$source <mydroid>/build/envsetup.sh
$mm


You can plugin a 'Android.mk' file to build system, by placing the
folder in <mydroid>/<some-dir>
then upper directory's Android.mk files shall include subdirecties'
make files, by either a call like 'include $(call
all-subdir-makefiles)' or directly by handpicking 'include
<path-to-.mk-file>'
so, now if you run 'make' at top level, you will see if its included
or not. (introduce some junk to make build fail, so u know for sure
its included)

Fasil

unread,
Apr 5, 2010, 5:22:32 AM4/5/10
to android-porting
Hi Deva,

After adding the corresponding files to the Android source and
on building the source, I m getting the following errors due to the UI
part of TSLIB, Any suggestion for this, I m using Android donut-1.6

target thumb C++: libui <= frameworks/base/libs/ui/EventHub.cpp
In file included from frameworks/base/include/ui/EventHub.h:26,
from frameworks/base/libs/ui/EventHub.cpp:18:
frameworks/base/include/ui/IInputDriver.h:24: warning: 'class
android::IInputDriver' has virtual functions but non-virtual
destructor
frameworks/base/libs/ui/EventHub.cpp:257: error: prototype for 'bool
android::EventHub::getEvent(int32_t*, int32_t*, int32_t*, int32_t*,
uint32_t*, int32_t*, nsecs_t*)' does not match any in class
'android::EventHub'
frameworks/base/include/ui/EventHub.h:84: error: candidate is: virtual
bool android::EventHub::getEvent(android::InEvent*)
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/
libui_intermediates/EventHub.o] Error 1


Regards
Fasil

On Apr 1, 4:34 pm, Deva R <r.deva...@gmail.com> wrote:
> can u try this? without doing much, you can just go to the folder,
> below command will straighaway will start building the module
> $source <mydroid>/build/envsetup.sh
> $mm
>
> You can plugin a 'Android.mk' file to build system, by placing the
> folder in <mydroid>/<some-dir>
> then upper directory's Android.mk files shall include subdirecties'
> make files, by either a call like  'include $(call
> all-subdir-makefiles)' or directly by handpicking 'include
> <path-to-.mk-file>'
> so, now if you run 'make' at top level, you will see if its included
> or not. (introduce some junk to make build fail, so u know for sure
> its included)
>

Deva R

unread,
Apr 5, 2010, 5:38:01 PM4/5/10
to mfas...@gmail.com, Ashwin Bihari, android-porting
Hi,

A version mismatch between below header versions might cause such
build errors. i checked and they match your build errors.,

TSLIB header:
http://gitorious.org/android-omap3logic/frameworks-base/blobs/ee594708228548bebd3266c87f51fa4810499f45/base/include/ui/EventHub.h

Donut header:
http://git.omapzoom.org/?p=platform/frameworks/base.git;a=blob_plain;f=include/ui/EventHub.h;hb=donut

I guess you got EventHub.h from TSLIB git, but EventHub.cpp is from
donut release.


If you are using TSLIB version, you should have picked EventHub.cpp from
http://gitorious.org/android-omap3logic/frameworks-base/blobs/ee594708228548bebd3266c87f51fa4810499f45/base/libs/ui/EventHub.cpp
then you wouldnt have faced this break..

then you can see the function signature matching there
bool EventHub::getEvent(InEvent *inevt)

Ashwin Bihari

unread,
Apr 5, 2010, 7:55:04 PM4/5/10
to Deva R, mfas...@gmail.com, android-porting
Deva has it correct..if you're going to use anything from the
android-omap3logic repository, please use all of it. The files in
there are provided as a whole package..

Regards
-- Ashwin

Fasil

unread,
Apr 6, 2010, 2:01:13 AM4/6/10
to android-porting
Hi Ashwin, Deva,

I already have a working source of Donut Android taken from
Android git(repo). For calibrating the touch screen in 7" inch LCD we
need the TSLIB utility in Android. Thanks for suggesting the
Omap3Logic git.

Once I got the TSLIB git, I added to external/tslib
frameworks/base/
include/ui
frameworks/base/
libs/ui
frameworks/base/
services/jni

After adding the above files once I build the source, I got the
EventHub.cpp file error, But after changing the EventHub.cpp from
Omap3logic, there is no error from this file.

Now I m getting a error in frameworks/base/include/ui/ITSLib.h saying
one of the file tslib.h is not available. Is this the same file where
we find in external/tslib/src/tslib.h or someother file..


target thumb C++: libui <= frameworks/base/libs/ui/EventHub.cpp

In file included from frameworks/base/libs/ui/EventHub.cpp:19:
frameworks/base/include/ui/ITSLib.h:8:19: error: tslib.h: No such file
or directory


In file included from frameworks/base/include/ui/EventHub.h:26,
from frameworks/base/libs/ui/EventHub.cpp:18:
frameworks/base/include/ui/IInputDriver.h:24: warning: 'class
android::IInputDriver' has virtual functions but non-virtual
destructor

make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/
libui_intermediates/EventHub.o] Error 1

Regards
Fasil


On Apr 6, 4:55 am, Ashwin Bihari <abih...@gmail.com> wrote:
> Deva has it correct..if you're going to use anything from the
> android-omap3logic repository, please use all of it. The files in
> there are provided as a whole package..
>
> Regards
> -- Ashwin
>

> On Mon, Apr 5, 2010 at 5:38 PM, Deva R <r.deva...@gmail.com> wrote:
> > Hi,
>
> > A version mismatch between below header versions might cause such
> > build errors. i checked and they match your build errors.,
>
> > TSLIB header:

> >http://gitorious.org/android-omap3logic/frameworks-base/blobs/ee59470...
>
> > Donut header:
> >http://git.omapzoom.org/?p=platform/frameworks/base.git;a=blob_plain;...


>
> > I guess you got EventHub.h from TSLIB git, but EventHub.cpp is from
> > donut release.
>
> > If you are using TSLIB version, you should have picked EventHub.cpp from

> >http://gitorious.org/android-omap3logic/frameworks-base/blobs/ee59470...


> > then you wouldnt have faced this break..
>
> > then you can see the function signature matching there
> > bool EventHub::getEvent(InEvent *inevt)
>

Deva R

unread,
Apr 6, 2010, 3:54:37 AM4/6/10
to mfas...@gmail.com, android-porting
HI,
tslib is in actual TSLIB library source path..

link:
http://gitorious.org/android-omap3logic/external-tslib/trees/9ba15a6640dfe67a4f70d204c39fe9ac678c59bb/src


>Android 1.6, you can check them out at:

As per Ashwin's mail, you should do below steps in your <android>/ folder..
Copy complete http://gitorious.org/android-omap3logic/frameworks-base
source tree to ./frameworks/base
Copy complete http://gitorious.org/android-omap3logic/external-tslib
source tree to ./external/tslib

Fasil

unread,
Apr 6, 2010, 7:35:07 AM4/6/10
to android-porting
Hi Deva,Ashwin,

Thanks for your valuable inputs, I got the successful
build. But When I tried in the target I got the following error. Any
suggestion for the cause ...

# ./system/bin/ts_calibrate
open fbdevice: No such file or directory
#


Thanks
Fasil

On Apr 6, 12:54 pm, Deva R <r.deva...@gmail.com> wrote:
> HI,
> tslib is in actual TSLIB library source path..
>

> link:http://gitorious.org/android-omap3logic/external-tslib/trees/9ba15a66...


>
> >Android 1.6, you can check them out at:
> >TSLIB -http://gitorious.org/android-omap3logic/external-tslib
> >Android Changes -http://gitorious.org/android-omap3logic/frameworks-base
>

> As per Ashwin's mail, you should do below steps in your <android>/ folder..

> Copy completehttp://gitorious.org/android-omap3logic/frameworks-base
> source tree to ./frameworks/base
> Copy completehttp://gitorious.org/android-omap3logic/external-tslib
> source tree to ./external/tslib

Ashwin Bihari

unread,
Apr 6, 2010, 8:40:33 AM4/6/10
to mfas...@gmail.com, android-porting
Fasil,

You'll need to do the following:
export TSLIB_CONSOLEDEVICE none
export TSLIB_FBDEVICE /dev/graphics/fb0
export TSLIB_TSDEVICE /dev/input/event2
export TSLIB_CALIBFILE /etc/pointercal
export TSLIB_CONFFILE /etc/ts.conf
export TSLIB_PLUGINDIR /system/lib/ts

You may have to set the TSLIB_TSDEVICE to be the right one on your
target. Realize that trying to run ts_calibrate while Android is
already up and running means that you'll have TSLIB and Android
fighting to shove their data to the framebuffer and through it to the
screen.

I'm going to be adding a new calibration application to my
android-omap3logic project to hopefully help with this..

Regards
-- Ashwin

Fasil

unread,
Apr 6, 2010, 9:58:54 AM4/6/10
to android-porting
Hi Ashwin

We are able to calibrate the Touchscreen in Android.We are able to
run the ts_test application.It works fine.

After reboot, Android doesnt able to sense it.
Is it manually we have to pass those calibrated data to Android ?


Thanks
Fasil

On Apr 6, 5:40 pm, Ashwin Bihari <abih...@gmail.com> wrote:
> Fasil,
>
> You'll need to do the following:
>     export TSLIB_CONSOLEDEVICE none
>     export TSLIB_FBDEVICE /dev/graphics/fb0
>     export TSLIB_TSDEVICE /dev/input/event2
>     export TSLIB_CALIBFILE /etc/pointercal
>     export TSLIB_CONFFILE /etc/ts.conf
>     export TSLIB_PLUGINDIR /system/lib/ts
>
> You may have to set the TSLIB_TSDEVICE to be the right one on your
> target. Realize that trying to run ts_calibrate while Android is
> already up and running means that you'll have TSLIB and Android
> fighting to shove their data to the framebuffer and through it to the
> screen.
>
> I'm going to be adding a new calibration application to my
> android-omap3logic project to hopefully help with this..
>
> Regards
> -- Ashwin
>

> ...
>
> read more »

Deva R

unread,
Apr 6, 2010, 10:13:23 AM4/6/10
to mfas...@gmail.com, android-porting
Hi,

You need to run ./ts_calibrate to store the calibrated data to
/etc/<calibration> file..

refer http://www.opentom.org/Tslib

Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Gokul Nagarajan

unread,
Apr 6, 2010, 10:34:25 AM4/6/10
to android-porting
Hi Ashwin,

We are running ts_calibrate application once after Android boots up.

Once it is done,we are touching the menu's in the Android Screen, but
it doesnt sense it.
Please support us.

With regards
Gokul

On Apr 6, 7:13 pm, Deva R <r.deva...@gmail.com> wrote:
> Hi,
>
> You need to run ./ts_calibrate to store the calibrated data to
> /etc/<calibration> file..
>

> referhttp://www.opentom.org/Tslib

> ...
>
> read more »

Gokul Nagarajan

unread,
Apr 6, 2010, 10:34:35 AM4/6/10
to android-porting
Hi Ashwin,

We are running ts_calibrate application once after Android boots up.

Once it is done,we are touching the menu's in the Android Screen, but
it doesnt sense it.
Please support us.

With regards
Gokul

On Apr 6, 7:13 pm, Deva R <r.deva...@gmail.com> wrote:
> Hi,
>
> You need to run ./ts_calibrate to store the calibrated data to
> /etc/<calibration> file..
>

> referhttp://www.opentom.org/Tslib

> ...
>
> read more »

Gokul Nagarajan

unread,
Apr 6, 2010, 10:42:45 AM4/6/10
to android-porting
Hi Ashwin,

We are running ts_calibrate application once after Android boots up.

Once it is done,we are touching the menu's in the Android Screen, but
it doesnt sense it.
Please support us.

With regards
Gokul


On Apr 6, 7:13 pm, Deva R <r.deva...@gmail.com> wrote:
> Hi,
>
> You need to run ./ts_calibrate to store the calibrated data to
> /etc/<calibration> file..
>

> referhttp://www.opentom.org/Tslib

> ...
>
> read more »

Ashwin Bihari

unread,
Apr 6, 2010, 12:47:06 PM4/6/10
to nagara...@gmail.com, android-porting
The ts_calibrate only needs to be run once and the output of that
should be saved in the file /system/etc/pointercal. This will be the
file that the TLSIB within Android will use to scale the inputs.

Run the "getevent" at the serial port and check what the touchscreen
input device is and you'll need to add the TSLIB_TSDEVICE environment
variable in your init.rc file to set it properly for TSLIB to use..

Regards
-- Ashwin

Gokul Nagarajan

unread,
Apr 7, 2010, 3:58:43 AM4/7/10
to android-porting
Hi

We run the "getevent" from the terminal and from that we have set
TSLIB_TSDEVICE to /dev/input/event1.
Then we run the ts_calibrate application and the calibrate values were
found in /system/etc/pointercal.
But still if we press on the Menu's in the Android,it didnt able to
sense it

---Gokul

On Apr 6, 9:47 pm, Ashwin Bihari <abih...@gmail.com> wrote:
> The ts_calibrate only needs to be run once and the output of that
> should be saved in the file /system/etc/pointercal. This will be the
> file that the TLSIB within Android will use to scale the inputs.
>
> Run the "getevent" at the serial port and check what the touchscreen
> input device is and you'll need to add the TSLIB_TSDEVICE environment
> variable in your init.rc file to set it properly for TSLIB to use..
>
> Regards
> -- Ashwin
>
> On Tue, Apr 6, 2010 at 10:42 AM, Gokul Nagarajan
>

> ...
>
> read more »

Gokul Nagarajan

unread,
Apr 8, 2010, 4:02:32 AM4/8/10
to android-porting
Hi Ashwin,

Once we run the ts_calibrate apllication,we test the touchscreen
through ts_test appplication.It works fine. But Android doesn't sense
it.
Please support us.

Regards,
Gokul


On Apr 7, 12:58 pm, Gokul Nagarajan <nagarajan1...@gmail.com> wrote:
> Hi
>

> > >> > We are able to calibrate theTouchscreenin Android.We are able to

> ...
>
> read more »

Deva R

unread,
Apr 8, 2010, 4:14:34 AM4/8/10
to nagara...@gmail.com, android-porting
Hi,
This shouldnt be the case, and not sure where the break can be..,

can you add traces and check,
- at kernel touchscreen driver when it updates coordinates by
input_sync_abs calls?
- some logcat logs in Android touch screen (i/p) ui libararies?
http://git.omapzoom.org/?p=platform/frameworks/base.git;a=blob;f=libs/ui/EventHub.cpp
<..>/KeyInputQueue.java

Fasil

unread,
Apr 8, 2010, 7:38:39 AM4/8/10
to android-porting
Hi Deva,

we have tested the touchsreen driver already with 480 x 272 lcd in
Android. Now we have changed only the LCD size to 7 inch.ie 800 x
480.In driver side we have modified the x_max, y_max, x_min, y_min
parameters and the touch screen is working find in linux.We feel the
problem is around the xmin , ymin, xmax and ymax values for which
Android is not able to grab the correct values. Any suggestion or
workarounds for this issue. I m pasting the selected Logcat messages
below

Thanks and Regards
Fasil


./ts_calibrate
xres = 800, yres = 480
/dev/input/event1: 0001 014a 00000001
/dev/input/event1: 0003 0001 00000d85
/dev/input/event1: 0003 0000 00000b49
/dev/input/event1: 0003 0018 000000f3
/dev/input/event1: 0000 0000 00000000
ts_input_read : type = 0, code = 0, value = 0
/dev/input/event1: 0003 0001 00000d8a
/dev/input/event1: 0003 0000 00000b47
/dev/input/event1: 0003 0018 000000e6


I/SurfaceFlinger( 743): Client API: OpenGL ES
W/EGLDisplaySurface( 743): page flipping not supported
(yres_virtual=480,
reque
sted=960)
I/EGLDisplaySurface( 743): using (fd=21)
I/EGLDisplaySurface( 743): id = omapfb
I/EGLDisplaySurface( 743): xres = 800 px
I/EGLDisplaySurface( 743): yres = 480 px
I/EGLDisplaySurface( 743): xres_virtual = 800 px
I/EGLDisplaySurface( 743): yres_virtual = 481 px
I/EGLDisplaySurface( 743): bpp = 16
I/EGLDisplaySurface( 743): r = 11:5
I/EGLDisplaySurface( 743): g = 5:6
I/EGLDisplaySurface( 743): b = 0:5
I/EGLDisplaySurface( 743): width = 127 mm (160.000000 dpi)
I/EGLDisplaySurface( 743): height = 76 mm (160.421051 dpi)
I/EGLDisplaySurface( 743): refresh rate = 76.97 Hz
W/HAL ( 743): load: module=/system/lib/hw/copybit.omap3.so
error=Cannot loa
d library: load_library[984]: Library '/system/lib/hw/
copybit.omap3.so'
not foun
d
W/HAL ( 743): load: module=/system/lib/hw/copybit.default.so
error=Cannot l
oad library: load_library[984]: Library
'/system/lib/hw/copybit.default.so' not
found
W/SurfaceFlinger( 743): ro.sf.lcd_density not defined, using 160 dpi
by
default
.
I/SurfaceFlinger( 743): OpenGL informations:
I/SurfaceFlinger( 743): vendor : Android
I/SurfaceFlinger( 743): renderer : Android PixelFlinger 1.0
I/SurfaceFlinger( 743): version : OpenGL ES-CM 1.0
I/SurfaceFlinger( 743): extensions: GL_OES_byte_coordinates
GL_OES_fixed_point


On Apr 8, 1:14 pm, Deva R <r.deva...@gmail.com> wrote:
> Hi,

> This shouldnt be the case, and not sure where the break can be..,
>
> can you add traces and check,
> - at kernel touchscreen driver when it updates coordinates by
> input_sync_abs calls?
> - some logcat logs in Android touch screen (i/p) ui libararies?

>    http://git.omapzoom.org/?p=platform/frameworks/base.git;a=blob;f=libs...
>     <..>/KeyInputQueue.java

> ...
>
> read more »

Kan-Ru Chen

unread,
Apr 8, 2010, 4:11:08 AM4/8/10
to nagara...@gmail.com, android-porting
Hi Gokul,

You have to integrate the tslib to EventHub.
Here is the example:
https://www.codeaurora.org/gitweb/quic/la/?p=platform/frameworks/base.git;a=commitdiff;h=aa870b

Regards,
Kanru
http://0xlab.org

Gokul Nagarajan

unread,
Apr 9, 2010, 4:51:02 AM4/9/10
to android-porting

Hi Kanru,

We applied patch of https://www.codeaurora.org/gitweb/quic/la/?p=platform/frameworks/base...

Once we compile we got below error.Please help us.


Copying out/target/common/obj/APPS/ContactsProvider_intermediates/
classes-full-debug.jar
Install: out/target/product/generic/system/app/ContactsProvider.apk
Copying out/target/common/obj/APPS/Development_intermediates/classes-
full-debug.jar
Install: out/target/product/generic/system/app/Development.apk
Copying out/target/common/obj/APPS/DownloadProvider_intermediates/
classes-full-debug.jar
Install: out/target/product/generic/system/app/DownloadProvider.apk
Copying out/target/common/obj/APPS/DrmProvider_intermediates/classes-
full-debug.jar
Install: out/target/product/generic/system/app/DrmProvider.apk
Copying out/target/common/obj/APPS/GlobalSearch_intermediates/classes-
full-debug.jar
Install: out/target/product/generic/system/app/GlobalSearch.apk
Copying out/target/common/obj/APPS/GoogleSearch_intermediates/classes-
full-debug.jar
Install: out/target/product/generic/system/app/GoogleSearch.apk
Copying out/target/common/obj/APPS/HTMLViewer_intermediates/classes-
full-debug.jar
Install: out/target/product/generic/system/app/HTMLViewer.apk
target Non-prelinked: libicudata-us (out/target/product/generic/
symbols/system/lib/libicudata.so)


target thumb C++: libui <= frameworks/base/libs/ui/EventHub.cpp
In file included from frameworks/base/libs/ui/EventHub.cpp:19:
frameworks/base/include/ui/ITSLib.h:8:19: error: tslib.h: No such file
or directory

In file included from frameworks/base/include/ui/ITSLib.h:9,
from frameworks/base/libs/ui/EventHub.cpp:19:


frameworks/base/include/ui/IInputDriver.h:24: warning: 'class
android::IInputDriver' has virtual functions but non-virtual
destructor

frameworks/base/libs/ui/EventHub.cpp:73: error: prototype for
'android::EventHub::device_t::device_t(int32_t, const char*)' does not
match any in class 'android::EventHub::device_t'
frameworks/base/include/ui/EventHub.h:116: error: candidates are:
android::EventHub::device_t::device_t(const
android::EventHub::device_t&)
frameworks/base/include/ui/EventHub.h:126: error:
android::EventHub::device_t::device_t(int32_t, const char*, const
char*)
frameworks/base/libs/ui/EventHub.cpp: In constructor
'android::EventHub::device_t::device_t(int32_t, const char*)':
frameworks/base/libs/ui/EventHub.cpp:75: error: class
'android::EventHub::device_t' does not have any field named 'driver'
frameworks/base/libs/ui/EventHub.cpp: At global scope:
frameworks/base/libs/ui/EventHub.cpp:104: error: no 'void
android::EventHub::onFirstRef()' member function declared in class
'android::EventHub'
frameworks/base/libs/ui/EventHub.cpp:256: error: prototype for 'bool
android::EventHub::getEvent(android::InEvent*)' does not match any in
class 'android::EventHub'
frameworks/base/include/ui/EventHub.h:100: error: candidate is:
virtual bool android::EventHub::getEvent(int32_t*, int32_t*, int32_t*,
int32_t*, uint32_t*, int32_t*, nsecs_t*)
frameworks/base/libs/ui/EventHub.cpp: In member function 'bool
android::EventHub::getEvent(android::InEvent*)':
frameworks/base/libs/ui/EventHub.cpp:318: error: 'struct
android::EventHub::device_t' has no member named 'driver'
frameworks/base/libs/ui/EventHub.cpp:319: error: 'struct
android::EventHub::device_t' has no member named 'driver'
frameworks/base/libs/ui/EventHub.cpp: In member function 'int
android::EventHub::open_device(const char*)':
frameworks/base/libs/ui/EventHub.cpp:536: error: no matching function
for call to 'android::EventHub::device_t::device_t(unsigned int, const
char*&)'
frameworks/base/include/ui/EventHub.h:126: note: candidates are:
android::EventHub::device_t::device_t(int32_t, const char*, const
char*)
frameworks/base/include/ui/EventHub.h:116: note:
android::EventHub::device_t::device_t(const
android::EventHub::device_t&)
frameworks/base/libs/ui/EventHub.cpp:596: error: 'struct
android::EventHub::device_t' has no member named 'driver'
frameworks/base/libs/ui/EventHub.cpp:597: error: 'struct
android::EventHub::device_t' has no member named 'driver'
frameworks/base/libs/ui/EventHub.cpp:597: error: 'struct
android::EventHub::device_t' has no member named 'driver'
frameworks/base/libs/ui/EventHub.cpp:598: error: 'struct
android::EventHub::device_t' has no member named 'driver'
frameworks/base/libs/ui/EventHub.cpp:599: error: 'struct
android::EventHub::device_t' has no member named 'driver'


make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/
libui_intermediates/EventHub.o] Error 1


Regards
--Gokul

On Apr 8, 1:11 pm, Kan-Ru Chen <ka...@0xlab.org> wrote:
> Hi Gokul,
>
> You have to integrate the tslib to EventHub.

> Here is the example:https://www.codeaurora.org/gitweb/quic/la/?p=platform/frameworks/base...
>
> Regards,
> Kanruhttp://0xlab.org

> ...
>
> read more »

Deva R

unread,
Apr 9, 2010, 5:15:14 AM4/9/10
to nagara...@gmail.com, android-porting
Hi,

looks like you are missing complete TSLIB package..

can you port complete TSLIB and update android UI libarary, from below
location (its donut based)?

Alok

unread,
Apr 14, 2010, 8:44:13 AM4/14/10
to android-porting
Hi Deva/Ashwin
Is tslib port available for eclair also ?

Regards
Alok

On Apr 9, 2:15 pm, Deva R <r.deva...@gmail.com> wrote:
> Hi,
>

> looks like you are missing completeTSLIBpackage..
>

> can you port completeTSLIBand update android UI libarary, from below
> location (its donut based)?
>
> TSLIB-http://gitorious.org/android-omap3logic/external-tslib


> Android Changes -http://gitorious.org/android-omap3logic/frameworks-base
>
>
>
> On Fri, Apr 9, 2010 at 2:21 PM, Gokul Nagarajan <nagarajan1...@gmail.com> wrote:
>
> > Hi Kanru,
>

> > We applied patch ofhttps://www.codeaurora.org/gitweb/quic/la/?p=platform/frameworks/base...

> >> You have to integrate thetslibto EventHub.

> >> >> > variable in your init.rc file to set it properly forTSLIBto use..

> >> >> > >> >> already up and running means that you'll haveTSLIBand Android


> >> >> > >> >> fighting to shove their data to the framebuffer and through it to the
> >> >> > >> >> screen.
>
> >> >> > >> >> I'm going to be adding a new calibration application to my
> >> >> > >> >> android-omap3logic project to hopefully help with this..
>
> >> >> > >> >> Regards
> >> >> > >> >> -- Ashwin
>
> >> >> > >> >> On Tue, Apr 6, 2010 at 7:35 AM, Fasil <mfasi...@gmail.com> wrote:
> >> >> > >> >> > Hi Deva,Ashwin,
>
> >> >> > >> >> >           Thanks for your valuable inputs, I got the successful
> >> >> > >> >> > build. But When I tried in the target I got the following error. Any
> >> >> > >> >> > suggestion for the cause ...
>
> >> >> > >> >> > # ./system/bin/ts_calibrate
> >> >> > >> >> > open fbdevice: No such file or directory
> >> >> > >> >> > #
>
> >> >> > >> >> > Thanks
> >> >> > >> >> > Fasil
>
> >> >> > >> >> > On Apr 6, 12:54 pm, Deva R <r.deva...@gmail.com> wrote:
> >> >> > >> >> >> HI,

> >> >> > >> >> >>tslibis in actualTSLIBlibrary source path..


>
> >> >> > >> >> >> link:http://gitorious.org/android-omap3logic/external-tslib/trees/9ba15a66...
>
> >> >> > >> >> >> >Android 1.6, you can check them out at:

> >> >> > >> >> >> >TSLIB-http://gitorious.org/android-omap3logic/external-tslib


> >> >> > >> >> >> >Android Changes -http://gitorious.org/android-omap3logic/frameworks-base
>
> >> >> > >> >> >> As per Ashwin's mail, you should do below steps in your <android>/ folder..
> >> >> > >> >> >> Copy completehttp://gitorious.org/android-omap3logic/frameworks-base
>

> ...
>
> read more »- Hide quoted text -
>
> - Show quoted text -

Ashwin Bihari

unread,
Apr 14, 2010, 9:18:40 AM4/14/10
to moondr...@gmail.com, android-porting
Alok,

I only did the work with Donut..but will be migrating my code over to
Eclair sometime soon and I will need to port TSLIB there as well..and
I'll publish whatever changes I make..

Regards
-- Ashwin

huseyin.bashan

unread,
May 18, 2010, 2:41:49 PM5/18/10
to android-porting
hi,

I am porting 4.3 touchscreen (has tsc2046 controller) to beaglboard
with android

Kernel driver porting completed

I applied your external/tslib framework/base and initrc "export X""
patchs.

and run ts_calibrate. samples succesfully collected to /etc/
pointercal

but after reboot

after splash , the desktop has not appeared and I have taken the
following errors

binder: 803:807 transaction failed 29189, size60-0
binder: release proc 874, transaction 767, not freed
binder: 765:782 transaction failed 29189, size168-0
binder: 765:782 transaction failed 29189, size168-0
binder: release 1057:1076 transaction 1945 out, still active
binder: send failed reply for transaction 1946 to 765:783
binder: 765:783 transaction failed 29189, size4-0
binder: send failed reply for transaction 1945, target dead
binder: release proc 1152, transaction 2549, not freed

when I remove /etc/pointercal. after reboot again,the errors does
not appear and the android desktop appear.

Could you help me about the issue?

thank you very much
huseyin bashan

On Apr 14, 4:18 pm, Ashwin Bihari <abih...@gmail.com> wrote:
> Alok,
>
> I only did the work with Donut..but will be migrating my code over to
> Eclair sometime soon and I will need to port TSLIB there as well..and
> I'll publish whatever changes I make..
>
> Regards
> -- Ashwin
>
> >> >> >> > > On Apr 6,7:13 pm, Deva R <r.deva...@gmail.com> wrote:
> >> >> >> > >> Hi,
>
> >> >> >> > >> You need to run ./ts_calibrate to store the calibrated data to
> >> >> >> > >> /etc/<calibration> file..
>
> >> >> >> > >> referhttp://www.opentom.org/Tslib
>
Reply all
Reply to author
Forward
0 new messages