pimoroni / hyperpixel4

Driver for the Pimoroni HyperPixel 4.0" Touchscreen Display
https://shop.pimoroni.com/products/hyperpixel-4?variant=12569485443155
323 stars 43 forks source link

Multi touch not working horizontally #69

Open Torsten85 opened 4 years ago

Torsten85 commented 4 years ago

Hello,

when I put two fingers on the display ( one at the top, one below), xinput --test-xi2 --rootcorrectly shows two different RawTouchBegin events. But when both fingers are on a horizontal line (one left, one right), only ohne event is registered. It doesn't matter how far apart the fingers are. I noticed this in an attempt to implement two finger pan recognition (which of course did never work).

What install steps did you go through so far? Did you install from GitHub or use our one-line-installer?

one line installer

Your HyperPixel 4

  1. Is it Square or Rectangular? Square
  2. Touch or non Touch? Touch
  3. Approximately when was it purchased 03/2020
  4. How is it connected to your Pi directly

Your Raspberry Pi

Give as much detail about your Pi and OS as possible. We only officially support Raspbian, but might be able to point you in the right direction if the problem is with another OS.

  1. What model of Raspberry Pi are you using (the result of cat /proc/cpuinfo | grep Revision can tell us this exactly 9020e0
  2. Which OS release are you using: lsb_release --description and uname -r Raspbian GNU/Linux 10 (buster) 4.19.97-v7+
  3. Is this a fresh OS setup, or one you might have previously installed scripts/add-ons on? fresh

Extra debugging information

If you're having a problem with touch, try checking dmesg for related errors:

[ 5.566916] input: generic ft5x06 (11) as /devices/platform/i2c@0/i2c-3/3-0048/input/input0

And check i2c is working:

ls /dev/i2c-* /dev/i2c-3

And your HyperPixel 4 touch is showing up (there should be an address blocked out with UU in the below command):

i2cdetect -y X ( where X is the number of i2c bus found in the command above)

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- 
50: -- -- -- 53 -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --     
Torsten85 commented 4 years ago

I've make a super simple app displaying the current registered touch points.

This shows, that the touch point recognition does not work correctly. Also, is it correct that the display only accepts max. 2 touch points?

ezgif com-crop (1)