Page 2 of 88 FirstFirst 12341252 ... LastLast
Results 11 to 20 of 874

Thread: New Wacom Bamboo not working

  1. #11
    Join Date
    Apr 2008
    Beans
    74

    Re: New Wacom Bamboo not working

    kgingeri, you seem to be one step ahead of me, I don't quite understand how/why you modified wacom_wac.c and why it would help. If I can get the pend to work on an older protocol until they release the new version I might try it.

    I have also sent an email to the developer of linuxwacom asking when they will be able to get the new version out and if there is something I can do to help their progress. (I would probably be ore of a hindrance though!)

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

    Talking Re: New Wacom Bamboo not working

    Ah, success is sweet - and so is hacking - when it works!!!

    I used Alexia's recommendation for WACOM_MO and copied, changed and inserted the entire line it was found on,
    to use it for my Bamboo CTL-460. I now have mouse control with the pen!! Not sure what else yet but this is progress!!!
    (I'm in the process of helping Ping and Alexia get this into code over at wacomlinux)

    A MINI HOWTO:

    Note: .../src is a folder from the archive you extracted from wacomlinux
    (i.e. mine is ~/Downloads/Sys/Wacom/linuxwacom-0.8.4-3/src)


    I added a line in the file .../src/xdrv/wcmUSB.c as shown below.
    Go ("cd ...") to the directory and make a backup first: "cp wcmUSB.c wcmUSB.c.bkp",
    then edit it (I'll assume you have a favorite editor ):

    look for the following "structure definition" with your editor
    Code:
    } WacomModelDesc [] =
    {
            { 0x00, 1000, 1000, &usbPenPartner }, /* PenPartner */
            { 0x10, 2032, 2032, &usbGraphire   }, /* Graphire */
            { 0x11, 2032, 2032, &usbGraphire2  }, /* Graphire2 4x5 */
    Navigate to the bottom of the list and add the line before the last closing brace "}":
    Code:
            { 0xD4, 2540, 2540, &usbBamboo     }  /* Bamboo Pen CTL-460 4x6 */
    You must also add a comma (",") between the brace "}" and the comment line for "/* TabletPC 0x9A */"
    (you'll get compile errors without it). In context, it should look like this:
    Code:
            { 0x93, 2540, 2540, &usbTabletPC   }, /* TabletPC 0x93 */
            { 0x9A, 2540, 2540, &usbTabletPC   }, /* TabletPC 0x9A */
    
            { 0xD4, 2540, 2540, &usbBamboo     }  /* Bamboo Pen CTL-460 4x6 */
    };
    
    Bool usbWcmInit(LocalDevicePtr local, char* id, float *version)
    Save and quit

    Now we need to add two lines in the .../src/`uname -r`/wacom_wac.c file (`uname -r` is the number part of the version of your Linux kernel
    - i.e. mine is 2.6.28, even tho I get '2.6.28-15-Generic' from the uname command)
    :

    Make a backup copy: "cp wacom_wac.c wacom_wac.c.bkp" and edit it.

    Look for:
    Code:
    static struct wacom_features wacom_features[] = {
            { "Wacom Penpartner",        7,   5040,  3780,  255,  0, PENPARTNER },
            { "Wacom Graphire",          8,  10206,  7422,  511, 63, GRAPHIRE },
            { "Wacom Graphire2 4x5",     8,  10206,  7422,  511, 63, GRAPHIRE },
    Again, navigate to the bottom of the list and insert the line above the empty braces "{}":
    Code:
            { "Wacom Bamboo Pen 4x6",     9, 14760,  9225,  511, 63, WACOM_MO },    // ...for CTL-460 Bamboo Pen
    so it should look like this when your done (no worries about a comma this time):
    Code:
            { "Wacom Intuos2 6x8",       10, 20320, 16240, 1023, 31, INTUOS },
            { "Wacom Bamboo Pen 4x6",     9, 14760,  9225,  511, 63, WACOM_MO },    // ...for CTL-460 Bamboo Pen Only
            { }
    };
    Almost done - navigate down into the next structure definition:
    Code:
    static struct usb_device_id wacom_ids[] = {
            { USB_DEVICE(USB_VENDOR_ID_WACOM, 0x00) },
            { USB_DEVICE(USB_VENDOR_ID_WACOM, 0x10) },
            { USB_DEVICE(USB_VENDOR_ID_WACOM, 0x11) },
    and add the following line above the empty braces again:
    Code:
            { USB_DEVICE(USB_VENDOR_ID_WACOM, 0xD4) },      // ...for CTL-460 Bamboo Pen Only
    It should look like this:
    Code:
            { USB_DEVICE(USB_VENDOR_ID_WACOM, 0x9A) },
            { USB_DEVICE(USB_VENDOR_ID_WACOM, 0x47) },
            { USB_DEVICE(USB_VENDOR_ID_WACOM, 0xD4) },      // ...for CTL-460 Bamboo Pen Only
            { }
    };
    Save and quit -we are done editing source code.

    Now from the wacomlinux directory and at the system prompt, do a
    Code:
    ./configure --enable-wacom
    then a full recompile/install:
    Code:
    make
    make install
    this updates the wcmUSB file in the system and builds a new wacom.ko file

    I then copied the wacom.ko to the /lib/modules/`uname -r`/kernel/driver/input/tablet folder and removed and inserted it. (my path looks like this: "/lib/modules/2.6.28-15-generic/kernel/drivers/input/tablet/")

    Ok now we need to unload any older wacom module in use, so as root (or "sudo bash") do:
    Code:
    # rmmod wacom
    # insmod /lib/modules/2.6.28-15-generic/kernel/drivers/input/tablet/wacom.ko
    ...and just for good measure...
    Code:
    # depmod -e
    # modprobe wacom
    None of the above should produce output other than maybe rmmod - otherwise your make command must have failed.
    Check for errors in editing - go character by character - C is very picky about syntax.

    (BTW you can type "exit" or ^D to quit the root 'sudo bash' shell - if you used it)

    plug in your tablet and try it!!

    Thx Favux and also Alexia from wacomlinux!!!

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

    Re: New Wacom Bamboo not working

    Hi TheguywholikesLinux!

    I just posted a howto - took a while. Post back if you need more help. I'll do my best

    I'm quite sure your tablet is much the same (your is 0xd1 and mine is 0xd4). Anyway, as Kermit might say "times flies when your havin fun" but it's 4am my time - gotta get some shut-eye

    It's late alright - I misquotes Kermit!!! Should be
    "times fun when your havin flies"

    good night - or should that be morning
    Last edited by kgingeri; October 14th, 2009 at 09:14 AM.

  4. #14
    Join Date
    Apr 2008
    Beans
    74

    Arrow Re: New Wacom Bamboo not working

    OK, here goes....

    oh, by the way, my bamboo is a CTH-460, not a GTL, not sure if that will make a difference.

    ok, wcmUSB.c backed up, I use gedit usually, so: gedit wcmUSB.c.
    Found line "} WacomModelDesc [] ="
    Added line "{ 0xD4, 2540, 2540, &usbBamboo } /* Bamboo Pen CTL-460 4x6 */" before the closing brace, also added comma on the line before.

    switched to /src/2.6.28/ and backed up wacom_wac.c

    Found wacom_features section, and added line "{ "Wacom Bamboo Pen 4x6", 9, 14760, 9225, 511, 63, WACOM_MO }, // ...for CTL-460 Bamboo Pen Only" to the end. Scrolled down to the next section and added "{ USB_DEVICE(USB_VENDOR_ID_WACOM, 0xD4) }, // ...for CTL-460 Bamboo Pen Only"

    Ok, I ran ./configure --enable-wacom and the make and I got this error message:
    Code:
    cp -f ../2.6.27/wacom.h .
    cp: `../2.6.27/wacom.h' and `./wacom.h' are the same file
    make[2]: *** [all] Error 1
    make[2]: Leaving directory `/home/shaun/Downloads/linuxwacom-0.8.3-6/src/2.6.28'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/shaun/Downloads/linuxwacom-0.8.3-6/src'
    make: *** [all-recursive] Error 1
    Last edited by TheguywholikesLINUX; October 14th, 2009 at 09:50 AM.

  5. #15
    Join Date
    Apr 2008
    Beans
    74

    Re: New Wacom Bamboo not working

    Ok, I renamed the wacom.h in /src/2.6.28 and then ran make again, seemed to work this time....

    sudo make install also seems to work....

    Now I am copying the files, unloading the previous file, rmmod wacom, and inserting the new one, insmod /lib/modules/2,6.28-15-generic/kernel/drivers/input/tablet/wacom.ko,
    ran depmod -e
    and modprobe wacom

    no output from any of those commands...

    BUT: The tablet is not doing anything.....

    and I still don't see anything in /proc/bus/input/devices

    output from /var/log/messages:
    Code:
    Oct 14 12:29:04 shaun-PC kernel: [ 2431.734710] usbcore: deregistering interface driver wacom
    Oct 14 12:29:38 shaun-PC kernel: [ 2465.671566] usbcore: registered new interface driver wacom
    Oct 14 12:29:38 shaun-PC kernel: [ 2465.671568] wacom: v1.49-pc-1:USB Wacom Graphire and Wacom Intuos tablet driver
    Oct 14 12:29:52 shaun-PC kernel: [ 2479.246085] usb 2-2: USB disconnect, address 2
    Oct 14 12:29:55 shaun-PC kernel: [ 2482.414148] hda-intel: IRQ timing workaround is activated for card #0. Suggest a bigger bdl_pos_adj.
    Oct 14 12:29:55 shaun-PC kernel: [ 2482.836007] usb 2-2: new full speed USB device using ohci_hcd and address 6
    Oct 14 12:29:56 shaun-PC kernel: [ 2483.058158] usb 2-2: configuration #1 chosen from 1 choice
    non of the /dev/input/event* are sowing any signs of anything when I use the tablet.
    Last edited by TheguywholikesLINUX; October 14th, 2009 at 12:31 PM.

  6. #16
    Join Date
    Apr 2008
    Beans
    74

    Arrow Re: New Wacom Bamboo not working

    W00t!!! I made a breakthrough!

    I followed the above edits but where it said 0xD4, I changed it to 0xD1 on 2 occasions on the first and second file, now I get this output from /proc/bus/input/devices:
    Code:
    I: Bus=0003 Vendor=056a Product=00d1 Version=0106
    N: Name="Wacom Bamboo Pen 4x6"
    P: Phys=
    S: Sysfs=/devices/pci0000:00/0000:00:0b.0/usb2/2-2/2-2:1.0/input/input8
    U: Uniq=
    H: Handlers=mouse2 event6 
    B: EV=1f
    B: KEY=1c63 70033 0 0 0 0
    B: REL=100
    B: ABS=10003000103
    B: MSC=1
    
    I: Bus=0003 Vendor=056a Product=00d1 Version=0106
    N: Name="Wacom Bamboo Pen 4x6"
    P: Phys=
    S: Sysfs=/devices/pci0000:00/0000:00:0b.0/usb2/2-2/2-2:1.1/input/input9
    U: Uniq=
    H: Handlers=mouse3 event7 
    B: EV=1f
    B: KEY=1c63 70033 0 0 0 0
    B: REL=100
    B: ABS=10003000103
    B: MSC=1
    I never got that before, so hopefully something is working....

    I get this from ls -lh /dev/input:

    Code:
    total 0
    drwxr-xr-x  2 root root     80 2009-10-14 12:52 by-id
    drwxr-xr-x  2 root root    160 2009-10-14 12:52 by-path
    crw-r-----  1 root root 13, 64 2009-10-14 12:48 event0
    crw-r-----  1 root root 13, 65 2009-10-14 12:48 event1
    crw-rw----+ 1 root root 13, 66 2009-10-14 12:48 event2
    crw-r-----  1 root root 13, 67 2009-10-14 12:48 event3
    crw-r-----  1 root root 13, 68 2009-10-14 11:48 event4
    crw-rw----+ 1 root root 13, 69 2009-10-14 11:48 event5
    crw-r-----  1 root root 13, 70 2009-10-14 12:52 event6
    crw-r-----  1 root root 13, 71 2009-10-14 12:52 event7
    crw-r-----  1 root root 13, 63 2009-10-14 12:48 mice
    crw-r-----  1 root root 13, 32 2009-10-14 12:48 mouse0
    crw-r-----  1 root root 13, 33 2009-10-14 11:48 mouse1
    crw-r-----  1 root root 13, 34 2009-10-14 12:52 mouse2
    crw-r-----  1 root root 13, 35 2009-10-14 12:52 mouse3
    lrwxrwxrwx  1 root root      6 2009-10-14 12:52 wacom -> event6
    lrwxrwxrwx  1 root root      6 2009-10-14 12:52 wacom-touch -> event7
    I am not sure if the wacom driver is working though because I get mouse2 and mouse3, and I am not sure if that means it is using it as a track pad.

    I tried wacdump on event6 and 7 but, although listing the amount of pressure and buttons and everything it did not change from 0 when I touched the pen to my tablet.

    now I get this in /var/log/messages:
    Code:
    Oct 14 13:00:47 shaun-PC kernel: [ 4334.024433] usb 2-2: USB disconnect, address 7
    Oct 14 13:00:51 shaun-PC kernel: [ 4338.256009] usb 2-2: new full speed USB device using ohci_hcd and address 8
    Oct 14 13:00:51 shaun-PC kernel: [ 4338.478617] usb 2-2: configuration #1 chosen from 1 choice
    Oct 14 13:00:51 shaun-PC kernel: [ 4338.481641] input: Wacom Bamboo Pen 4x6 as /devices/pci0000:00/0000:00:0b.0/usb2/2-2/2-2:1.0/input/input10
    Oct 14 13:00:51 shaun-PC logger: device input10 is bound to the driver
    Oct 14 13:00:51 shaun-PC logger: must rebind
    Oct 14 13:00:51 shaun-PC kernel: [ 4338.546685] input: Wacom Bamboo Pen 4x6 as /devices/pci0000:00/0000:00:0b.0/usb2/2-2/2-2:1.1/input/input11
    Oct 14 13:00:51 shaun-PC logger: device input11 is bound to the driver
    Oct 14 13:00:51 shaun-PC logger: must rebind
    Last edited by TheguywholikesLINUX; October 14th, 2009 at 02:05 PM.

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

    Re: New Wacom Bamboo not working

    Yeah, sorry TheguywholikesLINUX, I should have mentioned that you'd have to change the model ident (0xd1) - sorry.

    I haven't had a chance to find out about how much it is working but I can use it as a mouse, select, click, drag etc.

    Wacdump does show data, but I didn't pay attention as to what.

    I need to fine-tune the params for the source tho, I am pretty sure the numbers are not right. It is a WIP

    Is your tablet a 4x6? If not what is the 'active' size and the resolution (should be on the box)

  8. #18
    Join Date
    Apr 2008
    Beans
    74

    Re: New Wacom Bamboo not working

    It says:

    Pen active area size: 174 x 92mm (5.8 x 3.6 in)
    Touch active area size: 125 x 85mm (4,9 x 3.4 in)

    It does not say the resolution on the box so this is what I got from the wacom website:
    Resolution 2540 lpi

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

    Re: New Wacom Bamboo not working

    OK, great. I'll work with that, it's all I need. It'll be a day or so before I get a chance to work on it again. But I'll get here back on it.

  10. #20
    Join Date
    Apr 2008
    Beans
    74

    Talking Re: New Wacom Bamboo not working

    Ok thank you for all your help!

Page 2 of 88 FirstFirst 12341252 ... 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
  •