Manjaro KDE: Touchpad hangs randomly

When on battery and "Enable Power Management" is checked, my touchpad hangs randomly (could be when CPU is busy). Disabling Porwer Management solves the problem. (Looks like it didn't fix the problem, it just hangs less frequently).

Where should I look at to fix it?

Here is my inxi -Fx

System:    Host: hummingbird Kernel: 5.2.4-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.1.0 Desktop: KDE Plasma 5.16.3 
           Distro: Manjaro Linux 
Machine:   Type: Laptop System: Acer product: Swift SF313-51 v: V1.09 serial: <root required> 
           Mobo: KBL model: Snow_KL v: V1.09 serial: <root required> UEFI: Insyde v: 1.09 date: 06/10/2019 
Battery:   ID-1: BAT0 charge: 39.5 Wh condition: 48.9/48.9 Wh (100%) model: LGC AC14B8K status: Discharging 
CPU:       Topology: Quad Core model: Intel Core i5-8250U bits: 64 type: MT MCP arch: Kaby Lake rev: A L2 cache: 6144 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 28808 
           Speed: 800 MHz min/max: 400/3400 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 5: 800 6: 801 7: 801 
           8: 800 
Graphics:  Device-1: Intel UHD Graphics 620 vendor: Acer Incorporated ALI driver: i915 v: kernel bus ID: 00:02.0 
           Display: x11 server: X.Org 1.20.5 driver: intel unloaded: modesetting resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel UHD Graphics 620 (Kabylake GT2) v: 4.5 Mesa 19.1.3 direct render: Yes 
Audio:     Device-1: Intel Sunrise Point-LP HD Audio vendor: Acer Incorporated ALI driver: snd_hda_intel v: kernel 
           bus ID: 00:1f.3 
           Sound Server: ALSA v: k5.2.4-1-MANJARO 
Network:   Device-1: Intel Wireless 7265 driver: iwlwifi v: kernel port: 4000 bus ID: 01:00.0 
           IF: wlp1s0 state: up mac: 48:a4:72:33:b5:e4 
Drives:    Local Storage: total: 238.47 GiB used: 60.04 GiB (25.2%) 
           ID-1: /dev/nvme0n1 vendor: Kingston model: RBUSNS8154P3256GJ1 size: 238.47 GiB 
Partition: ID-1: / size: 224.77 GiB used: 60.04 GiB (26.7%) fs: ext4 dev: /dev/nvme0n1p2 
           ID-2: swap-1 size: 8.80 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/nvme0n1p3 
Sensors:   System Temperatures: cpu: 38.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Info:      Processes: 245 Uptime: 1h 43m Memory: 7.70 GiB used: 3.05 GiB (39.6%) Init: systemd Compilers: gcc: 9.1.0 
           Shell: bash v: 5.0.7 inxi: 3.0.35 

try to uninstalling tlp powertop
see the behaviour
if touchpad does not hang then its tlp config problem

cat /var/log/Xorg.0.log|grep pad

Install xorg-xinput package. Paste results:

xinput
sudo dmesg|grep input

Thanks :slight_smile:

Thanks! It works! Now I want them back. How to configure touchpad in tlp? Didn't see a option for this?

cat /var/log/Xorg.0.log|grep pad
[     5.277] (II) config/udev: Adding input device SYNA7DAB:00 06CB:CD40 Touchpad (/dev/input/event8)
[     5.277] (**) SYNA7DAB:00 06CB:CD40 Touchpad: Applying InputClass "evdev touchpad catchall"
[     5.277] (**) SYNA7DAB:00 06CB:CD40 Touchpad: Applying InputClass "libinput touchpad catchall"
[     5.277] (II) Using input driver 'libinput' for 'SYNA7DAB:00 06CB:CD40 Touchpad'
[     5.277] (**) SYNA7DAB:00 06CB:CD40 Touchpad: always reports core events
[     5.282] (II) event8  - SYNA7DAB:00 06CB:CD40 Touchpad: is tagged by udev as: Touchpad
[     5.285] (II) event8  - SYNA7DAB:00 06CB:CD40 Touchpad: device is a touchpad
[     5.285] (II) event8  - SYNA7DAB:00 06CB:CD40 Touchpad: device removed
[     5.339] (II) XINPUT: Adding extended input device "SYNA7DAB:00 06CB:CD40 Touchpad" (type: TOUCHPAD, id 12)
[     5.342] (**) SYNA7DAB:00 06CB:CD40 Touchpad: (accel) selected scheme none/0
[     5.342] (**) SYNA7DAB:00 06CB:CD40 Touchpad: (accel) acceleration factor: 2.000
[     5.342] (**) SYNA7DAB:00 06CB:CD40 Touchpad: (accel) acceleration threshold: 4
[     5.346] (II) event8  - SYNA7DAB:00 06CB:CD40 Touchpad: is tagged by udev as: Touchpad
[     5.350] (II) event8  - SYNA7DAB:00 06CB:CD40 Touchpad: device is a touchpad
[     5.352] (II) config/udev: Adding input device SYNA7DAB:00 06CB:CD40 Touchpad (/dev/input/mouse0)
xinput
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ SYNA7DAB:00 06CB:CD40 Touchpad            id=12   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Acer Wireless Radio Control               id=8    [slave  keyboard (3)]
    ↳ Power Button                              id=9    [slave  keyboard (3)]
    ↳ Sleep Button                              id=10   [slave  keyboard (3)]
    ↳ HD WebCam: HD WebCam                      id=11   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=13   [slave  keyboard (3)]
    ↳ Acer WMI hotkeys                          id=14   [slave  keyboard (3)]

sudo dmesg|grep input
[    1.289308] input: Lid Switch as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:00/PNP0C0D:00/input/input0
[    1.289424] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1
[    1.289471] input: Sleep Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input2
[    1.289527] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
[    1.848951] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input4
[    2.709915] input: Acer Wireless Radio Control as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:00/10251229:00/input/input5
[    2.763304] input: PC Speaker as /devices/platform/pcspkr/input/input6
[    2.843148] input: Acer WMI hotkeys as /devices/virtual/input/input7
[    2.907200] input: SYNA7DAB:00 06CB:CD40 Mouse as /devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-0/i2c-SYNA7DAB:00/0018:06CB:CD40.0001/input/input8
[    2.907293] input: SYNA7DAB:00 06CB:CD40 Touchpad as /devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-0/i2c-SYNA7DAB:00/0018:06CB:CD40.0001/input/input9
[    2.907369] hid-generic 0018:06CB:CD40.0001: input,hidraw0: I2C HID v1.00 Mouse [SYNA7DAB:00 06CB:CD40] on i2c-SYNA7DAB:00
[    2.999268] input: SYNA7DAB:00 06CB:CD40 Touchpad as /devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-0/i2c-SYNA7DAB:00/0018:06CB:CD40.0001/input/input12
[    2.999395] hid-multitouch 0018:06CB:CD40.0001: input,hidraw0: I2C HID v1.00 Mouse [SYNA7DAB:00 06CB:CD40] on i2c-SYNA7DAB:00
[    3.496202] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input14
[    3.508584] input: HD WebCam: HD WebCam as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/input/input15
[    3.550689] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    3.612004] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1f.3/sound/card0/input16
[    3.612091] input: HDA Intel PCH Front Headphone as /devices/pci0000:00/0000:00:1f.3/sound/card0/input17
[    3.612774] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input18
[    3.615347] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input19
[    3.615401] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input20
[    3.615460] input: HDA Intel PCH HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input21
[    3.615547] input: HDA Intel PCH HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input22

