Bug 405582 - Incorrect hardware button mapping for Express Keys - Wacom Intuos BT S
Summary: Incorrect hardware button mapping for Express Keys - Wacom Intuos BT S
Status: RESOLVED FIXED
Alias: None
Product: wacomtablet
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Valerii Malov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-18 02:28 UTC by Ian
Modified: 2019-06-27 16:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian 2019-03-18 02:28:10 UTC
SUMMARY
Using the Wacom Tablet Finder app, I am not able to correctly map the last button (Hardware Button 8) to the 4th Express Key.


STEPS TO REPRODUCE
1. Get a Wacom Intuos BT S
2. Install kcm-wacomtablet 3.1.1 & Plug the wacom tablet
3. Open the Wacom Tablet finder app
4. Refresh the list and select device Wacom Intuos BT S
5. Set Express Keys number to 4
6. Map hardware keys (hwbutton 1 = button 1, hwbutton 2 = button 2, hwbutton 3 = button 3, hwbutton 8 = button 4)
7. Save the configuration
8. Refresh the list of devices
9. The hardware button mappings is now (hwbutton 1 = button 1, hwbutton 2 = button 2, hwbutton 3 = button 3, hwbutton 4 = button 4)

OBSERVED RESULT
The hardware button mappings are changed and the hardware button 8 is gone.

EXPECTED RESULT
The hardware button 8 should be mapped to the button 4.


SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.15.3
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.2
Kernel Version: 5.0.2-arch1-1-ARCH
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-8650U CPU @ 1.90GHz
Memory: 15.4 GiB of RAM


ADDITIONAL INFORMATION
I can correctly configure the hardware button 8 to the expected action using the command `xsetwacom set "Wacom Intuos BT S Pad pad" Button 8 "button +5"`.
Comment 1 Valerii Malov 2019-03-29 13:28:03 UTC
Hi, could you please share:
* USB ID of your tablet. Run "lsusb | grep Wacom" and share the output.
* Version of libwacom library installed in the system
Comment 2 MILAS Robin 2019-03-31 17:32:38 UTC
I've had the same trouble.
However I'm not able to reproduce anymore :/ (Only happened the first time, no update between)
I've got however another strange problem maybe linked to that.
In the configuration interface when I bind my express key it says
1->1
2->3
3->2
4->8

However when I log again and configure
Button 1 -> A
Button 2 -> B
Button 3 -> C
Button 4 -> D

My button 2 and 3 are inverted

Configuration:
"lsusb | grep Wacom" -> "Bus 001 Device 006: ID 056a:0376 Wacom Co., Ltd".
libwacom2-0.29-1
Comment 3 Valerii Malov 2019-04-02 14:48:19 UTC
I'm checking libwacom database and according to https://github.com/linuxwacom/libwacom/commit/e19147988aed8d42de72e980e6d47d4b6f473044

056a:0376 doesn't have unusual button mapping, i.e. buttons *should* be 1/2/3/4, so detecting express key 4 as hw button 8 might be an error on tabletfinder part (or previous mapping setting interfering with it).

Can you update libwacom to 0.30 or newer via package manager and remove your ~/.config/tabletdblocalrc file? This *should* provide correct mapping out of the box, without the need for tabletfinder.
Comment 4 MILAS Robin 2019-04-03 18:40:19 UTC
I'm sorry but I'm unable to try the latest version of libwacom with KDE.
Under KDE neon a lot of package depend upon 0.29 installing 0.32 by forcing broke my X Server.
I was able to run Kubuntu 19.04 beta :/
Comment 5 MILAS Robin 2019-04-03 18:40:54 UTC
*And I wasn't able to run Kubuntu 19.04 beta :/
Comment 6 Christoph Feck 2019-04-25 10:08:30 UTC
Kubuntu 19.04 is now released, could you re-test?
Comment 7 MILAS Robin 2019-05-21 22:12:12 UTC
I finally arrived (VM was my only way) to launch Kubuntu 19.04
The result is the same but preconfigured.
I mean that by only connecting the tablet and binding key 1234 to corresponding numbers.
I get 1_24 when pressing button from left to right.
Comment 8 Valerii Malov 2019-06-18 21:36:23 UTC
Hi, could you please test the following device description

[0376]
model=CTL-4100WL
name=Wacom Intuos BT S
padbuttons=4
wheel=no
touchring=no
touchstripl=no
touchstripr=no
hwbutton1=1
hwbutton2=2
hwbutton3=3
hwbutton4=8

To do so you have put this in a file ~/.config/tabletdblocalrc, e.g. open it any text editor you use

$ kate ~/.config/tabletdblocalrc

and paste the content above into the file. If you already have a section for [0376], replace it with the content above. Then restart wacom service it via System Settings -> Startup and Shutdown -> Background Services -> Wacom Tablet and click Stop and then Start (or just re-login into Plasma session).
Comment 9 MILAS Robin 2019-06-26 22:58:28 UTC
It fix the problem
Comment 10 MILAS Robin 2019-06-26 22:59:52 UTC
However I think it wouold be great that every user of this kind of tablet doesn't have to do that.
Comment 11 Valerii Malov 2019-06-27 16:34:01 UTC
Git commit fcb003a2525e659dd9f936743ac23d6defa1e729 by Valerii Malov.
Committed on 27/06/2019 at 16:31.
Pushed by valeriymalov into branch 'master'.

Add mapping for Wacom Intuos BT S

Based on the mappings provided by Stefano Guidoni for larger tablets

M  +14   -0    data/wacom_devicelist

https://commits.kde.org/wacomtablet/fcb003a2525e659dd9f936743ac23d6defa1e729