Xinyuan-LilyGO / T-Display-S3-Long

36 stars 11 forks source link

Touchscreen issue when switching from black to white screen #30

Open frncsch opened 1 week ago

frncsch commented 1 week ago

TouchIntErrorProjectArduino.zip

frncsch commented 1 week ago

TOUCH_1_3 TOUCH_2_3 TOUCH_3_3

frncsch commented 1 week ago

Same issue with LVGL demo when using a full white image. then touchscreen detect false touch. test1_180640.zip

fundix commented 1 week ago

random touches also makes the black area, maybe the filling of the display does not matter

frncsch commented 1 week ago

random touches also makes the black area, maybe the filling of the display does not matter

I haven't seen random touch with black. In the screenshot we see some touch after DRAW BLACK, but I think there is a delay between the trace (display command) and the real image change in the display.

fundix commented 1 week ago

random touches also makes the black area, maybe the filling of the display does not matter

I haven't seen random touch with black. In the screenshot we see some touch after DRAW BLACK, but I think there is a delay between the trace (display command) and the real image change in the display.

I've noticed that the random clicks, which occasionally wake up my GUI, are coming from an increasingly similar area near one corner (now I don't know which one). The clicks only happen 1 or 2 times (e.g. one for 10 minutes), so I was planning to solve this in software.

I've been looking at the datasheet for the display and touch for a while, but there's not much info on that. It has its own firmware that can be upgraded, but LiLYGo either doesn't have it or just doesn't provide it.

It might also depend on the individual components, but I've used several of them (about 4) and at least some have had random clicking issues. I don't know if all of them have yet.

frncsch commented 1 week ago

I am continuing tests. From what I have seen (but I have done only shorts test on one device), it happens only when displaying bright color on the last rows of the display (the one near wider edge). On my device, when TOUCHINT occurs, the position of touch is quite random.

lilygo_s3_long_display_area_generate_touchint

Now I am trying this : I set a 2 pixels black margins on all the edges of the screen. And I have seen no other unwanted TouchInt. But it is quite dirty and not satisfying. Moreover not sure it work in long term or on all devices.

I hope LiLyGo team can investigate more deeply with the display manufacturer.

fundix commented 1 week ago

I am continuing tests. From what I have seen (but I have done only shorts test on one device), it happens only when displaying bright color on the last rows of the display (the one near wider edge). On my device, when TOUCHINT occurs, the position of touch is quite random.

lilygo_s3_long_display_area_generate_touchint

Now I am trying this : I set a 2 pixels black margins on all the edges of the screen. And I have seen no other unwanted TouchInt. But it is quite dirty and not satisfying. Moreover not sure it work in long term or on all devices.

I hope LiLyGo team can investigate more deeply with the display manufacturer.

I can confirm this position of random clicks.

frncsch commented 1 week ago

"Now I am trying this : I set a 2 pixels black margins on all the edges of the screen" Unfortunately I have seen one time the touch sending unwanted events with this test fix.

If this bug is confirmed and can't be fixed, it makes the board unusable.

fundix commented 1 week ago

"Now I am trying this : I set a 2 pixels black margins on all the edges of the screen" Unfortunately I have seen one time the touch sending unwanted events with this test fix.

If this bug is confirmed and can't be fixed, it makes the board unusable.

I don't switch the display to sleep mode, I just set it to black and turn off the backlight. On click the screen changes from black and lights up. There is a #0000 and still these random clicks were occurring. Sometimes I would say more sometimes less. But mostly it was minutes.