ELAN0732:00 04F3:24DB/HP Tilt Pen support in libinput is incomplete
Summary
Hello,
I am using above configuration in my HP Spectre x360 13-ac033ng (KabyLake, 2017) on ArchLinux and libinput 1.14.3-1
This stylus' functions are supposed to be
- the tip
- the eraser
- one button at the side
- one grenade button (being the eraser)
- pressure
- tilt when bluetooth is activated
- a "presenter mode", where the pen acts as a mouse using an internal accelerometer (also requires bluetooth)
+not really related, but an issue nonetheless 8. rotation when pc is being turned
So, except for 1 and 3, none of this seems to work. (...though, pressure (5) seems to work, but I could not figure out how to use it in GIMP, which also just worked when using libwacom)
I recently got it to work much better using the libwacom driver (after fiddling around in the xorg.conf), when filing a bug there, I was told that libinput should support it just as well and I should file a bug here as well.
With the Wacom driver, I 1-5 all seem to work fine, making this device usable for the first time.
$ xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ ELAN0732:00 04F3:24DB id=10 [slave pointer (2)]
⎜ ↳ Synaptics TM3257-001 id=14 [slave pointer (2)]
⎜ ↳ ELAN0732:00 04F3:24DB Pen (0) id=17 [slave pointer (2)]
⎜ ↳ HP Tilt Pen Mouse id=19 [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)]
↳ Power Button id=8 [slave keyboard (3)]
↳ HP TrueVision FHD RGB-IR: HP Tr id=9 [slave keyboard (3)]
↳ ELAN0732:00 04F3:24DB id=11 [slave keyboard (3)]
↳ Intel Virtual Button driver id=12 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=13 [slave keyboard (3)]
↳ HP Wireless hotkeys id=15 [slave keyboard (3)]
↳ HP WMI hotkeys id=16 [slave keyboard (3)]
↳ HP Tilt Pen Keyboard id=18 [slave keyboard (3)]`
When comparing this to the the output when libwacom is in use, I do not see the eraser, which then recognizes as separate device.
The "presenter mouse" which I assume to be the "HP Tilt Pen Mouse" does not seem to do anything (I had it working on both my android phone and the alternative operating system at work)
The ELAN0732:00 04F3:24DB also reacts to finger touch, which is working fine (including no 8), funny enough, when using the wacom driver, the stylus input is rotated fine, but finger input is not - the behavior is reverse when using the libinput driver.
I realize these are many issues all at once. But it is very hard to get any information on this combination, so I just wanted to give an overview and see if there are maybe any low-hanging-fruits.
Steps to reproduce
libinput version you encountered the bug on
libinput 1.14.3-1 /ArchLinux
Hardware information:
ELAN0732:00 04F3:24DB
HP Tilt Pen
HP Spectre x360 13-ac033ng (KabyLake, 2017)
Other log output:
-
libinput record
output: -
libinput record
output: HPTiltPen.zip