Tevion Graphics Tablet (Aiptek, APT-6000U) on Ubuntu 8.10 (Intrepid Ibex)

Finally I’ve got my old USB Tevion graphics tablet working on Ubuntu 8.10 (Intrepid Ibex). It was a hard fight, and I don’t exactly know anymore how I got there, but I’ll try to reconstruct this case as good as I can. Before you go ahead: It’s not working without flaws. There are some ugly bugs, and dirty workarounds in it, but at least I’ve got it working somehow. This seems to be the first HOWTO for APT-6000U on the Internet so far, please consider it may not work for you, since I’ve got no conformations yet, if it’s working for other, too.


Installation Instructions:



First of all, there is already a support for these graphics tablets, but without pressure sensitivity. If you’ve got already installed xserver-xorg-input-aiptek, remove it first (apt-get remove). Make a backup of your /etc/X11/xorg.conf file, and remove the parts from your xorg.conf, which belongs to the aiptek driver, because Intrepid Ibex won’t work if you leave them in.

OK, what we first need is the a pretty bleeding edge alpha driver now:

  1. Download driver: wizardpen-0.7.0-alpha1.tar.gz | Alternative source: wizardpen-0.7.0-alpha1.tar.gz
  2. Meet dependencies:
    apt-get install xserver-xorg-dev xutils libx11-dev xautomation xinput libxext-dev build-essential
  3. Unpack it and go into the directory.
    tar xfvz wizardpen-0.7.0-alpha1.tar.gz
    cd wizardpen-0.7.0-alpha1
  4. configure and compile it
    ./configure --with-xorg-module-dir=/usr/lib/xorg/modules
    make
    make install
  5. Get the name of your device device, you'll need it in the next step
    cat /proc/bus/input/devices | grep Name
  6. Create this the file 99-x11-wizardpen.fdi and insert the name from the step before accordingly.
    /etc/hal/fdi/policy/99-x11-wizardpen.fdi
  7. Now work around a HAL bug. Create this the file 10-UC-LOGIC-Tablet-fix.fdi in
    /etc/hal/fdi/preprobe/10-UC-LOGIC-Tablet-fix.fdi
  8. Go to console (Ctrl+Alt+F1), and perform as root
    /etc/init.d/kdm stop
    modprobe -r aiptek
  9. Unplug your graphics tablet (if it was pluged in), wait approx. 5 secs, and replug it again.
  10. Perform now
    modprobe aiptek
    /etc/init.d/kdm start

Notes:


The setting in the file 99-x11-wizardpen.fdi for the X, Y and Z coordinates need adjustment by trial and error method. The tools below should help to find the appropriate values, but neither the tool

xinput list
xinput test <the name of your device here>

nor the calibration-tool in the wizardpen sources didn't worked for me, or I was just to stupid for it.

cd wizardpen-0.7.0-alpha1/calibrate
./wizardpen-calibrate

Using the GIMP, Krita and Inkscape was possible including pressure sensitivity, but some functions of my default mouse didn't work for me anymore, so I was dependent on the graphics tablet as mouse button replacement.

