Bug 310670 - Assigning tablet buttons does not work for my wacom bamboo fun tablet.
Summary: Assigning tablet buttons does not work for my wacom bamboo fun tablet.
Status: RESOLVED FIXED
Alias: None
Product: wacomtablet
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: 1.3.7
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Jörg Ehrichs
URL:
Keywords: investigated, triaged
Depends on:
Blocks:
 
Reported: 2012-11-25 20:06 UTC by Anders Lund
Modified: 2018-09-19 14:40 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Lund 2012-11-25 20:06:34 UTC
I assigned various actions for the tablet buttons, a shortcut, a modifier or a button, but neither works.

For the button and shortcut the kcm shows correct values, but for the modified, the text below the button to assign an action reads "activate widget 21"

Reproducible: Always
Comment 1 Anders Lund 2012-11-25 21:14:49 UTC
I took a look at the README file for the package, and tried with xsetwacom, and find this output:

[anders@katja kcm-wacomtablet]$ xsetwacom get 13 button 8
key +Control_L 
[anders@katja kcm-wacomtablet]$ xsetwacom get 13 button 9
key +Shift_L 
[anders@katja kcm-wacomtablet]$ xsetwacom get 13 button 3
key +Control_L +z -z 
[anders@katja kcm-wacomtablet]$ xsetwacom get 13 button 1
button +1

That looks correct to me, but placing the curson over a ui button and then  clicking the button 4 does not work, neither does clicking button 1 lead to "undo", which is the kde action assigned to "ctrl + z" in applications. In krita, ctrl + drag and shift + drag is very useful, but also does not work with the tablet buttons.
Comment 2 Anders Lund 2012-11-25 21:32:21 UTC
I installed xev, and the pad buttons does not produce any output. The other devices  - stylus, touch - does.
Comment 3 Anders Lund 2012-11-26 07:47:04 UTC
My device is in the device file, the one with tabletid 00d3. How can I know if the kded module is enabled?
Comment 4 Jörg Ehrichs 2012-11-26 08:31:10 UTC
(In reply to comment #3)
> My device is in the device file, the one with tabletid 00d3. How can I know
> if the kded module is enabled?

If you see a notification when you insert/remove your tablet, or if the kcm settings module does not complain about the missing kded, than it is working.

But it looks like the naming sheme of the keystrokes are wrong at the moment.
CONTROL_L must be lctrl
Comment 5 Anders Lund 2012-11-26 09:48:55 UTC
Mandag den 26. november 2012 08:31:10 skrev du:
> --- Comment #4 from Jörg Ehrichs <Joerg.Ehrichs@gmx.de> ---
> (In reply to comment #3)
> 
> > My device is in the device file, the one with tabletid 00d3. How can I
> > know
> > if the kded module is enabled?
> 
> If you see a notification when you insert/remove your tablet, or if the kcm
> settings module does not complain about the missing kded, than it is
> working.

Then it is running :)

> But it looks like the naming sheme of the keystrokes are wrong at the
> moment. CONTROL_L must be lctrl

Anything I can do to correct that?
Comment 6 Anders Lund 2012-11-26 14:35:29 UTC
Tried with the git version. There, the kcm looks better, but the buttons does 
still not work.
Comment 7 Jörg Ehrichs 2013-01-22 09:50:13 UTC
Hi,

its been a while but I found time to debug this.
It looks a lot like the problems are the changing button assignment in the wacom driver (so button 1 is rarely hwbutton1)

For my Bamboo (MTE-450) the current entry in the wacom_devicelist looks like this:


[0065]
model=MTE_450
layout=bl_6
name=Wacom Bamboo
padbuttons=4
wheel=no
touchring=yes
touchstripl=no
touchstripr=no
hwbutton1=8
hwbutton2=1
hwbutton3=9
hwbutton4=3


So I have mapped the physical button 1 (as seen on the image in the kcm) to the xserver button 8
and so on.

Now if I set stuff like CTRL / SHIFT or CTRL+Z it works again like a charm (tried with latest master from my wacom kcm and the latest Krita release)

So in case you still have troubles with the buttons. You should remove the wacom kded, run xev and check which buttons a really pressed for your tablet and change the wacom_devicelist file accordingly.

On the back of your tablet is the correct Model Number which you should find in the devicelist file too. Just add the hwbuttox=Y lines and disconnect/reconnect the tablet again.

And please send me your changes once it is working again
Comment 8 Anders Lund 2013-01-22 09:57:58 UTC
I have currently mapped buttons to x, shift, ctrl and e, and everything works
Comment 9 Andrew Crouthamel 2018-09-19 14:40:51 UTC
This bug has had its resolution changed, but accidentally has been left in NEEDSINFO status. I am thus closing this bug and setting the status as RESOLVED to reflect the resolution change.