Hello! I find that on HP Elite x2 1013 G3 attaching keyboard during suspend doesn't change SW_TABLET_MODE state on wakeup. So after wakeup driver doesn't detect SW_TABLET_MODE change. This issue is not reproducible in Windows. More details: https://gitlab.freedesktop.org/libinput/libinput/issues/351#note_215129 Relevant bugreport: Bug 204719
Issue is still reproducible on Linux 5.9rc6.