xinput does not remap buttons anymore
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xinput (Ubuntu) |
Fix Released
|
Undecided
|
Arno Teigseth |
Bug Description
Binary package hint: xinput
"Right-click" with stylus does not work in feisty but used to in Edgy. This is about a tablet [PC].
I used 'xinput set-button-map 1 3 2' to be able to right-click tappng the stylus while holding down the button on the stylus. It did work in edgy.
I just updated to feisty. I think it worked actually, in the beginning. Sorry I can't tell exactly. The first thing I installed was xinput (had my self-written howto from edgy). But then (update?) suddenly it didn't anymore.
My guess is something bad happened with xinput/wacom cooperation. No matter what order the numbers after 'xinput set-button-map' has, "right-clicking" with the pen always "middle-clicks" (paste the selected text, ususally).
The exit value of xinput is 0 (ok) in all possible combinations of the three values. But the behaviour of the stylus remains the same. Middle-click when holding down the little button, left-click when not.
I would call this a bug. But I don't know in what package, or what to test next. Logs doesn't tell me much.
I had the same problem after upgrading to 7.04, but I think I've found the fix. I can't say I fully understand it, as I am relatively new to linux, but it seems to work.
After comparing my Edgy xorg.conf to my Fiesty xorg.conf (I'll just call them e.conf and f.conf, for simplicity), I noticed a couple of lines missing from f.conf:
====== From: f.conf ======
Section "InputDevice"
Driver "wacom"
Identifier "stylus"
. . .
Option "Button2" "3" # Inserted from e.conf
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "eraser"
. . .
Option "Button1" "2" # Inserted from e.conf
EndSection
====== End file snippet ======
After restarting X, adding the Option "ButtonX" "Y" lines seemed to fix it for me. I can now right-click away.
Hope that helps!.
- Gaiwecoor