<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:peter.hutterer@who-t.net" title="Peter Hutterer <peter.hutterer@who-t.net>"> <span class="fn">Peter Hutterer</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO - Libinput 0.19 and 0.20 ignore POINTINGSTICK_CONST_ACCEL"
href="https://bugs.freedesktop.org/show_bug.cgi?id=91369">bug 91369</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>REOPENED
</td>
<td>NEEDINFO
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO - Libinput 0.19 and 0.20 ignore POINTINGSTICK_CONST_ACCEL"
href="https://bugs.freedesktop.org/show_bug.cgi?id=91369#c48">Comment # 48</a>
on <a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO - Libinput 0.19 and 0.20 ignore POINTINGSTICK_CONST_ACCEL"
href="https://bugs.freedesktop.org/show_bug.cgi?id=91369">bug 91369</a>
from <span class="vcard"><a class="email" href="mailto:peter.hutterer@who-t.net" title="Peter Hutterer <peter.hutterer@who-t.net>"> <span class="fn">Peter Hutterer</span></a>
</span></b>
<pre>I have a branch available for testing now:
<a href="https://github.com/whot/libinput/tree/wip/trackpoint-accel-v2">https://github.com/whot/libinput/tree/wip/trackpoint-accel-v2</a>
If you don't want to install this, build the source with the event-gui tool
(requires gtk+ headers) and run that to check cursor motion speed. No install
required.
The big change here is to switch from the mouse acceleration code to one more
adjusted for trackpoints. Unlike the previous system which re-used the mouse
accel function and relied on some system settings (sensitivity, const accel)
this one is designed to have everything handled by libinput, so we can change
it ourselves where needed without having to rely on systemd or other external
repos.
The cursor motion at the default sensitivity matches the one seen by the evdev
driver, one of the questions is if the configurable speed range is wide enough
to cover for the use-case
A few comments first:
* the accel is designed to provide accuracy at low speeds, so making things
faster won't change slow motions.
* this now completely ignores CONST_ACCEL, i.e. changing that will have no
effect
* this now undoes the effect of the SENSITIVITY property, we scale back to the
kernel default (128) based on the property value. If the property and the sysfs
file mismatch, the behaviour is currently undefined, so don't test by echoing
values into /sys/.../sensitivity
* A new property is exposed, LIBINPUT_ATTR_TRACKPOINT_RANGE=20, where 20 is the
useful range of the trackpoint. See below.
Calibration:
Because we can't easily check the trackpoints, some calibration may be
required. Might eventually be able to learn this heuristically, but not for
now. There's a new tool available, "sudo ./tools/libinput analyze-trackpoint"
which will prompt you to do the required things. Most importantly, it will
require you to move the trackpoint around with what is effectively maximum
reasonable pressure and print a histogram of what values have been hit. Use
common sense to guess the range for your trackpoint from that, the output
should look like a double bell curve, use as range the edge of either curve and
ignore any outliers. If the range is 20 (or 30 at sensitivity 200), congrats,
no further calibration needed.
Otherwise, save it as /etc/udev/hwdb.d/99-trackpoint-range.hwdb like this:
libinput:name:*TrackPoint*
LIBINPUT_ATTR_TRACKPOINT_RANGE=30
run sudo udevadm hwdb --update, sudo udevadm test /sys/class/input/event7 (for
your device) and make sure it shows up. If so, you're ready. If installed,
restart X/Wayland and you're good to go. Look at the libinput docs for more
info on building/updating udev properties, etc, I don't want to mess up the bug
report with this.
Change the speed setting in GNOME/X/whatever, it will have an effect now. Let
me know how you go, whether the default speed makes sense on the touchpad, etc.</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>