Bug 291262 - Elantech touchpad not working correctly + patch
Summary: Elantech touchpad not working correctly + patch
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 15.0-CURRENT
Hardware: amd64 Any
: --- Affects Some People
Assignee: Vladimir Kondratyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-28 09:58 UTC by David Lundqvist
Modified: 2025-12-03 13:06 UTC (History)
2 users (show)

See Also:


Attachments
Patch for psm for Elantech (591 bytes, patch)
2025-11-28 09:58 UTC, David Lundqvist
no flags Details | Diff
elan_middle_button.patch (2.32 KB, patch)
2025-12-03 13:06 UTC, Vladimir Kondratyev
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Lundqvist 2025-11-28 09:58:47 UTC
Created attachment 265683 [details]
Patch for psm for Elantech

I have an Lenovo ThinkPad P53 with an "Elantech touchpad hardware v.4 firmware v.0x5f2001"

So the trackpoint works, so does the tree buttons for the trackpoint.
The trackpad does not work, no response, nor from the buttons below the trackpad. I did however accidentally discover that if I hod the middle button below the trackpad, it works and so does the buttons

I got some help on discord by Jordan Gordeev and he made a patch for this for the psm driver, attached below.
So the trackpad now works, partly.
3-finger scroll that I use on other Unix-like systems does not work, yet. Not sure if its driver or other software, like libinput that is problematic.

This problem persists on 16.0-CURRENT as I did a test install today, patch does not apply as psm has changed but I manually patched it all fine.

This may be a duplicate:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266742


I would love to help out more if I can.
Comment 1 Vladimir Kondratyev freebsd_committer freebsd_triage 2025-12-03 13:06:01 UTC
Created attachment 265798 [details]
elan_middle_button.patch

Test attached patch. It adds middle button support.

It should be done on top of very recent 16-CURRENT or with https://cgit.freebsd.org/src/commit/?id=e3201cec8381c0582374f93991eff4a71bb95e9b commit backported to test 3 fingers scroll as well.