mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 01:10:25 +01:00
touchpad: re-enable hysteresis by default for all devices
The removal of the hysteresis even on precise touchpads has led to
difficulties controlling the cursor in a few instances. Since 27078b2667
we only have the hysteresis on Apple touchpads and the Lenovo *40 series and
later. Even on those do we see some positioning difficulties (bug 94379).
So restore the hysteresis by default again for all touchpads. In the future a
knob could be exposed for precision vs reactivity or something, but for now
the drawback of imprecise positioning does not outweigh the benefits we get
on those few devices.
https://bugs.freedesktop.org/show_bug.cgi?id=94379
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
89747d7143
commit
48473994c8
5 changed files with 0 additions and 11 deletions
|
|
@ -2118,12 +2118,6 @@ tp_init_hysteresis(struct tp_dispatch *tp)
|
|||
{
|
||||
int res_x, res_y;
|
||||
|
||||
tp->hysteresis_margin.x = 0;
|
||||
tp->hysteresis_margin.y = 0;
|
||||
|
||||
if (tp->device->model_flags & EVDEV_MODEL_PRECISE_TOUCHPAD)
|
||||
return;
|
||||
|
||||
res_x = tp->device->abs.absinfo_x->resolution;
|
||||
res_y = tp->device->abs.absinfo_y->resolution;
|
||||
tp->hysteresis_margin.x = res_x/2;
|
||||
|
|
|
|||
|
|
@ -1804,7 +1804,6 @@ evdev_read_model_flags(struct evdev_device *device)
|
|||
MODEL(CYBORG_RAT),
|
||||
MODEL(CYAPA),
|
||||
MODEL(LENOVO_T450_TOUCHPAD),
|
||||
MODEL(PRECISE_TOUCHPAD),
|
||||
MODEL(TRACKBALL),
|
||||
{ NULL, EVDEV_MODEL_DEFAULT },
|
||||
#undef MODEL
|
||||
|
|
|
|||
|
|
@ -114,7 +114,6 @@ enum evdev_device_model {
|
|||
EVDEV_MODEL_CYBORG_RAT = (1 << 14),
|
||||
EVDEV_MODEL_CYAPA = (1 << 15),
|
||||
EVDEV_MODEL_LENOVO_T450_TOUCHPAD= (1 << 17),
|
||||
EVDEV_MODEL_PRECISE_TOUCHPAD = (1 << 18),
|
||||
EVDEV_MODEL_TRACKBALL = (1 << 19),
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -121,7 +121,6 @@ static const char udev_rule[] =
|
|||
"\n"
|
||||
"ATTRS{name}==\"litest SynPS/2 Synaptics TouchPad X1C3rd\","
|
||||
" ENV{LIBINPUT_MODEL_LENOVO_T450_TOUCHPAD}=\"1\"\n"
|
||||
" ENV{LIBINPUT_MODEL_PRECISE_TOUCHPAD}=\"1\"\n"
|
||||
"\n"
|
||||
"LABEL=\"touchpad_end\"";
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@ libinput:name:*AlpsPS/2 ALPS GlidePoint:fwversion:800
|
|||
libinput:touchpad:input:b0003v05ACp*
|
||||
libinput:touchpad:input:b0005v05ACp*
|
||||
LIBINPUT_MODEL_APPLE_TOUCHPAD=1
|
||||
LIBINPUT_MODEL_PRECISE_TOUCHPAD=1
|
||||
LIBINPUT_ATTR_SIZE_HINT=104x75
|
||||
|
||||
libinput:name:*Apple Inc. Apple Internal Keyboard*:dmi:*
|
||||
|
|
@ -103,7 +102,6 @@ libinput:name:SynPS/2 Synaptics TouchPad:dmi:*svnLENOVO:*:pvrThinkPad??50*:
|
|||
libinput:name:SynPS/2 Synaptics TouchPad:dmi:*svnLENOVO:*:pvrThinkPad??60*:
|
||||
libinput:name:SynPS/2 Synaptics TouchPad:dmi:*svnLENOVO:*:pvrThinkPadX1Carbon3rd:*
|
||||
LIBINPUT_MODEL_LENOVO_T450_TOUCHPAD=1
|
||||
LIBINPUT_MODEL_PRECISE_TOUCHPAD=1
|
||||
|
||||
##########################################
|
||||
# Logitech
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue