SHA256
1
0
forked from pool/libinput
libinput/libinput-elantech-pressure-levels.patch

24 lines
806 B
Diff
Raw Normal View History

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
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;