XP-Pen 22R Stylus Pen Issues
Summary
I'm hitting a couple of issues regarding my XP-Pen Artist 22R Pro, which works great except for two key issues:
- The second stylus button does not function
- In certain situations, the second stylus button actually freezes all tablet input (possibly related to #839 (closed)?)
The crux of the issue seems to be that the tablet is reporting the second stylus button as BTN_TOUCH
which is obviously wrong, it should be BTN_STYLUS2
. I think this is also why pressing the button may cause the event stream to freeze like in the linked issue, due to it thinking the stylus is eternally "down". I have developed a patch that shoddily remaps BTN_TOUCH
to it's proper BTN_STYLUS2
counterpart using event injection, however this might be not ideal. Maybe the better solution is to implement a tablet driver to emit the proper events but this seems kind of overkill when it works fine otherwise.
I'll keep working on the patch to implement the event injection quirk, but I wonder if anyone has any suggestions on what might be the better solution.
Steps to reproduce
- Attach the XP-Pen Artist 22R Pro.
- Use the tablet like normally, all buttons except for the second stylus button.
- Press the second stylus button, and observe no results.
Required information
- libinput version: 1.21.0
- hardware information: XP-Pen Artist 22R Pro
-
libinput record
output: input_record_regular.txt input_record_bad.txt -
libinput debug-events --verbose
output: debug-events-good.txt debug-events-bad.txt
I have attached logs for the regular button press and the bad, second stylus button press. As you can see, it only reports BTN_TOUCH
and no BTN_STYLUS
.