no response when touch the touchscreen

78 views
Skip to first unread message

Weber

unread,
Nov 30, 2009, 9:56:12 PM11/30/09
to android-porting
Hi,guys
I have ported android 2.6.25 to my s3c smdk6410,and the filesystem is
donut that I built from the source code.Now I can boot it up and see
the main window.But when touching the item ,it does not have any
response at all.

My touchscreen driver src file is s3c_ts.c.

I built tslib and calibrated it without android running,generating a
pointercal file.But it still didn't work.

Here are my debug info:
# logcat *:E
E/MountListener( 527): Failed to connect to vold
E/MountListener( 527): java.lang.IllegalStateException
E/MountListener( 527): at
com.android.server.MountListener.listenToSocket(MountListener.java:
254)
E/MountListener( 527): at com.android.server.MountListener.run
(MountListener.java:274)
E/MountListener( 527): at java.lang.Thread.run(Thread.java:
1060)
E/MountListener( 527): Failed to connect to vold

# ls /dev/input
event0 event1 ts0
# cat /proc/bus/input/devices
I: Bus=0019 Vendor=0001 Product=0001 Version=0001
N: Name="s3c-keypad"
P: Phys=s3c-keypad/input0
S: Sysfs=/devices/platform/s3c-keypad/input/input0
U: Uniq=
H: Handlers=kbd event0
B: EV=100003
B: KEY=1fffe

I: Bus=0013 Vendor=dead Product=beef Version=0101
N: Name="S3C TouchScreen"
P: Phys=input(ts)
S: Sysfs=/devices/virtual/input/input1
U: Uniq=
H: Handlers=event1 ts0
B: EV=b
B: KEY=20 0 0 0 0 0 0 0 0 0 0
B: ABS=1000003

# cat /proc/bus/input/handlers
N: Number=0 Name=kbd
N: Number=1 Name=evdev Minor=64
N: Number=2 Name=tsdev Minor=128

What is the difference btw event1 and ts0?

and my env for tslib are:
export TSLIB_TSEVENTTYPE INPUT
export TSLIB_CONSOLEDEVICE none
export TSLIB_FBDEVICE /dev/graphics/fb0
export TSLIB_TSDEVICE /dev/input/event1 //I had tried ts0,still the
same
export TSLIB_CALIBFILE /system/etc/pointercal
export TSLIB_CONFFILE /system/etc/tslib/ts.conf
export TSLIB_PLUGINDIR /system/lib/ts

# getevent
tsdev (compaq touchscreen emulation) is scheduled for removal.
See Documentation/feature-removal-schedule.txt for details.
could not get driver version for /dev/input/ts0, Invalid argument
add device 1: /dev/input/event1
name: "S3C TouchScreen"
add device 2: /dev/input/event0
name: "s3c-keypad"
/dev/input/event1: 0000 0000 00000000
/dev/input/event1: 0003 0000 00000505
/dev/input/event1: 0003 0001 00000870
/dev/input/event1: 0003 0018 00000001
/dev/input/event1: 0000 0000 00000000
/dev/input/event1: 0003 0000 00000506
/dev/input/event1: 0003 0001 00000879
/dev/input/event1: 0000 0000 00000000
/dev/input/event1: 0003 0018 00000000
/dev/input/event1: 0000 0000 00000000
/dev/input/event1: 0003 0000 000006b6

and then I open the DEBUG in s3c_ts.c,when touching it,the console
prints:
# D
D
D
T: 853507, X: 28791, Y: 31853
T: 878508, X: 28404, Y: 32080
D
T: 603508, X: 31842, Y: 18032
T: 628524, X: 31689, Y: 18009
D
T: 818507, X: 44988, Y: 16935
T: 843508, X: 44818, Y: 17687
T: 868506, X: 45122, Y: 17618
T: 893508, X: 45248, Y: 18344
D
T: 648508, X: 45725, Y: 43406
T: 673508, X: 45500, Y: 43828
D
T: 478507, X: 24101, Y: 19161
T: 503508, X: 23650, Y: 19044
T: 528508, X: 23943, Y: 18982
It seems that android didn't get my input coordinate but the kernel
did

