Hi,
The change below adds ic type 13 as an elantech v4 device and causes
the touchpad in a thinkpad x380 yoga to work as described in wsmouse(4).
Two finger scrolling works and the three mouse button areas are defined
as described. Before the touchpad and trackpoint were attached as a
single generic ps/2 mouse. See also
https://marc.info/?l=openbsd-tech&m=152620756114509&w=2
The following new lines appear in the dmesg output
pms0: Elantech Clickpad, version 4, firmware 0x4d1f00
wsmouse1 at pms0 mux 0
and wsconsctl gives
mouse.type=elantech
mouse.rawmode=0
mouse.scale=0,2745,0,1627,0,0,0
mouse.tp.tapping=0
mouse.tp.scaling=0.288
mouse.tp.swapsides=0
mouse.tp.disable=0
mouse.tp.edges=0.0,5.0,10.0,5.0
mouse1.type=ps2
Hope something like this can be added to openbsd.
Kind regards,
Alexander
Index: pms.c
===================================================================
RCS file: /cvs/src/sys/dev/pckbc/pms.c,v
retrieving revision 1.88
diff -u -p -r1.88 pms.c
--- pms.c 26 Jan 2019 11:57:21 -0000 1.88
+++ pms.c 2 Aug 2019 09:46:50 -0000
@@ -1947,6 +1947,7 @@ elantech_get_hwinfo_v4(struct pms_softc
if ((fw_version & 0x0f0000) >> 16 != 6
&& (fw_version & 0x0f0000) >> 16 != 8
+ && (fw_version & 0x0f0000) >> 16 != 13
&& (fw_version & 0x0f0000) >> 16 != 15)
return (-1);