Whitelist MODULES used by touchpad (based on my list, review on your setup via

lsmod|grep i2c|sort

edit /etc/default/tlp find line and uncomment with RUNTIME_PM_DRIVER_BLACKLIST and add hid i2c_hid usbhid hid_multitouch hid_generic i2c_i801

RUNTIME_PM_DRIVER_BLACKLIST="mei_me nouveau nvidia pcieport hid i2c_hid usbhid hid_multitouch hid_generic i2c_i801"

Save changes ENABLE and START tlp service.

Reboot.

lsmod|grep i2c|sort
hid                   143360  4 i2c_hid,usbhid,hid_multitouch,hid_generic
i2c_algo_bit           16384  1 i915
i2c_hid                32768  0

Thanks! Should I add i915 or i2c_i915 ?

i915 or i2c_i915

No. Skip these modules.

Unfortunately after reboot the random freeze still occurs but less frequent.

$ systemctl status tlp.service
● tlp.service - TLP system startup/shutdown
   Loaded: loaded (/usr/lib/systemd/system/tlp.service; enabled; vendor preset: disabled)
   Active: active (exited) since Thu 2019-08-15 15:49:04 CST; 44min ago
     Docs: https://linrunner.de/tlp
  Process: 659 ExecStart=/usr/bin/tlp init start (code=exited, status=0/SUCCESS)
 Main PID: 659 (code=exited, status=0/SUCCESS)

Aug 15 15:49:03 hummingbird systemd[1]: Starting TLP system startup/shutdown...
Aug 15 15:49:04 hummingbird tlp[659]: Applying power save settings...done.
Aug 15 15:49:04 hummingbird tlp[659]: Setting battery charge thresholds...done.
Aug 15 15:49:04 hummingbird systemd[1]: Started TLP system startup/shutdown.
$ systemctl status tlp-sleep.service
● tlp-sleep.service - TLP suspend/resume
   Loaded: loaded (/usr/lib/systemd/system/tlp-sleep.service; enabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: https://linrunner.de/tlp

Report issue directly here: https://github.com/linrunner/TLP/issues

Thanks again. I'll remove tlp for a while and see how it goes. Just to make sure it's tlp's problem.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by