10-xppen.hwdb [contents below]
into /etc/udev/hwdb.d
evdev:input:b0003v28BDp0905*
KEYBOARD_KEY_d0045=332
KEYBOARD_KEY_700e0=fn
KEYBOARD_KEY_700e2=fn
KEYBOARD_KEY_70015=256
KEYBOARD_KEY_70018=257
KEYBOARD_KEY_7001c=258
KEYBOARD_KEY_7003c=259
KEYBOARD_KEY_7002d=260
KEYBOARD_KEY_70026=261
KEYBOARD_KEY_70067=262
KEYBOARD_KEY_70066=263
and
xp-pen-dec01.tablet [contents below]
... into /usr/share/libwacom
# XP-Pen
# Deco 01
#
[Device]
Name=XP-Pen Deco 01
ModelName=Deco01v2
DeviceMatch=usb
Class=Bamboo
Width=10
Height=6
IntegratedIn=
Layout=xp-pen-star03.svg
Styli=0xffffd;
[Features]
Stylus=true
Reversible=true
Touch=false
Buttons=8
[Buttons]
Left=A;B;C;D;E;F;G;H;
EvdevCodes=0x100;0x101;0x102;0x103;0x104;0x105;0x106;0x107
In Krita, need to configure tablet settings to 'use mouse events for right- and middle- clicks'.
I'd seen this information on a digimend thread, so just passing it along.
Also, I've used Paint Tool Sai 2 previously; for anyone wanting to install it, there's an excellent video on how to install it using Playonlinux, + tip of manually resizing the window, thus cursor arrow stays centred under pen tip ... https://yewtu.be/watch?v=S14BLN8Z5PY (and he's using XP-Pen Deco Pro with no issues). I think it was Sai2 where removing the Alt+Space system shortcut was necessary too, in order to not interfere with shortcuts in Sai2.