18 thoughts on “Tevion Graphics Tablet (Aiptek, APT-6000U) on Ubuntu 8.10 (Intrepid Ibex)

  1. acmelab68 Post author

    @Marc1
    I’ve got the same phenomenon here. I got therefor into the console (Ctrl+Alt+F1), unload aiptek driver (modprobe -r), load it again. Then I un-and replug the tablet. Afterward I restart kdm or gdm.
    And now a silly trick, but sometimes it works for me: I point on the upper most left or right corner of the tablet. And the mouse pointer disappears, then I move my mouse to see where the cursor has gone, and voile the tabled is working again. I know, it’s not really a solution, but as mentioned, it’s bleeding edge.

    Thanks for your time and patience.

  2. BenXY

    Marc1 :
    Hi,
    thanks for this howto. I’ve followed the steps, but the tablet doesn’t work. I’m clueless.

    Doesn’t work for me either. I’ve got in lsusb “APT-6000U”, but it’s not working

  3. Ricardo

    I again… I have instaled the new ubuntu 9.4 and the driver give me an error … :(

    “configure: WARNING: `missing’ script is too old or missing
    checking for a thread-safe mkdir -p… /bin/mkdir -p
    checking for gawk… no
    checking for mawk… mawk
    checking whether make sets $(MAKE)… yes
    checking whether to enable maintainer-specific portions of Makefiles… no
    checking build system type… i686-pc-linux-gnu
    checking host system type… i686-pc-linux-gnu
    checking for style of include used by make… GNU
    checking for gcc… gcc
    checking for C compiler default output file name… a.out
    checking whether the C compiler works… yes
    checking whether we are cross compiling… no
    checking for suffix of executables…
    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 dependency style of gcc… gcc3
    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 ld used by gcc… /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld… yes
    checking for /usr/bin/ld option to reload object files… -r
    checking for BSD-compatible nm… /usr/bin/nm -B
    checking whether ln -s works… yes
    checking how to recognise dependent libraries… pass_all
    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 dlfcn.h usability… yes
    checking dlfcn.h presence… yes
    checking for dlfcn.h… yes
    checking for g++… g++
    checking whether we are using the GNU C++ compiler… yes
    checking whether g++ accepts -g… yes
    checking dependency style of g++… gcc3
    checking how to run the C++ preprocessor… g++ -E
    checking for g77… no
    checking for xlf… no
    checking for f77… no
    checking for frt… no
    checking for pgf77… no
    checking for cf77… no
    checking for fort77… no
    checking for fl32… no
    checking for af77… no
    checking for xlf90… no
    checking for f90… no
    checking for pgf90… no
    checking for pghpf… no
    checking for epcf90… no
    checking for gfortran… no
    checking for g95… no
    checking for xlf95… no
    checking for f95… no
    checking for fort… no
    checking for ifort… no
    checking for ifc… no
    checking for efc… no
    checking for pgf95… no
    checking for lf95… no
    checking for ftn… no
    checking whether we are using the GNU Fortran 77 compiler… no
    checking whether accepts -g… no
    checking the maximum length of command line arguments… 32768
    checking command to parse /usr/bin/nm -B output from gcc object… ok
    checking for objdir… .libs
    checking for ar… ar
    checking for ranlib… ranlib
    checking for strip… strip
    checking if gcc supports -fno-rtti -fno-exceptions… no
    checking for gcc option to produce PIC… -fPIC
    checking if gcc PIC flag -fPIC works… yes
    checking if gcc static flag -static works… yes
    checking if gcc supports -c -o file.o… 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… no
    configure: creating libtool
    appending configuration tag “CXX” to libtool
    checking for ld used by g++… /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld… yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries… yes
    checking for g++ option to produce PIC… -fPIC
    checking if g++ PIC flag -fPIC works… yes
    checking if g++ static flag -static works… yes
    checking if g++ supports -c -o file.o… yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries… yes
    checking dynamic linker characteristics… GNU/Linux ld.so
    checking how to hardcode library paths into programs… immediate
    appending configuration tag “F77″ to libtool
    checking for gcc… (cached) gcc
    checking whether we are using the GNU C compiler… (cached) yes
    checking whether gcc accepts -g… (cached) yes
    checking for gcc option to accept ISO C89… (cached) none needed
    checking dependency style of gcc… (cached) gcc3
    checking if RANDR is defined… yes
    checking if XINPUT is defined… no
    checking for pkg-config… /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0… yes
    checking for XORG… yes
    checking for ANSI C header files… (cached) yes
    checking linux/input.h usability… yes
    checking linux/input.h presence… yes
    checking for linux/input.h… yes
    checking sysfs/libsysfs.h usability… no
    checking sysfs/libsysfs.h presence… no
    checking for sysfs/libsysfs.h… no
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating src/Makefile
    config.status: creating man/Makefile
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing depfiles commands
    ricardo@XXL:~/Área de Trabalho/wizardpen-0.7.0-alpha1$ make
    make all-recursive
    make[1]: Entering directory `/home/ricardo/Área de Trabalho/wizardpen-0.7.0-alpha1′
    Making all in src
    make[2]: Entering directory `/home/ricardo/Área de Trabalho/wizardpen-0.7.0-alpha1/src’
    /bin/bash ../libtool –tag=CC –mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -I/usr/include/xorg -I/usr/include/pixman-1 -I../src -MT wizardpen.lo -MD -MP -MF .deps/wizardpen.Tpo -c -o wizardpen.lo wizardpen.c
    gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -I/usr/include/xorg -I/usr/include/pixman-1 -I../src -MT wizardpen.lo -MD -MP -MF .deps/wizardpen.Tpo -c wizardpen.c -fPIC -DPIC -o .libs/wizardpen.o
    wizardpen.c:88: warning: data definition has no type or storage class
    wizardpen.c:90: warning: data definition has no type or storage class
    wizardpen.c:92: warning: data definition has no type or storage class
    wizardpen.c:95: warning: data definition has no type or storage class
    wizardpen.c:97: warning: data definition has no type or storage class
    wizardpen.c: In function ‘DeviceInit’:
    wizardpen.c:662: warning: passing argument 3 of ‘InitValuatorClassDeviceStruct’ makes integer from pointer without a cast
    wizardpen.c:662: error: too many arguments to function ‘InitValuatorClassDeviceStruct’
    make[2]: *** [wizardpen.lo] Error 1
    make[2]: Leaving directory `/home/ricardo/Área de Trabalho/wizardpen-0.7.0-alpha1/src’
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/ricardo/Área de Trabalho/wizardpen-0.7.0-alpha1′
    make: *** [all] Error 2″

    hellp…

  4. acmelab68 Post author

    @Clyde
    sorry folks, it’s for Ubuntu 8.10 (Intrepid Ibex).
    I don’t know when I find the time to try it with 9.04. Even so – I’m not sure I’m smarter you are, regarding this problem.
    Maybe a smart reader knows a solution and let us know. That’ll be great.

    Sorry.

  5. Arturito

    cant be! i have the same problem, any other way to install the drivers or do something else to make the tablet work?

  6. Barigorokarl

    Hi, great thanks, my pad works fine, even with pressure detection! :-) I work with a fedora 10 an the tutorial just worked!

    I think I’ve found a little “glitch”, though:

    The file 10-UC-LOGIC-Tablet-fix.fdi had no opening “” after the closing </deviceinfo – tag was also missing. But maybe my browser ust screwed up.

    Anyhow, if someone else encounters that Problem, here is the "fixed" version:

    true

  7. Barigorokarl

    Ah … great fail! This blog throws everything that looks like html away.

    Ok, lets try that again, here is now – hopefully – the file:

    <?xml version=”1.0″ encoding=”UTF-8″?>

    <deviceinfo version=”0.2″>
    <device>
    <match key=”usb.vendor_id” int=”21827″>
    <match key=”usb.product_id” int=”4″>
    <merge key=”info.ignore” type=”bool”>true</merge>
    </match>
    </match>
    </device>
    </deviceinfo>

  8. acmelab68 Post author

    See test below:

    If you want to post code in this blog, please use these meta tags in the test below, else your code will be screwed up. E.g. the quotation marks from the posting above won’t work correctly.

    Test.

    <pre>
    some code lines here
    </pre>
    

    I’ve been writing this in the comment field:

    & lt;pre& gt; some; code lines here& lt;/pre& gt;

    No space between & and the letter “l” of “lt;”

  9. Barigorkarl

    Ok, another catch:

    I recently updated to fedora 12 and now the compile process halts with:
    <pre>
    wizardpen.c: In function ‘DeviceInit’:
    wizardpen.c:636: warning: passing argument 3 of ‘InitButtonClassDeviceStruct’ from incompatible pointer type
    /usr/include/xorg/input.h:274: note: expected ‘Atom *’ but argument is of type ‘unsigned char *’
    wizardpen.c:636: error: too few arguments to function ‘InitButtonClassDeviceStruct’
    wizardpen.c:662: warning: passing argument 3 of ‘InitValuatorClassDeviceStruct’ makes pointer from integer without a cast
    /usr/include/xorg/input.h:280: note: expected ‘Atom *’ but argument is of type ‘unsigned int’
    wizardpen.c:662: error: too few arguments to function ‘InitValuatorClassDeviceStruct’
    </pre>

    After a bit of a search I found this working patch:
    http://code.google.com/p/linuxgenius/issues/detail?id=1#c9

    Happy compliling!

    ( Still, this is the only tutorial that I found and that works, so, again, many thanks ;-) )

Comments are closed.