ModelTabletModeNoSuspend=1 is currently only honored for keyboards, but not touchpads. This commit changes that.

This commit is contained in:
Thomas Sailer 2019-01-03 02:22:21 +01:00
parent a60b5b0f8f
commit f9ec9b8f8d

View file

@ -2504,6 +2504,10 @@ tp_pair_tablet_mode_switch(struct evdev_device *touchpad,
if (touchpad->tags & EVDEV_TAG_EXTERNAL_TOUCHPAD)
return;
if (evdev_device_has_model_quirk(touchpad,
QUIRK_MODEL_TABLET_MODE_NO_SUSPEND))
return;
evdev_log_debug(touchpad,
"tablet_mode_switch: activated for %s<->%s\n",
touchpad->devname,