and the post
http://groups.google.com/group/android-porting/browse_thread/thread/fb64af66b1f877fa/c72fc79b31c83dca?lnk=gst&q=Touch+Screen+%3F4%3F%3F&_done=%2Fgroup%2Fandroid-porting%2Fbrowse_thread%2Fthread%2Ffb64af66b1f877fa%2Fc72fc79b31c83dca%3Flnk%3Dgst%26q%3DTouch%2BScreen%2B%253F4%253F%253F
says that " Power Management support "is necessary ,so I chose it
and rebuilt ,but it still has no response .

so could anyone tell me what are my problems ?and How should i do to
make the touchscreen work?
Thanks!
---Weber

Weber

unread,
Dec 2, 2009, 6:15:40 AM12/2/09
to android-porting
Can Anyone help me?Thanks

On Dec 1, 10:56 am, Weber <qvbs...@gmail.com> wrote:
> Hi,guys
> I have ported android 2.6.25 to my s3c smdk6410,and the filesystem is
> donut that I built from the source code.Now I can boot it up and see
> the main window.But when touching the item ,it does not have anyresponseat all.
> and the posthttp://groups.google.com/group/android-porting/browse_thread/thread/f...

Michael Trimarchi

unread,
Dec 2, 2009, 6:41:18 AM12/2/09
to android...@googlegroups.com
Weber wrote:
> Hi,guys
> I have ported android 2.6.25 to my s3c smdk6410,and the filesystem is
> donut that I built from the source code.Now I can boot it up and see
> the main window.But when touching the item ,it does not have any
> response at all.
>
> My touchscreen driver src file is s3c_ts.c.
>
> I built tslib and calibrated it without android running,generating a
> pointercal file.But it still didn't work.
>
> Here are my debug info:
> # logcat *:E
> E/MountListener( 527): Failed to connect to vold
> E/MountListener( 527): java.lang.IllegalStateException
> E/MountListener( 527): at
> com.android.server.MountListener.listenToSocket(MountListener.java:
> 254)
> E/MountListener( 527): at com.android.server.MountListener.run
> (MountListener.java:274)
> E/MountListener( 527): at java.lang.Thread.run(Thread.java:
> 1060)
> E/MountListener( 527): Failed to connect to vold
>
Sorry but this is unrelated to the touchscreen problem :)
Michael

?? ?

unread,
Dec 2, 2009, 9:01:41 AM12/2/09
to android...@googlegroups.com
hi,weber
  I got the same problem  as you. It was some thing wrong with your screen driver.
Maybe in your Framebuffer driver.
 Find the PowerManagerService.java
modify the following function.
    boolean screenIsOn() {
        synchronized (mLocks) {
            return true;
           // return (mPowerState & SCREEN_ON_BIT) != 0;
        }
    }
 
try it :-) and don't forget to fix the driver in the kernel.
2009/12/2 Michael Trimarchi <trim...@gandalf.sssup.it>

代云贵

unread,
Dec 2, 2009, 8:31:58 AM12/2/09
to android...@googlegroups.com
Hi Weber:
I have met this problem before .First you should make sure that you have configed the "power manage function" and you kernel driver fully support it .A few days before,our team suffered this ,because we do not fully support it .When an input action happening, Android will check
 if screen is on and decide send this MSG  to system or not .And we change the source code of  java ,and it works .
Good luck!
fanday
2009/12/2 Michael Trimarchi <trim...@gandalf.sssup.it>

Weber

unread,
Dec 3, 2009, 10:12:25 PM12/3/09
to android-porting
Hello,代云贵
I have configed the power management。
and what do you mean by “fully support”?what should be included?
and which code should I change?
could you tell me more details?
Thank you!
--Weber

