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

16 lines
583 B
Diff

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;