Hi htrex,
Good question. I don't know how.would you please post an example of how to define buttons in 10-wacom.conf?
If you use:
Below 'Driver "wacom"' that will make the first stylus button (ignoring the tip which by default is button1 and left click) a right click. But that won't apply to the pad. For xsetwacom you would use something like:Code:Option "Button2" "3"
Using your device/tablet name from 'xinput --list.Code:xsetwacom set "Wacom Bamboo Craft Finger pad" button1 "core key CONTROL z" xsetwacom set "Wacom Bamboo Craft Finger pad" button2 "core key CONTROL y" xsetwacom set "Wacom Bamboo Craft Finger pad" button3 "core key o" xsetwacom set "Wacom Bamboo Craft Finger pad" button4 "core key p"
In the xorg.conf to the pad section that would translate to:
So how to do it in 10-wacom.conf? Can we make a match line that picks out the pad? Say something like:Code:Option "Button1" "core key CONTROL z" Option "Button2" "core key CONTROL y" Option "Button3" "core key o" Option "Button4" "core key p"
Don't know if that will actually pull out pad. May have to look at udevadm info to figure it out and the cases. The button options would then go below the pad line. Would that all go below the 'Driver "wacom"' line or above it? Alternatively maybe a new snippet for the pad:Code:MatchProduct "pad|Pad|PAD"
If you want to play with it remember to back up your current working 10-wacom.conf and be prepared to restore it from the command line if you break X.Code:Section "InputClass" Identifier "Wacom class" # WALTOP needs a patched kernel driver, that isn't in mainline lk yet, # so for now just let it fall through and be picked up by evdev instead. # MatchProduct "Wacom|WALTOP|WACOM" MatchProduct "Wacom|WACOM" MatchDevicePath "/dev/input/event*" Driver "wacom" EndSection Section "InputClass" Identifier "Wacom pad" MatchProduct "Wacom|WACOM|pad|Pad|PAD" MatchDevicePath "/dev/input/event*" Driver "wacom" Option "Button1" "core key CONTROL z" Option "Button2" "core key CONTROL y" Option "Button3" "core key o" Option "Button4" "core key p" EndSection etc.
The list of available button key settings for pad at LWP's HOWTO.
Last edited by Favux; May 8th, 2010 at 07:00 PM.
Please help,
I have Lucid too and cannot get anything at all to work, not even the pen.
First I downloaded the newest driver and tried to install it the usual way. But when I tried to execute make, I got an error:
Then I found munooka's post here and decided to try it, but also got an error when trying make:Code:rumtscho@steinbeck:~/tmp/linuxwacom-0.8.6-1$ make Making all in src make[1]: Entering directory `/home/rumtscho/tmp/linuxwacom-0.8.6-1/src' Making all in . make[2]: Entering directory `/home/rumtscho/tmp/linuxwacom-0.8.6-1/src' make[2]: Nothing to be done for `all-am'. make[2]: Leaving directory `/home/rumtscho/tmp/linuxwacom-0.8.6-1/src' Making all in wacomxi make[2]: Entering directory `/home/rumtscho/tmp/linuxwacom-0.8.6-1/src/wacomxi' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/rumtscho/tmp/linuxwacom-0.8.6-1/src/wacomxi' Making all in util make[2]: Entering directory `/home/rumtscho/tmp/linuxwacom-0.8.6-1/src/util' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/rumtscho/tmp/linuxwacom-0.8.6-1/src/util' Making all in xdrv make[2]: Entering directory `/home/rumtscho/tmp/linuxwacom-0.8.6-1/src/xdrv' gcc -g -O2 -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -fPIC -pipe -std=c99 \ -pedantic -Wall -Wpointer-arith -fno-merge-constants \ -fno-stack-protector -I. -I../include -I/usr/include/xorg \ -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 \ -o xf86Wacom.o -c ./xf86Wacom.c In file included from ./xf86Wacom.h:27, from ./xf86Wacom.c:87: /usr/include/xorg/xorg-server.h:183:1: warning: "XFree86LOADER" redefined In file included from ./xf86Wacom.h:25, from ./xf86Wacom.c:87: ./../include/xdrv-config.h:12:1: warning: this is the location of the previous definition In file included from ./xf86Wacom.h:176, from ./xf86Wacom.c:87: ./xf86WacomDefs.h:135:1: warning: "MAX_BUTTONS" redefined In file included from /usr/include/xorg/xf86str.h:38, from /usr/include/xorg/xf86.h:46, from ./xf86Wacom.h:85, from ./xf86Wacom.c:87: /usr/include/xorg/input.h:80:1: warning: this is the location of the previous definition ./xf86Wacom.c: In function ‘xf86WcmRegisterX11Devices’: ./xf86Wacom.c:393: warning: passing argument 3 of ‘InitButtonClassDeviceStruct’ from incompatible pointer type /usr/include/xorg/input.h:290: note: expected ‘Atom *’ but argument is of type ‘CARD8 *’ ./xf86Wacom.c:393: error: too few arguments to function ‘InitButtonClassDeviceStruct’ ./xf86Wacom.c:433: warning: passing argument 3 of ‘InitValuatorClassDeviceStruct’ makes pointer from integer without a cast /usr/include/xorg/input.h:296: note: expected ‘Atom *’ but argument is of type ‘int’ ./xf86Wacom.c:433: error: too few arguments to function ‘InitValuatorClassDeviceStruct’ ./xf86Wacom.c:475: warning: implicit declaration of function ‘InitKeyClassDeviceStruct’ ./xf86Wacom.c:483: warning: implicit declaration of function ‘InitKbdFeedbackClassDeviceStruct’ ./xf86Wacom.c:514: error: too few arguments to function ‘InitValuatorAxisStruct’ ./xf86Wacom.c:519: error: too few arguments to function ‘InitValuatorAxisStruct’ ./xf86Wacom.c:520: error: too few arguments to function ‘InitValuatorAxisStruct’ ./xf86Wacom.c:528: error: too few arguments to function ‘InitValuatorAxisStruct’ ./xf86Wacom.c:529: error: too few arguments to function ‘InitValuatorAxisStruct’ ./xf86Wacom.c:535: error: too few arguments to function ‘InitValuatorAxisStruct’ ./xf86Wacom.c:536: error: too few arguments to function ‘InitValuatorAxisStruct’ ./xf86Wacom.c:544: error: too few arguments to function ‘InitValuatorAxisStruct’ ./xf86Wacom.c:549: error: too few arguments to function ‘InitValuatorAxisStruct’ ./xf86Wacom.c:553: error: too few arguments to function ‘InitValuatorAxisStruct’ make[2]: *** [xf86Wacom.o] Error 1 make[2]: Leaving directory `/home/rumtscho/tmp/linuxwacom-0.8.6-1/src/xdrv' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/rumtscho/tmp/linuxwacom-0.8.6-1/src' make: *** [all-recursive] Error 1
Are there libraries missing from my system? Which ones? Do I have a chance to notice myself which I need, or do I have to ask in a forum every time this happens? Could you please explain this in a way so someone who's never developed in C can understand? :/Code:rumtscho@steinbeck:~/tmp/linuxwacom-0.8.6-1/xf86-input-wacom$ make make all-recursive make[1]: Entering directory `/home/rumtscho/tmp/linuxwacom-0.8.6-1/xf86-input-wacom' Making all in conf make[2]: Entering directory `/home/rumtscho/tmp/linuxwacom-0.8.6-1/xf86-input-wacom/conf' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/rumtscho/tmp/linuxwacom-0.8.6-1/xf86-input-wacom/conf' Making all in src make[2]: Entering directory `/home/rumtscho/tmp/linuxwacom-0.8.6-1/xf86-input-wacom/src' CC xf86Wacom.lo ../libtool: line 827: X--tag=CC: command not found ../libtool: line 860: libtool: ignoring unknown tag : command not found ../libtool: line 827: X--mode=compile: command not found ../libtool: line 994: *** Warning: inferring the mode of operation is deprecated.: command not found ../libtool: line 995: *** Future versions of Libtool will require --mode=MODE be specified.: command not found ../libtool: line 1138: Xgcc: command not found ../libtool: line 1138: X-std=gnu99: command not found ../libtool: line 1138: X-DHAVE_CONFIG_H: command not found ../libtool: line 1138: X-I.: command not found ../libtool: line 1138: X-I..: command not found ../libtool: line 1138: X-I../include/: No such file or directory ../libtool: line 1138: X-fvisibility=hidden: command not found ../libtool: line 1138: X-I/usr/include/xorg: No such file or directory ../libtool: line 1138: X-I/usr/include/pixman-1: No such file or directory ../libtool: line 1138: X-Wall: command not found ../libtool: line 1138: X-Wpointer-arith: command not found ../libtool: line 1138: X-Wstrict-prototypes: command not found ../libtool: line 1138: X-Wmissing-prototypes: command not found ../libtool: line 1138: X-Wmissing-declarations: command not found ../libtool: line 1138: X-Wnested-externs: command not found ../libtool: line 1138: X-fno-strict-aliasing: command not found ../libtool: line 1138: X-Wbad-function-cast: command not found ../libtool: line 1138: X-Wold-style-definition: command not found ../libtool: line 1138: X-Wdeclaration-after-statement: command not found ../libtool: line 1138: X-g: command not found ../libtool: line 1138: X-O2: command not found ../libtool: line 1138: X-MT: command not found ../libtool: line 1138: Xxf86Wacom.lo: command not found ../libtool: line 1138: X-MD: command not found ../libtool: line 1138: X-MP: command not found ../libtool: line 1138: X-MF: command not found ../libtool: line 1138: X.deps/xf86Wacom.Tpo: No such file or directory ../libtool: line 1138: X-c: command not found ../libtool: line 1191: Xxf86Wacom.lo: command not found ../libtool: line 1196: libtool: compile: cannot determine name of library object from `': command not found make[2]: *** [xf86Wacom.lo] Error 1 make[2]: Leaving directory `/home/rumtscho/tmp/linuxwacom-0.8.6-1/xf86-input-wacom/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/rumtscho/tmp/linuxwacom-0.8.6-1/xf86-input-wacom' make: *** [all] Error 2
P.S: I tried first installing the packages mentioned in http://linuxwacom.sourceforge.net/index.php/minihowto and http://ubuntuforums.org/showpost.php...68&postcount=1, but apt-get couldn't find most of them. I only have the main, universe, restricted and multiverse sources enabled.
Hi Rumtscho,
Munooka's method will work. Your first compile of linuxwacom failed because the config picks up the /src/xdrv directory and tries to build the X driver. Linuxwacom's X driver doesn't work with the Xserver 1.7 in Lucid. So that's why after:
you change directory again to:Code:./configure --enable-wacom --prefix=/usr
and then just do:Code:cd src/2.6.30
and reboot. That skips the X driver and let's you compile the wacom.ko.Code:make sudo cp wacom.ko /lib/modules/`uname -r`/kernel/drivers/input/tablet/wacom.ko sudo depmod -a
I'm not sure what is happening in your second attempt. Did you put xf86-input-wacom into the unpacked linuxwacom source code tar? Anyway the X driver for Lucid is Xorg's xf86-input-wacom. To get that you clone it from it's git repository and compile it.
This is all described in the linuxwacom HOW TO. Section 1 describes how to compile linuxwacom for the wacom.ko. You shouldn't need to clone xf86-input-wacom because the default version in Lucid is 0.10.5 which supports your P&T. There is a new gesture patch coming in a week or so. Then it would be worth cloning the git. This is described in Appendix 5. Just skim through the HOW TO and then reread the relevant sections. It's not as complicated as it looks, just a lot of explanation in there.
Last edited by Favux; May 8th, 2010 at 07:56 PM.
Hi Favux,
Thank you very much! Now both the pen and touch are working, including a button for right-click. Tomorrow I'll start tweaking the configuration, but for now I'm happy.
Your great HOWTO is on my bookmark list now. Thanks again for all the work you're investing in helping noobs like me.
Hi Rumtscho,
Great, you're set up!
Thank you for the kind words.
Sorry if I'm a little rude but I'm frustrated and disappointed with 10.04 in general.
Can't somebody make a .deb or something? because if i need to be compiling and searching to make things work (gwibber, ipod video with banshee, bamboo tablet) then i'm better installing Slackware. As a 10+ years old linux user I'm fine doing it but i selected Ubuntu for my sisters laptop thinking i won't have to tune up a lot.
Sorry to vent here but this release is too green for a LTS. I'll have to reinstall vista or wait for slack 13.1.
Hi Dragon Rojo,
Welcome to Ubuntu forums!
Not a problem to vent a little. I know what it's like to discover a quick install turning a not so quick adventure in linux land.
I won't comment on the other stuff but for Wacom there's two things going on. Linuxwacom handed off the Xdriver to Xorg a few months ago. So they've been basically writing xf86-input-wacom (the X driver) for just the last few months while trying to incoporate the latest linuxwacom features. The Xorg version runs on Xserver 1.7 (in Lucid) whereas the linuxwacom version doesn't. Linuxwacom now is responsible for just the kernel driver. That's actually the way everything else is and so "regularizes" the wacom drivers.
In addition the Bamboo P&T is very new and has just been incorporated into linuxwacom. The changes haven't completely made it into xf86-input-wacom. There's a big gesture patch that should be comitted in the next week or so.
checked:
xsetwacom commands are working to define physical buttons while your 10-wacom.conf example has no effect here (doesn't match properly the device?)
here xinput --list output:
Code:xinput --list ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Logitech USB Laser Mouse id=10 [slave pointer (2)] ⎜ ↳ Wacom Bamboo Craft Pen eraser id=11 [slave pointer (2)] ⎜ ↳ Wacom Bamboo Craft Pen id=12 [slave pointer (2)] ⎜ ↳ Wacom Bamboo Craft Finger pad id=13 [slave pointer (2)] ⎜ ↳ Wacom Bamboo Craft Finger id=14 [slave pointer (2)] ⎜ ↳ Broadcom Corp id=16 [slave pointer (2)] ⎜ ↳ PS/2 Mouse id=18 [slave pointer (2)] ⎜ ↳ AlpsPS/2 ALPS GlidePoint id=19 [slave pointer (2)] ⎜ ↳ Macintosh mouse button emulation id=20 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Video Bus id=6 [slave keyboard (3)] ↳ Power Button id=7 [slave keyboard (3)] ↳ Sleep Button id=8 [slave keyboard (3)] ↳ Laptop Integrated Webcam id=9 [slave keyboard (3)] ↳ Broadcom Corp id=15 [slave keyboard (3)] ↳ AT Translated Set 2 keyboard id=17 [slave keyboard (3)] ↳ Dell WMI hotkeys id=21 [slave keyboard (3)]
anyway thank you Favux
Hi htrex,
Good, the xsetwacom commands are working at least.
Thanks for experimenting with 10-wacom.conf with me. You're probably right and the match line for pad isn't working. So we still haven't figured out how to configure pad in the .conf, if it is even possible.
Bookmarks