[Gta04-owner] 3.0.8 kernel for Android/Replicant

NeilBrown neilb at suse.de
Wed Dec 5 22:41:07 CET 2012


On Wed, 05 Dec 2012 22:18:43 +0100 Paul Kocialkowski <paulk at paulk.fr> wrote:

> > Though, I have noticed a similar behaviour with the TSC2007 touchscreen:
> > when I use the touchscreen and then stop for a while (usually a couple
> > seconds), the next tap on the screen won't be handled, and I have to
> > repeat it another time or two to have the UI to react. I didn't
> > investigate much yet, but it definitely looks like a kernel-side issue.
> 
> I look at it a bit more: as far as I understand, the TSC2007 driver
> works with a "pen down" IRQ, that triggers the tsc2007_work function,
> that will poll until the pen is up, and then re-enable the IRQ.
> 
> The problem here seems to be that the IRQ isn't triggered everytime the
> pend is down on the touchscreen.
> 
> > Thanks again for your generous help!
> > My code is still up at:
> > http://git.paulk.fr/gitweb/?p=replicant/kernel-gta04.git;a=shortlog;h=refs/heads/replicant-4.0
> 

I just tested the touch screen on my device  with your kernel and couldn't
fault it.

I uncommented the printk  at the end of ts_get_pendown_state()  in
board-omap3gta04.c whenever I touch the screen I get a stream of

ts_get_pendown_state() -> 0
ts_get_pendown_state() -> 0
ts_get_pendown_state() -> 0
ts_get_pendown_state() -> 0
ts_get_pendown_state() -> 0
ts_get_pendown_state() -> 0
ts_get_pendown_state() -> 0

until I  remove the  finger/pen, which results in

ts_get_pendown_state() -> 0
ts_get_pendown_state() -> 0
ts_get_pendown_state() -> 0
ts_get_pendown_state() -> 1
ts_get_pendown_state() -> 1


(i.e. two events with a value  of '1').

If I run
  evtest /dev/input/event0

I get the expected:

Event: time 459.939331, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 459.939361, type 3 (EV_ABS), code 0 (ABS_X), value 2211
Event: time 459.939361, type 3 (EV_ABS), code 1 (ABS_Y), value 1886
Event: time 459.939361, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 701
Event: time 459.939361, -------------- SYN_REPORT ------------


when I first touch, and 

Event: time 460.581420, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 460.581451, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 0
Event: time 460.581451, -------------- SYN_REPORT ------------


when I stop touching.

This is consistent, where I touch lots of times  in succession, or leave it
for a minute before touching again.

Could you try the same experiments and report the results?

NeilBrown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: not available
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20121206/bdf89003/attachment.bin>


More information about the Gta04-owner mailing list