LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   wacom: change map buttons settings? (https://www.linuxquestions.org/questions/linux-hardware-18/wacom-change-map-buttons-settings-439673/)

demiansan 04-28-2006 07:33 AM

wacom: change map buttons settings?
 
After looking a lot around the web (google, linuxwacom's website, ...) and here too... I've found that maybe i should try asking a bit :)

I've got a MacMini G4 with both "linux DebianPPC" and "Mac OS 10.4" installed, a "wacom Graphire2 USB", a "wireless Logitech keyboard and mouse", a more tecnojunk :cool:

Everything is working nice and smoth but my problem is that: I want to change the buttons settings from the wacom tablet that comes by default, to another setting, let me explain this a bit more visual: this is the pen (in asci art).

/_\ --> Button 4 (eraser)
| |
| |
| |
| |
| /\ --> Button 3 (middle click)
|| /
||/
||\
| \/ --> Button 2 (right click)
| |
\/ --> Button 1 (click)

Then, the thing is:
- button 1 leave as is
- set button 2 to "middle click"
- set button 3 to "right click"
- button 4 is broken in my pen, ignored.

The thing is simple but i didn't get any result.

Thanks in advance for any answer.

ioerror 04-28-2006 08:19 AM

Have a look here http://www.tldp.org/HOWTO/Wacom-Tablet-HOWTO.html and/or here http://www.tldp.org/HOWTO/Wacom-USB-mini-HOWTO.html

demiansan 04-30-2006 03:49 AM

Quote:

Have a look here...
Thanks, but that function is not permanent, if i reboot the system, the changes are gone and set to default again.

I would like it to be changed forever.

ioerror 04-30-2006 04:32 AM

Quote:

Thanks, but that function is not permanent,
I'm not sure what you mean by this. What function? The configuration should be in your xorg.conf, which is permanent.

Quote:

I would like it to be changed forever.
Forever? I think entropy may have something to say about that!! :D

demiansan 04-30-2006 02:08 PM

Quote:

Originally Posted by ioerror
I'm not sure what you mean by this. What function? The configuration should be in your xorg.conf, which is permanent.

Woops! My fault, sorry :P
I should say that the only section that tells you how to change the buttons mapping (6.4 Button Mapping with xmodmap for Devices in Core Mode), is only for the actual session, if you log out or reboot, the changes are gone, and in the other side it disables any other mouse.

I also used this "options" for wacom in "stylus" section, inside xorg.conf (corrected thanks to lanjoe9):
Option "Buttons1" "1"
Option "Buttons2" "3"
Option "Buttons3" "2"
Option "Buttons4" "4"

And nothing.

Quote:

Forever? I think entropy may have something to say about that!! :D
YES, IT MUST BE FOREVER WUAHAHAHAHA.

Sorry again :P

Anyway thanks for your attention.

ioerror 04-30-2006 04:26 PM

I swapped the buttons on my old (serial) wacom, but I'm not at home at the moment so I don't have the config handy. I'll post the relevant bits when I get a chance, if you haven't figured it out in the mean time.

demiansan 05-20-2006 09:30 AM

Quote:

Originally Posted by ioerror
I swapped the buttons on my old (serial) wacom, but I'm not at home at the moment so I don't have the config handy. I'll post the relevant bits when I get a chance, if you haven't figured it out in the mean time.

I'm still waiting.

In my side i didn't got any kind of new info about this.

demiansan 09-27-2006 03:18 PM

Finally Works!!
 
Here are my "Sections"
Quote:

Section "InputDevice"
Identifier "L.mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mouse#"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
Identifier "stylus"
Driver "wacom"
Option "Type" "stylus"
OptIon "Device" "/dev/input/event#"
Option "USB" "on"
Option "Mode" "Absolute"
EndSection

Section "InputDevice"
Identifier "cursor"
Driver "wacom"
Option "Type" "cursor"
Option "Device" "/dev/input/event#"
Option "USB" "on"
Option "Mode" "Relative"
EndSection
Quote:

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Monitor"
InputDevice "Keyboard"
InputDevice "L.mouse"
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
EndSection
It's important to change # by the input number that is registered while the system boots or when the tablet is pluged, and also for the ps2/usb mouse (not the "wacom mouse") DO NOT LEAVE IT AS "dev/input/mice", change it to "dev/input/input#" or "/dev/input/mouse#".

For testing i recommend this steps:

1-Have installed a simple window manager if possible (fluxbox, enlightment, etc...), if not then its OK.

2-Start 2 console logins (don't login from xdm, gdm or kdm, close them becouse we don't want any X session running right now), one as a normal user, and the other as root.

3-As root start editing the /etc/X11/xorg.conf file with the editor you like more (vim, nvi, emacs, nano, pico...)

4-Add and/or change the appropriate lines and save, don't exit the editor.

5-As normal user type "startx" and press enter, check mouse and wacom pen, if something doesn't work, exit the X session and repeat step 4.


And that's it. YAY!!
Many thanks for ioerror, for his tips and answers.
Till next time, see ya.

lanjoe9 10-18-2006 12:23 AM

Quote:

Originally Posted by demiansan

I also used this "options" for wacom in "stylus" section, inside xorg.conf:
"Option" "Buttons1" "1"
"Option" "Buttons2" "3"
"Option" "Buttons3" "2"
"Option" "Buttons4" "4"

And nothing.
.

I just found out a few minutes ago (after spending the whole afternoon searching for it, trying to compile the driver, several hundred modmap/xinput trials, etc..):

It should have been
Quote:

Option "Button2" "3"
Option "Button3" "2"
D'oh!
Oh well, at least it works the way I want it to, now.

I'm using FreeBSD 6.1, to see more info on how I got it working, see the linuxWacom post number 3965160, just concatenate the next strings (I can't post links to other sites, yet ¬_¬*):

