FYSETC / FYSETC-CTP40

This repo contains the infomations and drivers for FYSETC CTP40 display
10 stars 3 forks source link

Different reboots leads to different i2c address for the touch module #9

Closed 0r31 closed 2 years ago

0r31 commented 2 years ago

Hi,

Sometimes at some boots, the touch feature doesn't work. It seems the touch module has 2 different addresses on the I2C bus (checked with i2cdetect on a raspberry 4 + screen).

Touch module ok

Log :

/var/log/kern.log:4970:Mar  1 18:24:53 myhostname kernel: [    7.343479] Goodix-TS 22-0014: supply AVDD28 not found, using dummy regulator
/var/log/kern.log:4971:Mar  1 18:24:53 myhostname kernel: [    7.345024] Goodix-TS 22-0014: supply VDDIO not found, using dummy regulator
/var/log/kern.log:4972:Mar  1 18:24:53 myhostname kernel: [    7.346970] Goodix-TS 22-0014: ID 911, version: 1060
/var/log/kern.log:4973:Mar  1 18:24:53 myhostname kernel: [    7.368357] input: Goodix Capacitive TouchScreen as /devices/platform/i2c@0/i2c-22/22-0014/input/input0

I2C address :

username@hostname:~$ i2cdetect -y 22
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- UU -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- -- 

Touche module ko

Log :

/var/log/kern.log:5299:Mar  2 14:33:28 myhostname kernel: [    6.575737] Goodix-TS 22-0014: supply AVDD28 not found, using dummy regulator
/var/log/kern.log:5300:Mar  2 14:33:28 myhostname kernel: [    6.576981] Goodix-TS 22-0014: supply VDDIO not found, using dummy regulator
/var/log/kern.log:5301:Mar  2 14:33:28 myhostname kernel: [    6.577781] Goodix-TS 22-0014: i2c test failed attempt 1: -6
/var/log/kern.log:5303:Mar  2 14:33:28 myhostname kernel: [    6.605411] Goodix-TS 22-0014: i2c test failed attempt 2: -6
/var/log/kern.log:5304:Mar  2 14:33:28 myhostname kernel: [    6.636825] Goodix-TS 22-0014: I2C communication failure: -6

I2C address :

username@hostname:~$ i2cdetect -y 22
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- 5d -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- -- 

I don't know exactly why but there is an interesting discussion here : https://github.com/pimoroni/hyperpixel4/issues/41

Thanks @Gadgetoid for the idea to duplicate the related overlay !

GerogeFu commented 2 years ago

Thanks