[REGRESSION][BISECTED] YOGA 7 pencil only show up as eraser since 9c2913b962da

From: Christian Heusel
Date: Tue Oct 08 2024 - 06:20:23 EST


Hello everyone,

Daniel (in CC) as well as the Arch forum user "ls" report a regression
with the pen of their Yoga 7 2-in-1 14AHP9 Laptop that leads to it being
always recognized as an eraser:

$ libinput debug-tablet
Tool: eraser serial 0x80e51447, id 0x219

$ evtest /dev/input/event6
type 1 (EV_KEY), code 321 (BTN_TOOL_RUBBER), value 0

While the expected output with a previous kernel version (6.10.y stable
series) is the following:

$ libinput debug-tablet
Tool: pen serial 0x80e51447, id 0x219

$ evtest /dev/input/event6
type 1 (EV_KEY), code 320 (BTN_TOOL_PEN), value 0

We have bisected the issue together in the mainline tree and found that
the following commit has introduced this behaviour:

9c2913b962da ("HID: wacom: more appropriate tool type categorization")

If any more debug information is needed or there are preliminary patches
to test we're happy to help!
If there is a fix found for this issue it would be nice if you could
credit us as follows:

Reported-by: Daniel Jutz <daniel@xxxxxxxxx>
Bisected-by: Christian Heusel <christian@xxxxxxxxx>

Cheers,
Chris

---

#regzbot link: https://bbs.archlinux.org/viewtopic.php?id=300005
#regzbot introduced: 9c2913b962da
#regzbot title: HID/wacom: Yoga 7 Pen always detected as eraser

Attachment: signature.asc
Description: PGP signature