Bug 1964036
Summary: | Elantech trackpoint loses sync and jumps to the corner/edge of the screen | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Joerg <jkastning> | ||||||||
Component: | kernel | Assignee: | Kernel Maintainer List <kernel-maint> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
Severity: | unspecified | Docs Contact: | |||||||||
Priority: | unspecified | ||||||||||
Version: | 34 | CC: | acaringi, adscvr, airlied, alciregi, bskeggs, hdegoede, jarodwilson, jeremy, jglisse, jonathan, josef, kernel-maint, lgoncalv, linville, masami256, mchehab, mihai, mpearson, ptalbert, steved | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | x86_64 | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2021-12-01 12:32:25 UTC | Type: | Bug | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Description
Joerg
2021-05-24 15:01:27 UTC
Created attachment 1786478 [details]
Proposed patch from Oleg Trifonov
This patch seems to fix the issue. I re-compiled my current kernel with it and haven't seen the issue since.
I confirm that the issue occurs using the following Rawhide kernel, too. ~~~ $ cat /proc/version Linux version 5.13.0-0.rc2.20210521git79a106fc6585.22.fc35.x86_64 (mockbuild.fedoraproject.org) (gcc (GCC) 11.1.1 20210512 (Red Hat 11.1.1-2), GNU ld version 2.36.1-12.fc35) #1 SMP Fri May 21 19:22:56 UTC 2021 ~~~ Created attachment 1786496 [details]
Logs gathered with running rawhide kernel
Joerg, thank you for your bug-report. We are aware of this issue and are looking into it. Especially thank you for the bugzilla.kernel.org / patch link, we were not aware of that yet and having a working (workaround?) patch is always very helpful. Now that we know where to look we can hopefully fix this soon (or we might go with the workaround). Hello Hans de Goede, You're welcome and I'm glad to help. Unfortunately I think that the patch I attached doesn't cover all cases. Today I tested with my patched kernel (5.12.5-300.jumpy.trackpoint.v2.1.local.fc34.x86_64) again and faced the issue after some minutes while it worked for hours yesterday. I looked into `../linux-5.13-rc2-191-g79a106fc6585/drivers/input/mouse/elantec.c` and saw there is some other kind of workaround implemented in line 1629 and following. But that didn't work either. So I'm unsure what to do about it and how to do further testing that might be helpful solving this problem. In case you have any advice, please share. Thanks Hans and Joerg, FYI - I've forwarded the bug and workaround details to Elantech. I've reproduced this myself locally so will aim to try it out later too. Thanks for letting me know! Mark (In reply to Mark Pearson from comment #6) > Thanks for letting me know! You are welcome! Please keep us in the loop when there are any news. Of course I'm willing to help in testing. Best regards, Joerg I've added "psmouse.proto=imps" to the kernel command line and had no jumps since. ~~~ sudo grubby --update-kernel=ALL --args="psmouse.proto=imps" ~~~ Maybe this is a possible workaround until a fix is available. I found this workaround at: [TrackPoint “jumps” occasionally to edge/corner on Linux on X13 (AMD)](https://www.reddit.com/r/thinkpad/comments/imk7s9/trackpoint_jumps_occasionally_to_edgecorner_on/]. (In reply to Mark Pearson from comment #6) > FYI - I've forwarded the bug and workaround details to Elantech. > I've reproduced this myself locally so will aim to try it out later too. Hi Mark, Did you hear anything back from Elantech? Or are there any other news on this? Regards, Joerg Update from Elantech --- Driver patch already approve and merge to kernel 5.15.3 https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/input/mouse/elantech.c?h=v5.15.3&id=4f43e1c69280313f121283cb5c16e5e0b1036b3a Cursor jump root cause: Touchpad FW will randomly send out coordinate(X,Y) that will bigger than 127 or smaller than -127, but trackpoint send out coordinate will be in -127 < (X,Y) < 127. We use driver solution and modify driver when detect coordinate(X,Y) that bigger than 127 or smaller than -127 send out by trackpoint, we ignore these coordinate to prevent cursor jump. --- Looks like the patch is in kernel-ark os-build already: https://gitlab.com/cki-project/kernel-ark/-/commit/be896bd3b72b44126c55768f14c22a8729b0992e So can we close this? Mark Hi, Currently I'm running Fedora Linux 35 (Workstation Edition) on Lenovo T14s with kernel version `5.15.5-200.fc35.x86_64`. My workaround was disabled by: ~~~ sudo grubby --remove-args="psmouse.proto=imps" --update-kernel /boot/vmlinuz-5.15.5-200.fc35.x86_64 ~~~ From my point of view, the issue seems to be solved and this case could be closed. Thanks, Joerg (In reply to Joerg from comment #11) > Currently I'm running Fedora Linux 35 (Workstation Edition) on Lenovo T14s > with kernel version `5.15.5-200.fc35.x86_64`. > > From my point of view, the issue seems to be solved and this case could be > closed. Thanks for confirming the fix. 5.15.-5 is already in the stable updates repository, so lets close this. |