quo / ithc-linux

Linux driver for Intel Touch Host Controller
37 stars 7 forks source link

Driver stops working on suspend during pen activity #9

Closed quo closed 1 year ago

quo commented 2 years ago

https://github.com/quo/ithc-linux/issues/5#issuecomment-1144003743

When IPTSD in used and pen is near screen, hibernate and resume make driver got hang.

Also https://github.com/linux-surface/linux-surface/issues/752#issuecomment-1143655167

I've also seen that sometimes the driver stops working if multitouch is toggled while pen is active.

Possible workaround is to trigger a reset with: echo x | sudo tee /sys/kernel/debug/ithc/cmd Or reload the driver with: sudo modprobe -r ithc; sudo modprobe ithc (iptsd must be stopped first)

NP-chaonay commented 2 years ago

(Sorry I think this comment I should move and further telling into new issues instead)

Trying on SLS surface kernel Ubuntu 22.04 LTS both X11/Wayland

For short only last workaround worked here dmesg_tail.log

PS: this is about driver hang after resuming from hibernation PS2: "When IPTSD in used and pen is near screen, hibernate and resume make driver got hang." not only that condition, even pen is not active or iptsd is not running, it also happens see the regularly updated comment here

Pairman commented 2 years ago

sudo modprobe -r ithc; sudo modprobe ithc

Idk why but this workaround seems weird when using the pen and finger alternatively. Before doing the commands the trail will just stop or jump to thenew touch point once.

image

The small dashes or dots are normal trails my pen drew

NP-chaonay commented 2 years ago

I've also seen that sometimes the driver stops working if multitouch is toggled while pen is active.

let me test that (using non-latest quo/iptsd) and reported in this inplace

quo commented 2 years ago

Is this still a problem with latest ithc and iptsd? I can't reproduce it myself anymore at the moment.