<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Lenovo P50 - Slow fine touchpad movement makes it jump (bug 2)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105963#c11">Comment # 11</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Lenovo P50 - Slow fine touchpad movement makes it jump (bug 2)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105963">bug 105963</a>
from <span class="vcard"><a class="email" href="mailto:tim@tim-richardson.net" title="Tim Richardson <tim@tim-richardson.net>"> <span class="fn">Tim Richardson</span></a>
</span></b>
<pre>Thanks, I will take those actions, including learning a bit more about git.
I will also see if I over-reacted by making a separate udev rule for the
P50. Before I split it, the touchpad became unusable after a reboot; I
assumed that other quirks somewhere were being applied which were causing
the trouble (so my hypothesis is not that the udev properties need to be
different, but that somewhere other quirks were being activated because a
bunch of different ThinkPads were grouped together). However, these
problems may have been due to some of my other exploratory changes (since
backed out since none of them helped). You're right: the only active change
is the rejection of non-touch events which you already coded, plus the use
of a dedicated P50 rule (I thought you created that for the P50 bug report
which is why I wasn't concerned about a specific P50 rule excluding other
hardware from the non-touch event rejection).
The touchpad is still a poor experience at slow acceleration settings
(<-0.7) but it is considerably improved at xinput acceleration settings
<span class="quote">>0.5 (previously close to unusable, but not any more, it's actually</span >
pleasant to use at last).
On 11 April 2018 at 10:42, <<a href="mailto:bugzilla-daemon@freedesktop.org">bugzilla-daemon@freedesktop.org</a>> wrote:
<span class="quote">> *<a href="show_bug.cgi?id=105963#c10">Comment # 10</a> <<a class="bz_bug_link
bz_status_NEW "
title="NEW - Lenovo P50 - Slow fine touchpad movement makes it jump (bug 2)"
href="show_bug.cgi?id=105963#c10">https://bugs.freedesktop.org/show_bug.cgi?id=105963#c10</a>> on
> <a class="bz_bug_link
bz_status_NEW "
title="NEW - Lenovo P50 - Slow fine touchpad movement makes it jump (bug 2)"
href="show_bug.cgi?id=105963">bug 105963</a> <<a class="bz_bug_link
bz_status_NEW "
title="NEW - Lenovo P50 - Slow fine touchpad movement makes it jump (bug 2)"
href="show_bug.cgi?id=105963">https://bugs.freedesktop.org/show_bug.cgi?id=105963</a>> from Peter
> Hutterer <<a href="mailto:peter.hutterer@who-t.net">peter.hutterer@who-t.net</a>> *</span >
>
<span class="quote">> Comment on <span class=""><a href="attachment.cgi?id=138744" name="attach_138744" title="patch for P50">attachment 138744</a> <a href="attachment.cgi?id=138744&action=edit" title="patch for P50">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=105963&attachment=138744'>[review]</a> <<a href="https://bugs.freedesktop.org/attachment.cgi?id=138744">https://bugs.freedesktop.org/attachment.cgi?id=138744</a>> [details] <<a href="https://bugs.freedesktop.org/attachment.cgi?id=138744&action=edit">https://bugs.freedesktop.org/attachment.cgi?id=138744&action=edit</a>> [review] <<a href="https://bugs.freedesktop.org/page.cgi?id=splinter.html&bug=105963&attachment=138744">https://bugs.freedesktop.org/page.cgi?id=splinter.html&bug=105963&attachment=138744</a>>
> patch for P50</span >
>
<span class="quote">> Review of <span class=""><a href="attachment.cgi?id=138744" name="attach_138744" title="patch for P50">attachment 138744</a> <a href="attachment.cgi?id=138744&action=edit" title="patch for P50">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=105963&attachment=138744'>[review]</a> <<a href="https://bugs.freedesktop.org/attachment.cgi?id=138744">https://bugs.freedesktop.org/attachment.cgi?id=138744</a>> [details] <<a href="https://bugs.freedesktop.org/attachment.cgi?id=138744&action=edit">https://bugs.freedesktop.org/attachment.cgi?id=138744&action=edit</a>> [review] <<a href="https://bugs.freedesktop.org/page.cgi?id=splinter.html&bug=105963&attachment=138744">https://bugs.freedesktop.org/page.cgi?id=splinter.html&bug=105963&attachment=138744</a>>:
> -----------------------------------------------------------------</span >
>
<span class="quote">> Thanks, overall - I don't know why this patch works but the previous one
> didn't. Functionally they are (or should be) exactly the same on your touchpad.</span >
>
<span class="quote">> The (1 << 28) is a definite bug that needs to be fixed, please submit a
> separate patch for that.</span >
>
<span class="quote">> ::: src/evdev-mt-touchpad.c
> @@ +106,4 @@> * is reset whenever a new finger is down, so we'd be resetting the
> > * speed and failing.
> > */
> > + if (t->history.count < HISTORY_COUNT_THRESHOLD) {</span >
>
<span class="quote">> fwiw, I haven't used a const here because we only use it in one place. So
> having the number right here makes it more obvious what the value is. There's
> no strict rule for this, there is some gut feeling involved :)</span >
>
<span class="quote">> Same goes for the NON_MOTION_EVENT_COUNT</span >
>
<span class="quote">> @@ +435,4 @@>
> > if (t->history.count <= 1)
> > return zero;
> > + </span >
>
<span class="quote">> this and a whole bunch of others look like detritus and erroneous whitespace
> being introduced. I recommend looking into git add -p, this saves you from
> adding spurious hunks.</span >
>
<span class="quote">> @@ +1411,4 @@> reset that touch to non-dirty effectively swallowing that event
> > and restarting with the next event again.
> > */
> > + if (tp->device->model_flags & EVDEV_MODEL_LENOVO_P50_TOUCHPAD) {</span >
>
<span class="quote">> this would break all the touchpads that currently rely on this setting. But I
> don't quite get why this is even needed, the flag name itself just doesn't
> matter.</span >
>
<span class="quote">> ::: src/evdev.h
> @@ -126,4 @@> EVDEV_MODEL_LOGITECH_MARBLE_MOUSE = (1 << 26),
> > EVDEV_MODEL_TABLET_NO_PROXIMITY_OUT = (1 << 27),
> > EVDEV_MODEL_MS_NANO_TRANSCEIVER = (1 << 28),
> > - EVDEV_MODEL_TABLET_NO_TILT = (1 << 28),</span >
>
<span class="quote">> oh crap, that's a real bug (both flags having 1<<28). Can you split this into a
> separate commit please and I'll get it merged.</span >
>
<span class="quote">> ::: udev/90-libinput-model-quirks.hwdb
> @@ +220,5 @@> +
> > +# Lenovo P50
> > +libinput:name:SynPS/2 Synaptics TouchPad:dmi:*svnLENOVO:*:pvrThinkPadP50*
> > + LIBINPUT_MODEL_LENOVO_P50_TOUCHPAD=1
> > + LIBINPUT_ATTR_PALM_PRESSURE_THRESHOLD=150</span >
>
<span class="quote">> I really don't understand why this could be needed. The udev properties you set
> here are the same as the ones with the previous patch (compare udevadm info
> /sys/class/input/eventX output to be sure). Even the palm threshold is the
> same, so all that happens here is a renaming of flags but the functional effect
> should be the same before and after and this patch is effectively a noop (for
> your touchpad, it breaks all the ones below :)</span >
>
<span class="quote">> ::: .gitignore
> @@ +16,5 @@> +/help/
> > +/.cproject
> > +/.project
> > +/tim_notes.txt
> > +.externalToolBuilders</span >
>
<span class="quote">> can't merge those, too specific. Please remove from the patch, thanks.</span >
>
<span class="quote">> ------------------------------
> You are receiving this mail because:</span >
>
<span class="quote">> - You reported the bug.</span >
>
></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>