ModelTabletModeNoSuspend=1 is currently only honored for keyboards, but not touchpads...
authorThomas Sailer <t.sailer@alumni.ethz.ch>
Thu, 3 Jan 2019 01:22:21 +0000 (02:22 +0100)
committerThomas Sailer <t.sailer@alumni.ethz.ch>
Thu, 3 Jan 2019 09:15:14 +0000 (10:15 +0100)
src/evdev-mt-touchpad.c

index b1a3632f5fce584c9b3f4a31df50316f02e63827..650a193e779258f7c07acb6b53eacc73690ac2e6 100644 (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,