2017-04-16 20:35:51 +02:00
|
|
|
From: badshah400@gmail.com
|
|
|
|
|
|
|
|
Fix pressure sensitivity for ELANTECH touchpads causing uncomfortable
|
|
|
|
two-finger taps, scrolls.
|
|
|
|
|
|
|
|
References: http://bugzilla.opensuse.org/1034335
|
|
|
|
References: http://bugs.freedesktop.orgs/100463
|
|
|
|
|
2017-04-16 20:33:50 +02:00
|
|
|
Index: libinput-1.7.0/src/evdev-mt-touchpad.c
|
|
|
|
===================================================================
|
|
|
|
--- libinput-1.7.0.orig/src/evdev-mt-touchpad.c
|
|
|
|
+++ libinput-1.7.0/src/evdev-mt-touchpad.c
|
|
|
|
@@ -2383,8 +2383,8 @@ tp_init_pressure(struct tp_dispatch *tp,
|
|
|
|
range = abs->maximum - abs->minimum;
|
|
|
|
|
|
|
|
if (device->model_flags & EVDEV_MODEL_ELANTECH_TOUCHPAD) {
|
|
|
|
- tp->pressure.high = 24;
|
|
|
|
- tp->pressure.low = 10;
|
|
|
|
+ tp->pressure.high = 10;
|
|
|
|
+ tp->pressure.low = 8;
|
|
|
|
} else if (device->model_flags & EVDEV_MODEL_CYAPA) {
|
|
|
|
tp->pressure.high = 10;
|
|
|
|
tp->pressure.low = 8;
|