After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 782027 - "Left-Handed Orientation" switch in Wacom panel does not work
"Left-Handed Orientation" switch in Wacom panel does not work
Status: RESOLVED FIXED
Product: mutter
Classification: Core
Component: general
3.24.x
Other Linux
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2017-05-01 20:36 UTC by Jason Gerecke
Modified: 2017-07-03 12:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
backends/x11: Handle left-handed mode on pen/eraser devices correctly (1.51 KB, patch)
2017-06-16 17:55 UTC, Carlos Garnacho
committed Details | Review
backends: Apply tablet settings on all tablet device types during startup (1.49 KB, patch)
2017-06-30 19:44 UTC, Carlos Garnacho
committed Details | Review

Description Jason Gerecke 2017-05-01 20:36:30 UTC
After upgrading my Arch Linux system from GNOME 3.22 to GNOME 3.24, I've noticed that the "Left-Handed Orientation" switch in the Wacom panel of the GNOME Control Center no longer works. Regardless of if the switch is 'on' or 'off', the tablet continues to behave in a right-handed orientation. I am using an Xorg session, not a Wayland session.

Using `dconf-editor`, I can see that key in dconf (under `/org/gnome/desktop/peripherals/tablets/$VID:$PID/left-handed`) is properly updated. When using `xinput watch-props`, however, I do not see any changes to the "Wacom Rotation" property on any of the X11 tablet devices.

System Info
--------------
Arch Linux
gnome-control-center 3.24.1-1
gnome-settings-daemon 3.24.1+7+g42f75ed4-1
mutter 3.24.1+1+geb394f19d-1
xf86-input-wacom 0.34.2-1
xorg-server 1.19.3-2
Comment 1 Pander 2017-05-25 07:35:57 UTC
Confirmed for Ubuntu 17.04 with GNOME 3.24:
  gnome-control-center        1:3.24.1-0ubuntu1
  gnome-settings-daemon       3.24.1-0ubuntu1
  gnome-shell                 3.24.1-0ubuntu1
  xserver-xorg-input-wacom    1:0.34.0-0ubuntu2
  libwacom-bin                0.22-1

The workaround I found is:
  xsetwacom set `xsetwacom list|grep -i touch|awk -F 'id: ' '{print $2}'|awk '{print $1}'` rotate half
Comment 2 Pander 2017-05-25 07:37:57 UTC
"Studies suggest that approximately 10% of the world population is left-handed." – https://en.wikipedia.org/wiki/Handedness
Comment 3 Carlos Garnacho 2017-06-16 17:55:30 UTC
Created attachment 353913 [details] [review]
backends/x11: Handle left-handed mode on pen/eraser devices correctly

Due to the pen/eraser device separation in X11, CLUTTER_TABLET_DEVICE does
not apply there, this device type is only used in native/evdev. Checking
for CLUTTER_PEN/ERASER_DEVICE makes the left-handed mode correctly applied
on tablets.
Comment 4 Jason Gerecke 2017-06-19 19:11:45 UTC
Confirmed that this seems to do the trick, though I notice that the pen reverts back to right-handed mode after a logout/login. Oddly, as soon as I open the Wacom panel in g-c-c the left-handed setting takes effect.
Comment 5 Carlos Garnacho 2017-06-20 20:15:31 UTC
Comment on attachment 353913 [details] [review]
backends/x11: Handle left-handed mode on pen/eraser devices correctly

Pushed the fix to master and gnome-3-24. I will leave the bug open to investigate the issue on login.

Attachment 353913 [details] pushed as d23275b - backends/x11: Handle left-handed mode on pen/eraser devices correctly
Comment 6 Carlos Garnacho 2017-06-30 19:44:54 UTC
Created attachment 354749 [details] [review]
backends: Apply tablet settings on all tablet device types during startup

This skipped the device types that are in use on X11.
Comment 7 Jason Gerecke 2017-06-30 21:55:45 UTC
Does the trick and looks good to me :)
Comment 8 Carlos Garnacho 2017-07-03 12:42:02 UTC
Fixed in master and gnome-3-24.

Attachment 354749 [details] pushed as ce98997 - backends: Apply tablet settings on all tablet device types during startup