Bug 1362206

Summary: With wayland, pen of Thinkpad Yoga 260 doesn't work
Product: [Fedora] Fedora Reporter: ell1e <el>
Component: waylandAssignee: Adam Jackson <ajax>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 25CC: ajax, auroux, bperkins, rderooy, redhat-bugzilla, steven.nfd+rhb
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-09 07:49:32 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:

Description ell1e 2016-08-01 14:21:39 UTC
Description of problem:
With wayland, the pen of Thinkpad Yoga 260 doesn't work. It's simply as if it isn't recognized at all, no clicks or any sort of events seem to result in anything happening ever. Under X11, it works fine.

Version-Release number of selected component (if applicable):
Wayland compositor used is GNOME Shell 3.20.3

How reproducible:
100%

Steps to Reproduce:
1. Start GNOME Wayland session instead of X11
2. Try to use pen to click things or in applicaitons like GIMP or xournal

Actual results:
doesn't work

Expected results:
works

Additional info:

Comment 1 Steven D. 2016-11-29 19:33:32 UTC
I have the same issue on my 260. The pen didn't work for me in Xournal, but it did work in general (for moving windows around for example). Maybe this is a problem with Xournal?

Comment 2 Denis Auroux 2016-11-30 16:06:15 UTC
Wacom pen support seems to be broken on wayland, and in general the X input device emulation on wayland is not good, for GTK2 applications at least. As noted by the original poster, GIMP is affected as well -- it's not specifically a xournal or gimp issue.  

There is no current solution to this problem as far as I know, apart from asking for wacom support and more generally X input device emulation support on wayland in a way that doesn't break GTK2 applications. 

In principle the libinput component of wayland is supposed to know how to handle wacom tablets, but in practice that knowledge does not seem to reach X-based applications. It could be that GTK3 over Wayland backend can get tablet input better than GTK over X11 backend with X11-over-Wayland, but since xournal uses GTK2 that doesn't help us. 

Denis

Comment 3 ell1e 2016-12-04 15:56:13 UTC
Under Fedora 25 with default GNOME Wayland, it has gotten slightly better:

The following works:
- Moving windows around with the titlebars
- Everything in gedit (clicking buttons and selecting stuff)

The following doesn't work at all:
- Clicking or interacting in any way inside firefox
- Same for gajim
- Same for xournal
- Same for GIMP 2.8

... sadly this means the pen doesn't work for more than half the regular applications I need, and specifically those where you would really WANT to use it (xournal, GIMP) don't work.

Given Wayland is the default now, maybe some time should be spent to fixing this?

Comment 4 ell1e 2017-01-14 19:53:34 UTC
I just filed an upstream bug report here: https://bugs.freedesktop.org/show_bug.cgi?id=99411

Comment 5 Robert de Rooy 2017-03-09 07:49:32 UTC

*** This bug has been marked as a duplicate of bug 1397898 ***