On Dec 2, 9:31 pm, 代云贵 <yungui...@gmail.com> wrote:
> Hi Weber:
> I have met this problem before .First you should make sure that you have
> configed the "power manage function" and you kernel driver fully support
> it .A few days before,our team suffered this ,because we do not fully
> support it .When an input action happening, Android will check
>  if screen is on and decide send this MSG  to system or not .And we change
> the source code of  java ,and it works .
> Good luck!
> fanday
> 2009/12/2 Michael Trimarchi <trimar...@gandalf.sssup.it>
> >http://groups.google.com/group/android-porting/browse_thread/thread/f...
> > >  says that " Power Management support  "is necessary ,so I chose it
> > > and rebuilt ,but it still has no response .
>
> > > so could anyone tell me what are my problems ?and How should i do to
> > > make the touchscreen work?
> > > Thanks!
> > > ---Weber
>
> > --
> > unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>
> > website:http://groups.google.com/group/android-porting

Weber

unread,
Dec 3, 2009, 10:18:37 PM12/3/09
to android-porting
Thank you ,I have tried it but it still didn‘t work。
what do you mean by saying “fix the driver in the kernel”?
My driver seems ok,here are the bootup message:

Loaded s3c-udc version Dec 2 2009 (DMA Mode)
input: s3c-keypad as /devices/platform/s3c-keypad/input/input0
s3c-keypad Initialized
S3C Keypad Driver
S3C Touchscreen driver, (c) 2008 Samsung Electronics
S3C TouchScreen got loaded successfully : 12 bits
input: S3C TouchScreen as /devices/virtual/input/input1
S3C24XX RTC, (c) 2004,2006 Simtec Electronics

BTW, I have built tslib,I can use ts_calibrate to calibrate it,and I
can draw and drag using ts_test

thanks
--Weber
On Dec 2, 10:01 pm, "?? ?" <tonypopso...@gmail.com> wrote:
> hi,weber
>   I got the same problem  as you. It was some thing wrong with your screen
> driver.
> Maybe in your Framebuffer driver.
>  Find the PowerManagerService.java
> modify the following function.
>     boolean screenIsOn() {
>         synchronized (mLocks) {
>             return true;
>            // return (mPowerState & SCREEN_ON_BIT) != 0;
>         }
>     }
>
> try it :-) and don't forget to fix the driver in the kernel.
> 2009/12/2 Michael Trimarchi <trimar...@gandalf.sssup.it>
> >http://groups.google.com/group/android-porting/browse_thread/thread/f...
> > >  says that " Power Management support  "is necessary ,so I chose it
> > > and rebuilt ,but it still has no response .
>
> > > so could anyone tell me what are my problems ?and How should i do to
> > > make the touchscreen work?
> > > Thanks!
> > > ---Weber
>
> > --
> > unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>
> > website:http://groups.google.com/group/android-porting

fanday

unread,
Dec 4, 2009, 7:40:57 AM12/4/09
to android...@googlegroups.com
Hi Weber:
   We just change our code as bellow to get over it :
On Dec 2, 10:01 pm, "?? ?" <tonypopso...@gmail.com> wrote:
> hi,weber
>   I got the same problem  as you. It was some thing wrong with your screen
> driver.
> Maybe in your Framebuffer driver.
>  Find the PowerManagerService.java
> modify the following function.
>     boolean screenIsOn() {
>         synchronized (mLocks) {
>             return true;
>            // return (mPowerState & SCREEN_ON_BIT) != 0;
>         }
>     }
>
> try it :-) and don't forget to fix the driver in the kernel.
> 2009/12/2 Michael Trimarchi <trimar...@gandalf.sssup.it>
And we can see that this problem is because of power manager .
 
Good luck !
Fanday
2009/12/4 Weber <qvb...@gmail.com>

Dianne Hackborn

unread,
Dec 4, 2009, 12:40:07 PM12/4/09
to android...@googlegroups.com
All I see you is breaking an API so it no longer returns the right value.  This works fine on all other devices afaik.  We certainly wouldn't accept a patch like this...  if you think there is a problem in the framework, you need to find out the -real- problem, not a random hack that happens to make your device work.
--
Dianne Hackborn
Android framework engineer
hac...@android.com

Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails.  All such questions should be posted on public forums, where I and others can see and answer them.

fanday

