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. ** Bug watch added: gitlab.freedesktop.org/libinput/libinput/issues #261 https://gitlab.freedesktop.org/libinput/libinput/issues/261 -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xinput in Ubuntu. https://bugs.launchpad.net/bugs/1768169 Title: touchscreen doesn't work properly after stylus detection To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xinput/+bug/1768169/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp