Random short touchpad freezes

I’ve build the module and used the method from the second link (rmmod old / insmod new) but I still have the freeze:

ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   145Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   145Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   145Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   145Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   145Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   145Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   145Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   145Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   146Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   146Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   146Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   146Hz
ELAN1300:00 04F3:3104 Touchpad: Latest    50Hz, Average   145Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   145Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   145Hz
ELAN1300:00 04F3:3104 Touchpad: Latest     1Hz, Average   143Hz
ELAN1300:00 04F3:3104 Touchpad: Latest     6Hz, Average   141Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   141Hz
ELAN1300:00 04F3:3104 Touchpad: Latest    71Hz, Average   139Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   139Hz

Thank you for testing the patched module! Can you check if “Disable touchpad while typing” is enabled in your touchpad’s setting panel?

Yes this option is ON in the KDE settings.

During the test I’ve only used the touchpad

What if you toggle that option off?

I’ve tried different settings (“Tap-and-drag”, “Disable while typing”, “Flat/Adaptive” acceleration) but I still get freezes

For now I run out of ideas. I know there is something wrong with the GPIO interrupt controller diver (pinctrl-amd) but it’s not supposed to affect the touchpad in this way. In case your touchpad issue is caused by pintrl-amd, could you try Comment #189 : Bug #1887190 : Bugs : linux package : Ubuntu?

Btw, do you use xf86-input-synaptics or xf86-input-libinput? What if you use the alternative?

How can I check which driver is in use?

I’ve managed to install and use the synaptics driver (xinput list-props "ELAN130...." shows the synaptics is in use), but I get freezes as well using it.

Can you install hid-tools and run sudo hid-recorder > hid_reports? If possible, also identify the lines when your touchpad freezes. Then upload hid_reports somewhere and share the link with me.

I can only do this Sunday afternoon. I will let you know when it is ready

Btw, after running hid-recorder, you can also run “sudo hid-replay hid_reports” to see if the problem can be reproduced.

I froze for several swipes.

When I replay the log file the cursor seems to make the same freeze, but it only moves on the upper edge of the screen; my touchpad movements were done in the middle part of the screen.

Here’s what I see on my screen,
(left to right)
…a…b…
(right to left)
…c…

I see three pauses at point a, b and c respective. All the movements are done in a non-stop, continuous way, right?

Can you try GitHub - coiby/standalone_i2c_hid at polling_regardless_of_gpio_pin_state and then paste the result of hid-recorder?

Hello @coiby

I still get freezes with the github code. DO you need some more traces?

Thank you for providing the feedback! It seems your touchpad hasn’t been set up properly by the driver. Is it possible for me to access your OS via Teamviewer to debug this issue?

Hello @coiby I’ve send you a private message

Thank you! Meanwhile can you do me a favor to show me the result of sudo cat /sys/kernel/debug/gpio|grep -A1 "pin16\s"?

$ sudo cat /sys/kernel/debug/gpio|grep -A1 "pin16\s"
pin16     interrupt is disabled| interrupt is masked| disable wakeup in S0i3 state| disable wakeup in S3 state|
 disable wakeup in S4/S5 state| input is low|   pull-up is disabled| pull-down is enabled|   output is disabled|   0x40000

I’m going to submit a patch soon to fix another touchpad (https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1887190) and I need to make sure it won’t cause any regression.

On my laptop the output looks like this

pin16   Level trigger| Active low| interrupt is enabled| interrupt is unmasked| enable wakeup in S0i3 state| disable wakeup in S3 state|
 disable wakeup in S4/S5 state| input is high| 4k pull-up| pull-up is enabled| Pull-down is disabled|   output is disabled| 0x153b40

Hi guys, is there any progress on this? I’m using ASUS M513 and Ubuntu 20.04 and I can confirm the same touchpad mouse freezes that are random. The touchpad scroll works all the time as well. I noticed the same issues using GParted bootable iso. It works fine on Windows 10 so it can’t be a hardware issue. Also I tried both synaptics driver and libinput