<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Unusable pressure values on ETPS/2 Elantech Touchpad"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=100463">100463</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Unusable pressure values on ETPS/2 Elantech Touchpad
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Wayland
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>libinput
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>wayland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>aleksey.vasilenko@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=130560" name="attach_130560" title="evemu.log">attachment 130560</a> <a href="attachment.cgi?id=130560&action=edit" title="evemu.log">[details]</a></span>
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</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>