Random short touchpad freezes

Hello,

I have recently bought an Asus Vivobook S15 M533IA-BQ023. I’m very pleased with the performance and everything is working out of the box on Manjaro KDE with kernel 5.8.11

The only issue I have is with the touchpad: the mouse pointer freezes quite often for about 1-2s when using single finger. The strange thing is that vertical scrolling with double fingers works flawlessly all the time.

dmesg | grep "pad"
[    2.889726] input: ELAN1300:00 04F3:3104 Touchpad as /devices/platform/AMDI0010:03/i2c-0/i2c-ELAN1300:00/0018:04F3:3104.0001/input/input8
[    3.017915] input: ELAN1300:00 04F3:3104 Touchpad as /devices/platform/AMDI0010:03/i2c-0/i2c-ELAN1300:00/0018:04F3:3104.0001/input/input11

Any ideas as to what could be wrong?

Hi

Could you install evhz (sudo yay -S evhz) and show me the output when using one finger?

$ sudo evhz
MSFT0001:00 06CB:7F28 Touchpad: Latest   142Hz, Average     0Hz
MSFT0001:00 06CB:7F28 Touchpad: Latest   142Hz, Average    71Hz
MSFT0001:00 06CB:7F28 Touchpad: Latest   142Hz, Average    94Hz
MSFT0001:00 06CB:7F28 Touchpad: Latest   142Hz, Average   106Hz
MSFT0001:00 06CB:7F28 Touchpad: Latest    62Hz, Average   113Hz

And could you share the ACPI DSDT table with me? Install acpica first. You will see a file named dsdt.dsl after running the following commands and please upload it

sudo acpidump > acpidata.out
acpixtract -sSSDT acpidata.out
acpixtract -sDSDT acpidata.out
iasl -da dsdt.dat ssdt*.dat

Hello @coiby and thank you for the help.

this is the output of evhz

ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   137Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   137Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   137Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   137Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   137Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   125Hz, Average   136Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   137Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   137Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   137Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   137Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   125Hz, Average   137Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   137Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   137Hz
ELAN1300:00 04F3:3104 Touchpad: Latest    29Hz, Average   135Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   135Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   135Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   136Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   137Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   139Hz
ELAN1300:00 04F3:3104 Touchpad: Latest    76Hz, Average   138Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   125Hz, Average   139Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   140Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   140Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   141Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   125Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   125Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   125Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   125Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   143Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   125Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   143Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   143Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   125Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   143Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   143Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   143Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   143Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   143Hz
ELAN1300:00 04F3:3104 Touchpad: Latest    24Hz, Average   141Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   140Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   141Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   140Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   125Hz, Average   140Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest     1Hz, Average   140Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   140Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   140Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   141Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   141Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   125Hz, Average   141Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   141Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   141Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   141Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   141Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   141Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   141Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   125Hz, Average   141Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   142Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   141Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   141Hz
ELAN1300:00 04F3:3104 Touchpad: Latest    50Hz, Average   140Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   140Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   139Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   139Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   140Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   139Hz
ELAN1300:00 04F3:3104 Touchpad: Latest    76Hz, Average   138Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   138Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   138Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   138Hz
ELAN1300:00 04F3:3104 Touchpad: Latest    37Hz, Average   136Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   136Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   136Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   136Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   136Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   136Hz
ELAN1300:00 04F3:3104 Touchpad: Latest    71Hz, Average   135Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   135Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   135Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   135Hz
ELAN1300:00 04F3:3104 Touchpad: Latest    71Hz, Average   134Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   134Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   134Hz
ELAN1300:00 04F3:3104 Touchpad: Latest    37Hz, Average   132Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   132Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   132Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   132Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   132Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   166Hz, Average   132Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   132Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   132Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   132Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   132Hz
ELAN1300:00 04F3:3104 Touchpad: Latest   142Hz, Average   132Hz

I think the freeze happens at the 1Hz value

I have no idea how to upload the output acpi file

Thank you for sharing the result! You can upload the dsdt.dsl somewhere else like gist.github and paste the link here.

This is the acpidata.out file ACPI output data · GitHub

I get some errors generating the .dsl file and it ends up empty

Thank you for sharing the acpidata.out. It turns out I can run iasl -d dsdt.dat to have dsdt.dsl.

Can you try this patch to see if this freezing issue will disappear?

If you have difficulty building the i2c-hid module, you can follow the instructions Comment #211 : Bug #1887190 : Bugs : linux package : Ubuntu here for building&loading the i2c-hid module.

You need to check the additional notes Comment #212 : Bug #1887190 : Bugs : linux package : Ubuntu as well.

Hello @coiby

I really appreciate your effort.

I have some missing header file

[daniel@vivobook i2c-hid_standalone]$ make
make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory '/usr/lib/modules/5.8.11-1-MANJARO/build'
  CC [M]  /home/daniel/Downloads/i2c-hid_standalone/i2c-hid-core.o
/home/daniel/Downloads/i2c-hid_standalone/i2c-hid-core.c:46:10: fatal error: ../hid-ids.h: No such file or directory
   46 | #include "../hid-ids.h"
      |          ^~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:281: /home/daniel/Downloads/i2c-hid_standalone/i2c-hid-core.o] Error 1
make[1]: *** [Makefile:1752: /home/daniel/Downloads/i2c-hid_standalone] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.8.11-1-MANJARO/build'
make: *** [Makefile:16: kbuild] Error 2

I’ve installed the kernel related header packages

core/linux-api-headers 5.8-1 [installed]
core/linux58-headers 5.8.11-1 [installed]
[daniel@vivobook i2c-hid_standalone]$ uname -r
5.8.11-1-MANJARO

Sorry, I forgot to add hid-ids.h. Please check Comment #217 : Bug #1887190 : Bugs : linux package : Ubuntu.

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