Bug 1528356

Summary: No way of mapping buttons on Wacom tablet
Product: Red Hat Enterprise Linux 7 Reporter: Michael Boisvert <mboisver>
Component: control-centerAssignee: Carlos Garnacho <cgarnach>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: urgent Docs Contact:
Priority: high    
Version: 7.5CC: bgollahe, btissoir, cgarnach, jan.public, jkoten, jreznik, mboisver, mclasen, tpelka
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: control-center-3.26.2-4.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1537879 1540790 (view as bug list) Environment:
Last Closed: 2018-04-10 13:10:18 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:
Bug Depends On:    
Bug Blocks: 1527213, 1537879, 1540790    

Description Michael Boisvert 2017-12-21 15:47:23 UTC
Description of problem: There is no way to map buttons within the settings app on (so far) the Intuos 5 (056a:0027). I am assuming this issue effects other tablets as well. Also, no LED mode switching either.  

How reproducible: 100%

Steps to Reproduce:
1. Plug in tablet with pad buttons.
2. Open Wacom settings, click "Tablet" at the top.
3. Observe no button mapping options.

Actual results: No button mapping ability or LED mode switching.

Expected results: Button mapping and LED mode switching.

Additional info: I will add more tablets that share this issue as I test them.

Comment 5 Peter Hutterer 2018-01-18 07:34:30 UTC
confirmed with an Intuos4 and control-center-3.26.2-2.el7.x86_64, but this is a control-center bug, punting to Carlos.

After a bit of hacking around in the source, I've confirmed that:

update_current_page() - tablet->pad is set but tablet->stylus is always NULL. This causes the next loop to hit the

 if (tablet->stylus == NULL) {
   ... 
   continue;
 }

branch and exit early, the tablet page is thus never really set up. I suspect what's displayed is simply the default from the .ui file.

add_known_devices() only seems to be triggered for the pad device, the stylus devices are listed from elsewhere.

And the reason for this is that in panels/common/gsd-device-manager-x11.c:add_device, the device node is used as hashtable key. For RHEL7.x kernels, the pad still sits on the same evdev node as the stylus, the split happened later (3.14 or so). The wacom xorg driver initializes the stylus first so that's the one we get first here too. It gets added, the pad initializes second and the stylus is overwritten in the hashtable because it has the same event node. As a result, the stylus is not available in the device-manager devices list and the above effects take effect, the UI doesn't get initialized correctly.

Comment 10 Michael Boisvert 2018-02-08 20:30:12 UTC
Button mapping through the GUI is now working on all newest versions of mutter, gnome-shell and control-center.

Comment 13 errata-xmlrpc 2018-04-10 13:10:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0770