[Wayland-bugs] [Bug 100463] Unusable pressure values on ETPS/2 Elantech Touchpad

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Mar 30 08:47:43 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=100463

            Bug ID: 100463
           Summary: Unusable pressure values on ETPS/2 Elantech Touchpad
           Product: Wayland
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: libinput
          Assignee: wayland-bugs at lists.freedesktop.org
          Reporter: aleksey.vasilenko at gmail.com

Created attachment 130560
  --> https://bugs.freedesktop.org/attachment.cgi?id=130560&action=edit
evemu.log

After 1.7 update my Elantech touchpad on Asus UX301LA became unusable. After
this changes things get back to normal:

diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
index 674cf1c..7daa0f2 100644
--- a/src/evdev-mt-touchpad.c
+++ b/src/evdev-mt-touchpad.c
@@ -2388,8 +2388,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;

evemu device info attached, here is udevadm output:
udevadm info /sys/class/input/event13 
P: /devices/platform/i8042/serio4/input/input16/event13
N: input/event13
E: DEVNAME=/dev/input/event13
E: DEVPATH=/devices/platform/i8042/serio4/input/input16/event13
E: ID_BUS=i8042
E: ID_INPUT=1
E: ID_INPUT_HEIGHT_MM=60
E: ID_INPUT_TOUCHPAD=1
E: ID_INPUT_TOUCHPAD_INTEGRATION=internal
E: ID_INPUT_WIDTH_MM=92
E: LIBINPUT_ATTR_RESOLUTION_HINT=31x31
E: LIBINPUT_DEVICE_GROUP=11/2/e/0:isa0060/serio4
E: LIBINPUT_MODEL_ELANTECH_TOUCHPAD=1
E: MAJOR=13
E: MINOR=77
E: SUBSYSTEM=input
E: USEC_INITIALIZED=2814847

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20170330/01b457e0/attachment-0001.html>


More information about the wayland-bugs mailing list