unread,
Dec 4, 2009, 11:29:59 PM12/4/09
to android...@googlegroups.com
Hi Dianne Hackborn :
    Our team are trying to fix this problem in kernel .But we can not get a clue .Would you give us some advise.By the way ,where can we get the DOC about Android power manager.
 
Thanks!!
fanday

2009/12/5 Dianne Hackborn <hac...@android.com>

dan raaka

unread,
Dec 5, 2009, 12:55:41 AM12/5/09
to android...@googlegroups.com
"I have ported android 2.6.25 to my s3c smdk6410,and the filesystem is donut "
Isn't Donut on 2.6.29 ?

-Dan


fanday

unread,
Dec 5, 2009, 1:12:36 AM12/5/09
to android...@googlegroups.com
Hi all:
    I reconfig my linux kernel and enable all the power manager configuration in "power manager support " and "LCD driver ".Now it works well .Android can get input event with out modifing Android's source code.
 
Best regards!
fanday

Weber

unread,
Dec 7, 2009, 9:09:30 AM12/7/09
to android-porting
I use logcat to debug,but I did not see the item "I/KeyInputQueue"
that can see android service can obtain the input coordinates
could you tell me how to logcat it?

thanks
-Weber

Weber

unread,
Dec 7, 2009, 9:10:58 AM12/7/09
to android-porting
In fact there is no "LCD driver" item ,but some related item ,too many

thank you
-Weber

On Dec 5, 2:12 pm, fanday <yungui...@gmail.com> wrote:

Weber

unread,
Dec 7, 2009, 9:11:05 AM12/7/09
to android-porting
In fact there is no "LCD driver" item ,but some related item ,too many

thank you
-Weber

On Dec 5, 2:12 pm, fanday <yungui...@gmail.com> wrote:

fanday

unread,
Dec 7, 2009, 7:41:01 PM12/7/09
to android...@googlegroups.com
Hi Weber :
    You can use "getevent" to get input events .
 
 Best regards!
Fanday

2009/12/7 Weber <qvb...@gmail.com>

Weber

unread,
Dec 29, 2009, 9:46:53 PM12/29/09
to android-porting
Thanks
What do you mean by saying “fix the driver in the kernel”?
Which part or file should I fix?
Thanks again
--Weber

On 12月2日, 下午10時01分, "?? ?" <tonypopso...@gmail.com> wrote:
> hi,weber
>   I got the same problem  as you. It was some thing wrong with your screen
> driver.
> Maybe in your Framebuffer driver.
>  Find the PowerManagerService.java
> modify the following function.
>     boolean screenIsOn() {
>         synchronized (mLocks) {
>             return true;
>            // return (mPowerState & SCREEN_ON_BIT) != 0;
>         }
>     }
>
> try it :-) and don't forget to fix the driver in the kernel.
> 2009/12/2 Michael Trimarchi <trimar...@gandalf.sssup.it>
> >http://groups.google.com/group/android-porting/browse_thread/thread/f...

> > >  says that " Power Management support  "is necessary ,so I chose it
> > > and rebuilt ,but it still has no response .
>
> > > so could anyone tell me what are my problems ?and How should i do to
> > > make the touchscreen work?
> > > Thanks!
> > > ---Weber
>
> > --
> > unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>
> > website:http://groups.google.com/group/android-porting

Weber

unread,
Dec 29, 2009, 9:51:38 PM12/29/09
to android-porting
That is because my board is based on 2.6.24.7,and 2.6.29 have too many
differences from it ,so I choose diff of 2.6.25 to patch it .But my
file system is donut
Than you
--Weber

On 12月5日, 下午1時55分, dan raaka <danra...@gmail.com> wrote:
> "I have ported android 2.6.25 to my s3c smdk6410,and the filesystem is donut
> "
> Isn't Donut on 2.6.29 ?
>
> -Dan
>

> > <android-porting%2Bunsu...@googlegroups.com<android-porting%252Buns...@googlegroups.com>
>
> > > > website:http://groups.google.com/group/android-porting
>
> > --
> > unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>
> > website:http://groups.google.com/group/android-porting

Reply all
Reply to author
Forward
Message has been deleted
0 new messages