Pen rotation axis does not work on Wayland

Type of device : graphics tablet/display tablet
Brand and version of the device: Wacom Cintiq 16, Wacom Art Pen.
System : Arch Linux, Wayland, kde, nvidia proprietary drivers.

Rotation input is ignored. Tilt, pressure and position do register correctly. Works on xorg but doesnt on wayland.

Way to reproduce: Run krita on kde(wayland) and try brush that have rotation axis.
Expected behavior: Brush rotates with roll of the pen.
Observed behavior: No rotation happening.

This is not only Krita problem it’s that Wayland uses a different driver than xsetwacom and xinput/libwacom. It still has spotty support for graphic tablets and lacks behind the Wacom one on X, often it’s even just recognized as a touch pad. In addition Krita is not ported to Wayland and runs in x-compatibility mode, some sensor signals may get lost in the process. This is a known issue, as far as I’m aware.

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

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.