Hi gabryzen,
Welcom to Ubuntu forums!
What release of Ubuntu are you using? In other words what is the kernel?
Code:uname -r
Hi gabryzen,
Welcom to Ubuntu forums!
What release of Ubuntu are you using? In other words what is the kernel?
Code:uname -r
Last edited by Favux; October 25th, 2011 at 09:35 PM.
If it's necessary to split off into a new thread, someone just let me know. Have a Dell Mini 10v running Ubuntu 10.04 LTS. Current version of kernel is 2.6.32-33-generic. I've followed the guide in appendix 3 from http://ubuntuforums.org/showthread.php?t=1515562 . I get the following output when I attempt to make the file.
I'm a linux newb, completely at a loss to figure out exactly what it's saying. Near as I can tell, I'm missing lunix/input/mt.h, but I'd figured that'd be covered by running the updates/upgrades and what not. Anyone have any recommendations?Code:teacher@SittingBull:~/Desktop/wacom$ make -C /lib/modules/$(uname -r)/build SUBDIRS=$(pwd) modules make: Entering directory `/usr/src/linux-headers-2.6.32-33-generic' CC [M] /home/teacher/Desktop/wacom/wacom_wac.o /home/teacher/Desktop/wacom/wacom_wac.c:17:28: error: linux/input/mt.h: No such file or directory /home/teacher/Desktop/wacom/wacom_wac.c: In function ‘wacom_tpc_mt_touch’: /home/teacher/Desktop/wacom/wacom_wac.c:693: error: implicit declaration of function ‘input_mt_slot’ /home/teacher/Desktop/wacom/wacom_wac.c:694: error: implicit declaration of function ‘input_mt_report_slot_state’ /home/teacher/Desktop/wacom/wacom_wac.c:708: error: implicit declaration of function ‘input_mt_report_pointer_emulation’ /home/teacher/Desktop/wacom/wacom_wac.c: In function ‘wacom_setup_input_capabilities’: /home/teacher/Desktop/wacom/wacom_wac.c:1129: error: implicit declaration of function ‘input_abs_set_res’ /home/teacher/Desktop/wacom/wacom_wac.c:1238: error: implicit declaration of function ‘input_mt_init_slots’ /home/teacher/Desktop/wacom/wacom_wac.c:1240: error: ‘MT_TOOL_MAX’ undeclared (first use in this function) /home/teacher/Desktop/wacom/wacom_wac.c:1240: error: (Each undeclared identifier is reported only once /home/teacher/Desktop/wacom/wacom_wac.c:1240: error: for each function it appears in.) make[1]: *** [/home/teacher/Desktop/wacom/wacom_wac.o] Error 1 make: *** [_module_/home/teacher/Desktop/wacom] Error 2 make: Leaving directory `/usr/src/linux-headers-2.6.32-33-generic' teacher@SittingBull:~/Desktop/wacom$
Hi taeksosin,
You're fine on this thread. You have that right, the mt.h (multi-touch header) is missing. Lucid's (10.04) 2.6.32 kernel doesn't have it. As far as I know Natty's 2.6.38 kernel is the first to have it. Maybe it appears in .37 or something but I know Maverick's 2.6.35 doesn't have it either.
If you have a Pen/Connect (the DD, lsusb in a terminal) then all you need is the stylus working. We can probably do that by patching input-wacom. If you have one of the other models with touch, you won't be able to get touch working without 2.6.38 or higher.
Favux,
You're right on the money with the Bamboo type. It's the Bamboo Connect CTL 470/k, and all I care about is pen functionality. How would I go about patching input-wacom?
Just a wee bit of background, I have 30 some odd units in a school computer lab that this is for. Infecting 450ish K-8 kids per year with opensource as best as I can, and GIMP + Bamboo I think is going to be a winning combination.
Nice project. Sounds like a good way to expose the students to OSS.
The line #'s in the following assume your cloning input-wacom (appendix 2) but it should work with input-wacom-0.11.1 also. Either way once you have the uncompressed input-wacom source code folder you're set. In the wacom_wac.c file in the 2.6.30 folder in the input-wacom folder add:
between:Code:static const struct wacom_features wacom_features_0xDD = { "Wacom Bamboo Connect", WACOM_PKGLEN_BBFUN, 14720, 9200, 1023, 63, BAMBOO_PT };
At about line #1342 so it looks like:Code:static const struct wacom_features wacom_features_0xDB = { "Wacom Bamboo 2FG 6x8 SE", WACOM_PKGLEN_BBFUN, 21648, 13700, 1023, 63, BAMBOO_PT }; static const struct wacom_features wacom_features_0x20 = { "Wacom Intuos 4x5", WACOM_PKGLEN_INTUOS, 12700, 10600, 1023, 31, INTUOS };
And add:Code:static const struct wacom_features wacom_features_0xDB = { "Wacom Bamboo 2FG 6x8 SE", WACOM_PKGLEN_BBFUN, 21648, 13700, 1023, 63, BAMBOO_PT }; static const struct wacom_features wacom_features_0xDD = { "Wacom Bamboo Connect", WACOM_PKGLEN_BBFUN, 14720, 9200, 1023, 63, BAMBOO_PT }; static const struct wacom_features wacom_features_0x20 = { "Wacom Intuos 4x5", WACOM_PKGLEN_INTUOS, 12700, 10600, 1023, 31, INTUOS };
between:Code:{ USB_DEVICE_WACOM(0xDD) },
At about line #1512 so it looks like:Code:{ USB_DEVICE_WACOM(0xDB) }, { USB_DEVICE_WACOM(0x41) },
Then go on to compile as instructed.Code:{ USB_DEVICE_WACOM(0xDB) }, { USB_DEVICE_WACOM(0xDD) }, { USB_DEVICE_WACOM(0x41) },
To avoid patching xf86-input-wacom's wcmUSB.c if you have the Lucid default xf86-input-wacom-0.10.5 go ahead and update that as in part II.
Last edited by Favux; November 13th, 2011 at 05:17 PM.
Sorry about the delay on trying this, hadn't had time to play with it. Getting an error when I attempt to compile after following the steps in Appendix 2. I made the changes to the necessary file, get the following when I go and try to run autogen.sh. It LOOKS like it has an issue with the second bit of code you had me add in, is there something additional I need to change? Output from autogen.sh below.
Code:teacher@SittingBull:~/Desktop/input-wacom$ cp 2.6.30/wacom.ko /lib/modules/2.6.32-34-generic/kernel/drivers/input/tablet cp: cannot stat `2.6.30/wacom.ko': No such file or directory teacher@SittingBull:~/Desktop/input-wacom$ ./autogen.sh --prefix=/usrautoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal autoreconf: configure.ac: tracing autoreconf: running: libtoolize --install --copy libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. autoreconf: running: /usr/bin/autoconf autoreconf: running: /usr/bin/autoheader autoreconf: running: automake --add-missing --copy --no-force autoreconf: Leaving directory `.' checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... none checking for gawk... (cached) gawk checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for ar... ar checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for kernel type... Linux checking for linux-based kernel... yes checking for kernel source/headers... /lib/modules/2.6.32-34-generic/build checking kernel version... 2.6.32-34-generic configure: creating ./config.status config.status: creating Makefile config.status: creating 2.6.30/Makefile config.status: creating 2.6.36/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands config.status: executing libtool commands make all-recursive make[1]: Entering directory `/home/teacher/Desktop/input-wacom' Making all in 2.6.30 make[2]: Entering directory `/home/teacher/Desktop/input-wacom/2.6.30' Building linuxwacom drivers for 2.6 kernel. make -C /lib/modules/2.6.32-34-generic/build M=/home/teacher/Desktop/input-wacom/2.6.30 make[3]: Entering directory `/usr/src/linux-headers-2.6.32-34-generic' CC [M] /home/teacher/Desktop/input-wacom/2.6.30/wacom_wac.o /home/teacher/Desktop/input-wacom/2.6.30/wacom_wac.c:1343: error: 'WACOM_PKGLEN_BBPEN' undeclared here (not in a function) make[4]: *** [/home/teacher/Desktop/input-wacom/2.6.30/wacom_wac.o] Error 1 make[3]: *** [_module_/home/teacher/Desktop/input-wacom/2.6.30] Error 2 make[3]: Leaving directory `/usr/src/linux-headers-2.6.32-34-generic' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/teacher/Desktop/input-wacom/2.6.30' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/teacher/Desktop/input-wacom' make: *** [all] Error 2 ---------------------------------------- BUILD ENVIRONMENT: linux kernel - yes 2.6.30 kernel source - yes /lib/modules/2.6.32-34-generic/build Your wacom.ko is available under /home/teacher/Desktop/input-wacom/2.6.30 If you have an USB device, you can copy the driver by: cp 2.6.30/wacom.ko /lib/modules/2.6.32-34-generic/kernel/drivers/input/tablet If you have a serial device, please copy the driver by: cp 2.6.30/wacom_w8001.ko /lib/modules/2.6.32-34-generic/kernel/drivers/input/touchscreen NOTE: The kernel drivers included in this package are only tested with the X Wacom driver built from xf86-input-wacom. If you are running an X server version older than 1.7, please use the drivers provided by linuxwacom package. teacher@SittingBull:~/Desktop/input-wacom$
Hi Favux,
Thank you very much for your help, I have learned much from your posts. However I have the exact same problem as taeksosin. I have a CTL-470/K an I am in 2.6.32 for reasons out of my control. I undertand the mt.h is designed for a more advanced kernerl but this tablet is very simplistic and doesn't have touch functions or anything fancy, just need the stylus working.
I tried changing the lines of the wacom_wac.c as you suggested. I did it in input-wacom-0.11.1 AND in the version from git in appendix #2 and got the same error when configuring :
I went to the file wacom_wac.h and added the line "#define WACOM_PKGLEN_BBPEN 10" to define BBPEN just on top of the stylus ang it finally compiled.I copied de wacom.ko and everything else you mentioned in the appendix./home/teacher/Desktop/input-wacom/2.6.30/wacom_wac.c:1343: error: 'WACOM_PKGLEN_BBPEN' undeclared here (not in a function)
After trying all this , the tablet doesn't want to work.
Any thoughts? Am I doing something wrong with this patch?
Thanks in advance Favux...
Hi taeksosin and thrischan,
Sorry my mistake. I used the wrong variable. It should have been WACOM_PKGLEN_BBFUN and not the more recent WACOM_PKGLEN_BBPEN. I'll fix the instructions in post #15.
Hi Favux,
Thank you for you quick response. I fixed the file but still, the CTL-470/K is not working.
I also tried PART II to manually compile xf86-input-wacom-0.11.x and nothing.
My Xorg information is the following, ( I updated Xorg from a untable repository for no reason other than just than trying to solve this problem ) so I don't know if the problem could be this :
Should I install a fresh copy of my system to get rid of this unstable Xorg that is spread all over my system? and try again? Or is there something I am not aware of?X.Org X Server 1.11.1.902 (1.11.2 RC 2)
Release Date: 2011-10-28
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.1.0-rc4-amd64 x86_64 Debian
Current Operating System: Linux cvargas 2.6.32-5-amd64 #1 SMP Mon Oct 3 03:59:20 UTC 2011 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.32-5-amd64 root=UUID=1436e4a5-f2d0-447c-bc43-aa9c2bc9b49a ro quiet
Build Date: 02 November 2011 10:15:50AM
xorg-server 2:1.11.1.902-1 (Cyril Brulebois <kibi@debian.org>)
Current version of pixman: 0.21.8
Thanks in advance!
Hi thrischan,
So this time it compiled without an error?
My inclination is to blame the problem on your new Xorg. But before you nuke it what configuration file are you using? I imagine instead of 10-wacom.conf in /usr/lib/X11/xorg.conf.d for that X server you would need a 50-wacom.conf located in /usr/share/X11/xorg.conf.d. Is that what you have?
Bookmarks