Touchscreen stops working after using pen
Summary
The touchscreen works properly. But once the pen is used, it no longer responds to touch (even a while after removing the pen). Disabling and re-enabling the touchscreen with xinput
makes it work again, but the same thing happens. Interestingly, switching to another virtual terminal and back also seems to make it start working again.
The same behavior occurs both in X with xf86-input-libinput
and in Wayland (specifically Sway 1.0).
libinput record
shows that the touches are still being detected.
libinput debug-events
displays the same behavior as X or Wayland, but with regard to the first time the pen is used after starting it. Which seems like the expected behavior if the issue is indeed in libinput
.
This bug report on the Ubuntu bug tracker seems to relate to the same issue: https://bugs.launchpad.net/ubuntu/+source/xinput/+bug/1768169
The obvious interpretation is a bug in the "Stylus-touch arbitration" mentioned in the documentation. I've looked at the code but can't see where that's implemented.
libinput version you encountered the bug on
1.13.0
Hardware information:
HP Spectre x360 Convertible 13-ap0xxx
Other log output:
-
libinput record
output, on the touchscreen: record-touch -
libinput record
output, on the pen: record-pen -
libinput debug-events --verbose
output: debug-events
The libinput debug-events
output is from touching the screen once with a finger, then with the pen, then with a finger (not registered), then pressing Ctrl-C. The libinput record
outputs are just a bunch of random presses on the screen with a finger and with the pen, respectively. I don't know if this is the most useful, but of course I can try something else if it helps.