sourceforge
.net/forum/
message.php?msg_id=3965160

demiansan 10-22-2006 12:40 PM

wops...
 
Quote:

Originally Posted by lanjoe9
I just found out a few minutes ago (after spending the whole afternoon searching for it, trying to compile the driver, several hundred modmap/xinput trials, etc..):

It should have been


D'oh!
Oh well, at least it works the way I want it to, now...

Yep, it was my error :p , must correct it now.

Thank you making me notice it ;)

lanjoe9 10-22-2006 11:24 PM

Xorg
 
I think we need better Xorg documentation... this should have taken like two seconds, but instead it took me several hours. Just because it's not documented..

The man page (at least in *BSD 6.1) is incomplete.. most of the things I've learnt have been just a few configuration lines from here and there... but most wikis I've found seem too technical: I end up knowing about the internal structure of the server, without knowing the specific option I want..

bkorb 01-14-2009 12:45 PM

Only hours?
 
Quote:

Originally Posted by lanjoe9 (Post 2473764)
I think we need better Xorg documentation... this should have taken like two seconds, but instead it took me several hours.

It took me days on end the first time. Things have been fine for 5 months now. Unfortunately, I rebooted my machine and now I cannot get button-2 any more. Oh, where is that page that told me how to see what is happening with the mouse interrupt data.....

demiansan 01-17-2009 03:33 AM

Quote:

Originally Posted by bkorb (Post 3408567)
It took me days on end the first time. Things have been fine for 5 months now. Unfortunately, I rebooted my machine and now I cannot get button-2 any more. Oh, where is that page that told me how to see what is happening with the mouse interrupt data.....

Maybe is the "xev" command? it's like a "X Event Tester" that reports any action you do inside the white window (typing and clicking).

I'm not quite sure if it is this what you are looking for.

In any case, google is a good friend ;)

bkorb 01-17-2009 11:43 PM

Thank you. I found that. I use Google. It's how I got here. :)

I determined that button-2 and button-8 are not being reported. If I stop the 2 and 8 button exchange, then button 2 is seen and I can paste again. As long as I don't accidentally scroll to the wrong place while pressing the scroll wheel. (A remarkably stupid design.) Anyway, more gory details are here:

http://www.linuxquestions.org/questi...ported-697312/


All times are GMT -5. The time now is 02:20 PM.