Bug 1587968

Summary: libinput not handling EV_REL for Wacom tablet pad
Product: [Fedora] Fedora Reporter: Daniel Berrangé <berrange>
Component: libinputAssignee: Peter Hutterer <peter.hutterer>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: berrange, dchen, peter.hutterer
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-08 03:05:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Graphire 4 pad capture
none
Graphire4 Pen capture none

Description Daniel Berrangé 2018-06-06 11:30:43 UTC
Description of problem:
I have a Wacom Graphire 4, 6x8 tablet. The pad has two buttons and a wheel on it.

If I use libinput-debug-events I see an error displayed when using the wheel:

libinput error: event10 - Wacom Graphire4 6x8 Pad: Unexpected event type EV_REL (0x2)
libinput error: event10 - Wacom Graphire4 6x8 Pad: Unexpected event type EV_REL (0x2)
libinput error: event10 - Wacom Graphire4 6x8 Pad: Unexpected event type EV_REL (0x2)
libinput error: event10 - Wacom Graphire4 6x8 Pad: Unexpected event type EV_REL (0x2)

Looking at the source, evdev-tablet-pad.c indeed does not have EV_REL handled, while evdev-tablet.c does handle it.


Version-Release number of selected component (if applicable):
libinput-1.10.7-1.fc28.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Attach Wacom Graphire4 6x8
2. Run libinput-debug-events
3. Scroll the pad wheel

Actual results:


Expected results:


Additional info:

Comment 1 Peter Hutterer 2018-06-06 22:33:22 UTC
Can you attach an evemu-record for that device please? Thanks. Including the wheel motion.

Comment 2 Daniel Berrangé 2018-06-07 10:51:33 UTC
Created attachment 1448672 [details]
Graphire 4 pad capture

Comment 3 Daniel Berrangé 2018-06-07 10:52:03 UTC
Created attachment 1448673 [details]
Graphire4 Pen capture

Comment 4 Daniel Berrangé 2018-06-07 10:53:32 UTC
This tablet results in creation of 2 input event devices. One for the pad and which only generates events for the buttons + wheel on the pad. The other for the pen which generates events for the buttons on the mouse and stylus, as well as the actual pointer motion events.

The first attachment, with the pad events is the one where the wheel doesn't work.

Comment 5 Daniel Berrangé 2018-06-07 10:55:19 UTC
In case it is relevant, my libwacom-data has been augmented with the info I posted in this PR:  https://github.com/linuxwacom/libwacom/pull/23

Comment 6 Peter Hutterer 2018-06-08 03:05:27 UTC
Thanks for the evemu. This isn't something we'll fix in Fedora directly, I'm moving this to upstream. 

https://gitlab.freedesktop.org/libinput/libinput/issues/33

Am I correct in that this device is 12 years old? I think it came out in 2006, right?

Comment 7 Daniel Berrangé 2018-06-08 08:37:08 UTC
Yes, it is very old - I can't remember exactly when I got it, but it was probably sometime around 2008. Still works fine though :-)