I had a similar issue with my HP Spectre laptop, and submitted a bug to libinput: https://gitlab.freedesktop.org/libinput/libinput/issues/261
So with libinput, it seems this can be addressed with the "ModelTabletNoProximityOut" quirk; though libinput needs a more general solution to not require explicit per-device patching.
I had a similar issue with my HP Spectre laptop, and submitted a bug to libinput: https:/ /gitlab. freedesktop. org/libinput/ libinput/ issues/ 261
So with libinput, it seems this can be addressed with the "ModelTabletNoP roximityOut" quirk; though libinput needs a more general solution to not require explicit per-device patching.