Pen rotation axis does not work on Wayland

Spend quite some time trying to find a fix, at this point my suspicion is that this issue has something to do either with xwayland what is used by krita on wayland sessions OR with libinput not registering it. Most likely that libinput works correctly, as libinput record shows:

- [  1, 517763,   3,   1,    8804] # EV_ABS / ABS_Y                  8804 (-935)
- [  1, 517763,   3,  26,      10] # EV_ABS / ABS_TILT_X               10 (-2)
- [  1, 517763,   3,  27,      -4] # EV_ABS / ABS_TILT_Y               -4 (+3)
- [  1, 517763,   3,   2,     274] # EV_ABS / ABS_Z                   274 (-6)
- [  1, 517763,   3,  25,      57] # EV_ABS / ABS_DISTANCE             57 (+6)

The ABS_Z value does change adequately as i rotate the pen. I have no idea how to debug it further to the xwayland though.

To explain why even try - occasionally get sort of enthusiastic about finding a workflow for what I do without switching back to Windows. I do not like Xorg desktop experience due to its poor performance and crappy support of high refresh rate multi-monitor setups (no vsync/bad response times/tearing/etc) with no way to properly fix it.

A related thread Is there any plans to add Wayland support to Krita?

1 Like