From acbb5a4e20a9a077c9c2d5af970a1cf5fbb45143 Mon Sep 17 00:00:00 2001 From: wulf Date: Thu, 4 May 2017 22:51:22 +0000 Subject: [PATCH] Reduce default tap_min_queue size for Elan touchpads Elan hw v.4 touchpads often sends touchpad release packet right after touchpad touch one. Most probably this happens due to PS/2 limited bandwith. Reducing of tap_min_queue size to 1 makes multifinger tap detection more reliable in this case. Reviewed by: gonzo Approved by: gonzo (mentor) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D10266 --- sys/dev/atkbdc/psm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/atkbdc/psm.c b/sys/dev/atkbdc/psm.c index b642f381d7c4..83cf11fd345d 100644 --- a/sys/dev/atkbdc/psm.c +++ b/sys/dev/atkbdc/psm.c @@ -6218,6 +6218,9 @@ elantech_init_synaptics(struct psm_softc *sc) /* Disable finger detection pressure threshold */ sc->syninfo.min_pressure = 1; + /* Elans often report double & triple taps as single event */ + sc->syninfo.tap_min_queue = 1; + /* Use full area of touchpad */ sc->syninfo.margin_top = 0; sc->syninfo.margin_right = 0;