Page 1 of 6 123 ... LastLast
Results 1 to 10 of 1132

Thread: Wacom Bamboo Pen and Touch Series Development

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Location
    Mount Horeb, WI
    Beans
    4,312
    Distro
    Kubuntu Development Release

    Wacom Bamboo Pen and Touch Series Development

    This thread is the development thread for the Wacom Bamboo Pen and Touch series tablets (0xd1, 0xd2, 0xd3, and 0xd4 devices). 0.8.6-1 was released a while back and that should get your device working in Karmic.

    If you are using Lucid, please try the instructions on this post.

    We are going to try a different approach on getting the driver installed. To make sure that you have all the development tools:
    Code:
    sudo apt-get update
    sudo apt-get install wacom-tools xserver-xorg-input-wacom
    sudo apt-get install libhal-dev libxrandr-dev
    sudo apt-get build-dep xserver-xorg-input-wacom
    Do the following if you are NOT using Karmic:
    Code:
    sudo apt-get purge wacom-tools xserver-xorg-input-wacom
    If you are using Karmic also include the following:
    Code:
    wget http://kernel.ubuntu.com/git-repos/ubuntu/linux-2.6/drivers/hid/hid-ids.h
    sudo cp ./hid-ids.h /lib/modules/`uname -r`/build/drivers/hid/hid-ids.h
    We are going to use 0.8.6-1 for testing:
    Option A
    For now I have archived this version because of a recent release so you can download it here.
    Unpack the source:
    Code:
    tar -xvjf linuxwacom-0.8.6-1.tar.bz2
    cd linuxwacom-0.8.6-1
    Compile and install:
    Code:
    make clean
    make distclean
    ./configure --enable-wacom --prefix=/usr
    make
    sudo make install
    sudo cp src/2.6.30/wacom.ko /lib/modules/$(uname -r)/kernel/drivers/input/tablet/
    sudo depmod -a
    For those using TwinView" (Thank you, alpharesearch!)
    Code:
    make clean
    make distclean
    ./configure --enable-wacom --prefix=/usr --enable-quirk-tablet-rescale
    make
    sudo make install
    sudo cp src/2.6.30/wacom.ko /lib/modules/$(uname -r)/kernel/drivers/input/tablet/
    sudo depmod -a
    Make sure that you also set the Horizontal setting to zero. See the bottom of this post for more info.

    To reload the module:
    Code:
    sudo modprobe -r wacom
    sudo modprobe wacom
    NOTE: The 'make clean' and 'make distclean' will produce an error message if you have not done a ./configure before. This is because the source has never been compiled yet and the Makefiles have not been created yet (the Makefile gets built with the ./configure command). Therefore there is nothing to clean up.

    If wacomcpl is not working with your device, please try copying over the file from /usr/local/bin:
    Code:
    sudo cp /usr/local/bin/wacomcpl /usr/bin
    Thanks portets for that information!

    Some helpful xsetwacom commands
    NOTE: It looks like in 0.8.6-1 the device name might be used instead of touch. You will need to check with xsetwacom list to find the actual device name. See post 870 for more detail.
    To find the list of recognized devices:
    Code:
    xsetwacom list
    To set your touch so that it works like a mouse touchpad:
    Code:
    xsetwacom set touch Mode Relative
    To set the resolution of your touch (Example is for the medium sized tablet -- the small is X=480 Y=320):
    Code:
    xsetwacom set touch bottomx 740
    xsetwacom set touch bottomy 500
    To turn the touch on/off:
    Code:
    xsetwacom set touch Touch off
    xsetwacom set touch Touch on
    For the TwinView dual screen to work, this also needs to be added to 10-linuxwacom.fdi:
    Code:
    <merge key="input.x11_options.TwinView" type="string">Horizontal</merge>
    <merge key="input.x11_options.ScreenNo" type="string">0</merge>
    If there are any corrections that need to be made, please let me know.

    I am not if there are still some adjustments needed for the .fdi files. Please refer to this post.
    Last edited by Ayuthia; May 11th, 2010 at 01:38 AM. Reason: Updated for Lucid and 0.8.6-1

  2. #2
    Join Date
    Nov 2008
    Location
    Southern Ontario, Canada
    Beans
    296
    Distro
    Ubuntu UNR

    Re: Wacom Bamboo Pen and Touch Series Development

    Ayuthia, we have discovered that maybe the purge isn't right. At least not for version 0.8.4-3 and Karminc. You may want to update the instructions above?
    EDIT: I will test it with 0.8.5-1 and Karmic now

    EDIT: do you want to mention that the line...
    sudo cp src/2.6.28/wacom.ko /lib/modules/$(uname -r)/kernel/drivers/input/tablet/
    ...is very kernel version specific (i.e. 2.6.28, Jaunty)? I am on Karmic and therefore use 2.8.31 currently.

    I am proceeding from here.
    Thx!!

    EDIT: yeah again A time saver for patching all the files would be...
    Code:
    for FILE in *.patch; do patch -p1 < $FILE; done
    Last edited by kgingeri; November 10th, 2009 at 05:17 AM.

  3. #3
    Join Date
    Apr 2007
    Location
    Mount Horeb, WI
    Beans
    4,312
    Distro
    Kubuntu Development Release

    Re: Wacom Bamboo Pen and Touch Series Development

    Quote Originally Posted by kgingeri View Post
    Ayuthia, we have discovered that maybe the purge isn't right. At least not for version 0.8.4-3. You may want to update the instructions above - at least for Karmic?

    EDIT: do you want to mention that the line...
    ...is very kernel version specific (i.e. 2.6.28, Jaunty)? I am on Karmic and therefore use 2.8.31 currently.

    I am proceeding from here.
    Thx!!
    I am under the impression that 0.8.5-1 does not produce a 2.6.31 directory anymore. If it does, please let me know and I will correct the post.

    I went ahead and updated the purge commands. Do we know why it is causing problems? My concern is that we might be missing something in the newer source that is not getting installed.

  4. #4
    Join Date
    Nov 2008
    Location
    Southern Ontario, Canada
    Beans
    296
    Distro
    Ubuntu UNR

    Re: Wacom Bamboo Pen and Touch Series Development

    Quote Originally Posted by Ayuthia View Post
    Do we know why it is causing problems? My concern is that we might be missing something in the newer source that is not getting installed.
    No I really don't - sorry. Dnprossi discovered it. I'll keep an eye open for any hints.
    I've done some edits to my first response also.

    Another thing I discovered is that you cannot do a 'make clean' and 'make distclean' until at least one .configure
    Last edited by kgingeri; November 10th, 2009 at 05:29 AM. Reason: name and grammer

  5. #5
    Join Date
    Nov 2008
    Location
    Southern Ontario, Canada
    Beans
    296
    Distro
    Ubuntu UNR

    Re: Wacom Bamboo Pen and Touch Series Development

    Ok got a compile error:
    Code:
    In file included from ./xf86Wacom.h:25,
                     from ./wcmConfig.c:20:
    ./../include/xdrv-config.h:12:1: warning: this is the location of the previous definition
    ./wcmConfig.c:629: error: expected '}' before '{' token
    make[2]: *** [wcmConfig.o] Error 1
    make[2]: Leaving directory `/media/KGSD-8G/Downloads/Sys/Wacom/linuxwacom-0.8.5-1/src/xdrv'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/media/KGSD-8G/Downloads/Sys/Wacom/linuxwacom-0.8.5-1/src'
    make: *** [all-recursive] Error 1
    Looks like you forgot comma's in the structure assignments starting at line 629.

  6. #6
    Join Date
    Nov 2008
    Location
    Southern Ontario, Canada
    Beans
    296
    Distro
    Ubuntu UNR

    Re: Wacom Bamboo Pen and Touch Series Development

    Oops - another problem...
    Code:
    /media/KGSD-8G/Downloads/Sys/Wacom/linuxwacom-0.8.5-1/src/2.6.28/wacom_wac.c: In function 'wacom_bamboo_pt_irq':
    /media/KGSD-8G/Downloads/Sys/Wacom/linuxwacom-0.8.5-1/src/2.6.28/wacom_wac.c:169: error: 'PATCH' undeclared (first use in this function)
    /media/KGSD-8G/Downloads/Sys/Wacom/linuxwacom-0.8.5-1/src/2.6.28/wacom_wac.c:169: error: (Each undeclared identifier is reported only once
    /media/KGSD-8G/Downloads/Sys/Wacom/linuxwacom-0.8.5-1/src/2.6.28/wacom_wac.c:169: error: for each function it appears in.)
    make[4]: *** [/media/KGSD-8G/Downloads/Sys/Wacom/linuxwacom-0.8.5-1/src/2.6.28/wacom_wac.o] Error 1
    make[3]: *** [_module_/media/KGSD-8G/Downloads/Sys/Wacom/linuxwacom-0.8.5-1/src/2.6.28] Error 2
    make[3]: Leaving directory `/usr/src/linux-headers-2.6.31-14-generic'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/media/KGSD-8G/Downloads/Sys/Wacom/linuxwacom-0.8.5-1/src/2.6.28'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/media/KGSD-8G/Downloads/Sys/Wacom/linuxwacom-0.8.5-1/src'
    make: *** [all-recursive] Error 1
    Do you want me to PM these to you instead?

    It does appear like I only have a 2.6.28 directory - you are right there.

    EDIT: is PATCH suppose to be a pre-compile directive for patch number? got thru make by define PATCH as '#define PATCH 1' in wacom_wac.c
    Last edited by kgingeri; November 10th, 2009 at 05:49 AM.

  7. #7
    Join Date
    Apr 2007
    Location
    Mount Horeb, WI
    Beans
    4,312
    Distro
    Kubuntu Development Release

    Re: Wacom Bamboo Pen and Touch Series Development

    Quote Originally Posted by kgingeri View Post
    No I really don't - sorry. Dnprossi discovered it. I'll keep an eye open for any hints.
    I've done some edits to my first response also.

    Another thing I discovered is that you cannot do a 'make clean' and 'make distclean' until at least one .configure
    You are correct about the make clean/distclean commands. I have updated the post to mention that. It is one of those things that I run into quite often when I chain the commands together and break out while the system is doing the ./configure (and then run the chain of commands again).

    Thanks!

  8. #8
    Join Date
    Nov 2009
    Beans
    57

    Re: Wacom Bamboo Pen and Touch Series Development

    Hi all,

    Well I kinda went down a rabbit hole and cleaned up so much that I'm not sure what to do

    This type of change usually won't get accepted by the main stream development, but I figured I post it here if any one wants to take a look.

    I've attached the prepatched tree.

    Basically the Makefiles have been reworked and the kernel module now supports 2.6.x in a single set of sources (no more multi-versions of the kernel source). Also, I've gotten all modules and tools to build without warnings (at least on Karmic ).

    I'm using it on my machine even though there are still issues with single click touch I'm trying to still fix (when doing a fast touch the cursor flies to the bottom left of the screen). It does fix a few things:

    1. Touch device scales correctly even if X server is already running when tablet is connected.
    2. xsetwacom returning touch type for pad. This was actually a comparison problem in wacomcfg.c since touch was checked before pad in the device name and the bamboo tables have Touch in their name.
    3. The 10-linuxwacom.fdi should support all tablets without having to rewrite the info.product keys. So the device product names now show up as reported by the kernel, like it's supposed to work.

    Good luck, and hopefully someone finds this useful.
    Attached Files Attached Files

  9. #9
    Join Date
    Nov 2008
    Location
    Southern Ontario, Canada
    Beans
    296
    Distro
    Ubuntu UNR

    Re: Wacom Bamboo Pen and Touch Series Development

    Quote Originally Posted by ob1kenobi View Post
    Hi all,

    Well I kinda went down a rabbit hole and cleaned up so much that I'm not sure what to do
    ...
    Ha, I've been down one too - checking out Chrome OS ;v)

    I'll give it a try later tonight hopefully.

    EDIT: BTW when I did an lsb_release command, it told me it was Karmic Koala!!! Yeah, Chrome OS!!
    Last edited by kgingeri; November 25th, 2009 at 07:04 PM.

  10. #10
    Join Date
    Nov 2008
    Beans
    9,635
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Wacom Bamboo Pen and Touch Series Development

    Hi kgingeri,

    This may explain why.
    Prerequisites
    You need to have Linux. We currently support the following:

    * Ubuntu (Hardy 8.04 or newer, Karmic 9.10 recommended)
    * An account with root access (needed to run chroot and modify the mount table)
    * Chromium prerequisites (needed to build a Chromium-based browser as part of building Chromium OS)
    From: http://www.chromium.org/chromium-os/...ng-chromium-os

Page 1 of 6 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •