xwayland does not support wacom tablets

Bug #1712571 reported by Rocko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xorg-server (Ubuntu)
Fix Released
Undecided
Timo Aaltonen

Bug Description

When running a session under Wayland, my Wacom tablet does not work properly in applications using xwayland (the cursor moves, but clicking does not work).

This is a known issue that apparently has been fixed in xorg-server 1.20 branch - see the upstream bug at https://bugs.freedesktop.org/show_bug.cgi?id=99411 and also https://bugzilla.redhat.com/show_bug.cgi?id=1397898.

Is xorg-server 1.20 likely to be released in time for Artful or can the wacom patches be backported for xwayland?

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: xwayland 2:1.19.3-1ubuntu3
Uname: Linux 4.13.0-041300rc6-generic x86_64
.tmp.unity_support_test.0:

ApportVersion: 2.20.6-0ubuntu6
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Wed Aug 23 20:59:41 2017
DistUpgraded: 2017-08-17 08:53:31,141 DEBUG Running PostInstallScript: './xorg_fix_proprietary.py'
DistroCodename: artful
DistroVariant: ubuntu
DkmsStatus:
 bbswitch, 0.8, 4.12.0-11-generic, x86_64: installed
 bbswitch, 0.8, 4.13.0-041300rc6-generic, x86_64: installed
 nvidia-384, 384.59, 4.12.0-11-generic, x86_64: installed
 nvidia-384, 384.59, 4.13.0-041300rc6-generic, x86_64: installed
ExtraDebuggingInterest: Yes
GraphicsCard:
 Intel Corporation Device [8086:591b] (rev 04) (prog-if 00 [VGA controller])
   Subsystem: Dell Device [1028:07be]
InstallationDate: Installed on 2017-08-16 (7 days ago)
InstallationMedia: Ubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
JournalErrors:
 Error: command ['journalctl', '-b', '--priority=warning', '--lines=1000'] failed with exit code 1: Hint: You are currently not seeing messages from other users and the system.
       Users in the 'systemd-journal' group can see all messages. Pass -q to
       turn off this notice.
 No journal files were opened due to insufficient permissions.
MachineType: Dell Inc. XPS 15 9560
ProcKernelCmdLine: BOOT_IMAGE=/@/boot/vmlinuz-4.13.0-041300rc6-generic root=UUID=0eb64261-6dff-464a-8373-596794c1fafe ro rootflags=subvol=@ quiet splash acpi_rev_override=5 scsi_mod.use_blk_mq=1 vt.handoff=7
Renderer: Software
SourcePackage: xorg-server
UpgradeStatus: Upgraded to artful on 2017-08-17 (6 days ago)
dmi.bios.date: 06/08/2017
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.3.4
dmi.board.name: 05FFDN
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr1.3.4:bd06/08/2017:svnDellInc.:pnXPS159560:pvr:rvnDellInc.:rn05FFDN:rvrA00:cvnDellInc.:ct10:cvr:
dmi.product.family: XPS
dmi.product.name: XPS 15 9560
dmi.sys.vendor: Dell Inc.
version.compiz: compiz 1:0.9.13.1+17.10.20170720-0ubuntu1
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.82-1
version.libgl1-mesa-dri: libgl1-mesa-dri 17.2.0~rc4-0ubuntu3
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 17.2.0~rc4-0ubuntu3
version.xserver-xorg-core: xserver-xorg-core 2:1.19.3-1ubuntu3
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.9.0-1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20170309-0ubuntu1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.15-2
xserver.bootTime: Thu Aug 17 08:57:12 2017
xserver.configfile: default
xserver.errors:
 open /dev/dri/card0: No such file or directory
 open /dev/dri/card0: No such file or directory
 Screen 0 deleted because of no matching config section.
 AIGLX: reverting to software rendering
xserver.logfile: /var/log/Xorg.0.log
xserver.outputs:

xserver.version: 2:1.19.3-1ubuntu2

Revision history for this message
Rocko (rockorequin) wrote :
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

no, 1.20.0 will be released maybe around Nov/Dec, so too late

I'll check the patches if I can find my tablet somewhere..

Changed in xorg-server (Ubuntu):
assignee: nobody → Timo Aaltonen (tjaalton)
status: New → Triaged
Revision history for this message
Rocko (rockorequin) wrote :

I'm happy to test any patches for you if you can't find your tablet!

Revision history for this message
Rocko (rockorequin) wrote :

Just for fun, I tried applying the 9 patches I found against the xwayland source package and building/installing it (./configure, make, and sudo make install, as per the INSTALL file), but I don't think it installs properly, because "which Xwayland" says "/usr/local/bin/Xwayland", as it should, but even after a full reboot, I appear to be still running the default package:

$ ps xa|grep X
 1578 tty1 Sl+ 0:00 /usr/bin/Xwayland :1024 -rootless -noreset -listen 4 -listen 5 -displayfd 6
 2166 tty2 Sl+ 0:03 /usr/bin/Xwayland :0 -rootless -noreset -listen 4 -listen 5 -displayfd 6

Do you have any hints as to why this is so?

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

I've pushed a test version to ppa:canonical-x/x-staging

the path is hardcoded somewhere, not sure

Revision history for this message
Rocko (rockorequin) wrote :

Cool, the tablet works great now using that test version on Xwayland apps like gimp and firefox and chrome.

It's not quite perfect yet - drag doesn't work with Wayland apps. Using the tablet stylus, I can drag a chrome or firefox window by its menubar, but not nautilus or gnome-terminal. And sometimes after I try to drag, say, nautilus, I can't select the firefox window by clicking on it with the (non-tablet) mouse unless I first click on the nautilus window.

But it works way better than before, thanks.

Revision history for this message
Rocko (rockorequin) wrote :

Also, on wayland apps, the tablet stylus' right click works in the menubar but not the window contents. So if I right-click on gnome-terminal's menubar, I get the window menu, as expected, but if I right-click inside the window, nothing happens (I should instead see the window menu).

I imagine this is a separate bug, though, since it's nothing to do with xwayland.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

I've pushed a new version (3.2) with some more xwayland backports, and some tablet fixes too.

Revision history for this message
Rocko (rockorequin) wrote :

Marvellous, that new version fixes a couple of issues in gimp - right-click drag using the stylus now scrolls, both the mouse and stylus cursor change to the selected tool now, and the mouse now works after using the stylus without having to click on another xwayland app first.

I guess I should log a separate bug against gnome-shell for the wayland apps not working properly with the tablet?

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

yeah probably so, thanks for testing

Revision history for this message
Rocko (rockorequin) wrote :

Actually, it's still not quite perfect in gimp even with version 3.2, eg:

* Open an image
* Select eg the rectangle select tool
* Select an area with the stylus
* At this point, the mouse usually doesn't work any more - eg try and select an area with the mouse or try and select another tool using the mouse.

If you select another app and come back to gimp (either using the mouse or with alt-tab), the mouse works again.

But the tablet is definitely usable now with xwayland apps.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xorg-server - 2:1.19.3-1ubuntu4

---------------
xorg-server (2:1.19.3-1ubuntu4) artful; urgency=medium

  * xwayland-tablet.diff: Add support for Wacom tablets in xwayland.
    (LP: #1712571)
  * xwayland-pointer-confine.diff: Add pointer locking/confinement fixes
    to xwayland.
  * xwayland-add-grab-protocol-support.diff: Add support for keyboard
    grabbing to xwayland. Bump wayland-protocols build-dependency to 1.9.

 -- Timo Aaltonen <email address hidden> Fri, 25 Aug 2017 08:32:17 +0300

Changed in xorg-server (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Casey (casey-jao) wrote :

The implementation looks promising but still seems incomplete. For instance, Xournal still works much better in a real X11 session than under XWayland. In the latter setting, the cursor does not display as the stylus hovers over the tablet so it's not possible to see where one is drawing until one actually applies pressure and and starts inking.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

file a new bug then, and bonus points for filing one upstream too

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.