I just bought a Lenovo ThinkPad X1 Yoga, which has a Wacom touchscreen and stylus.
They both work well-ish, but I want to remap buttons on the pen and the long press behavior. In previous Ubuntu releases you could just go to Wacom tablet in settings and change everything there, but now it says I don't have neither a stylus or a tablet. It's funny that the Test my settings popup actually detects the stylus
xinput shows all the input devices correctly:
$ xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Wacom Co.,Ltd. Pen and multitouch sensor Finger id=9 [slave pointer (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=13 [slave pointer (2)]
⎜ ↳ TPPS/2 IBM TrackPoint id=14 [slave pointer (2)]
⎜ ↳ Wacom Co.,Ltd. Pen and multitouch sensor Pen Pen (0) id=16 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Sleep Button id=8 [slave keyboard (3)]
↳ Wacom Co.,Ltd. Pen and multitouch sensor Pen id=10 [slave keyboard (3)]
↳ Integrated Camera id=11 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=12 [slave keyboard (3)]
↳ ThinkPad Extra Buttons id=15 [slave keyboard (3)]
It seems it's using libinput for everything (and I think that may be the issue):
$ journalctl --boot | grep -e "Using input driver 'libinput'"
(II) Using input driver 'libinput' for 'Power Button'
(II) Using input driver 'libinput' for 'Video Bus'
(II) Using input driver 'libinput' for 'Sleep Button'
(II) Using input driver 'libinput' for 'Wacom Co.,Ltd. Pen and multitouch sensor Finger'
(II) Using input driver 'libinput' for 'Wacom Co.,Ltd. Pen and multitouch sensor Pen'
(II) Using input driver 'libinput' for 'Integrated Camera'
(II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
(II) Using input driver 'libinput' for 'SynPS/2 Synaptics TouchPad'
(II) Using input driver 'libinput' for 'TPPS/2 IBM TrackPoint'
(II) Using input driver 'libinput' for 'ThinkPad Extra Buttons'
(II) Using input driver 'libinput' for 'Wacom Co.,Ltd. Pen and multitouch sensor Pen Pen (0)'
(II) Using input driver 'libinput' for 'Wacom Co.,Ltd. Pen and multitouch sensor Pen Eraser (0x96d2bb6c'
Note that I tried to install the old xserver-xorg-input-wacom but touchscreen wouldn't work anymore (just the pen), and configuration in settings didn't work anyway. A friend of mine, who could configure it just fine on Ubuntu 16.04, after upgrading is having the same issue on an HP convertible laptop.
Is there any other way I can remap buttons and configure its behavior?


