Page 3 of 54 FirstFirst 123451353 ... LastLast
Results 21 to 30 of 533

Thread: HOW TO Set Up a Wacom Serial Tablet in Ubuntu

  1. #21
    Join Date
    Dec 2010
    Beans
    48
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOW TO Set Up a Wacom Serial Tablet in Ubuntu

    Hello Favux et al,
    my new workstation arrived today. I installed Ubuntu 10.10 (64 bit server. I used your 'A Call for Testers' - Guide and it works.

    I used the 10.7 V1 Patch. Interestingly I don't have to wacdump to get the tablet initialized it works after login --> this is a major improvement for me.

    Code:
    udevadm info -a -p $(udevadm info -q path -n /dev/ttyS0)
    
      looking at device '/devices/pnp0/00:08/tty/ttyS0':
        KERNEL=="ttyS0"
        SUBSYSTEM=="tty"
        DRIVER==""
    
      looking at parent device '/devices/pnp0/00:08':
        KERNELS=="00:08"
        SUBSYSTEMS=="pnp"
        DRIVERS=="serial"
        ATTRS{id}=="PNP0501"
    
      looking at parent device '/devices/pnp0':
        KERNELS=="pnp0"
        SUBSYSTEMS==""
        DRIVERS==""
    I used the serial snipped but that didn't work. hardcoding in xorg.conf did the job.
    Thank you for this guide. Is there anything else I can test and poste to improve the quality of the driver ?
    Johannes alias Dreh

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

    Re: HOW TO Set Up a Wacom Serial Tablet in Ubuntu

    Hi Johannes,

    Absolutely Outstanding!

    Great timing. Glad your new IBM workstation arrived today. So now we have a confirmation for v3 of the 0.10.6 patch set in Lucid and version 1 of the 0.10.7 patch set in Maverick!
    Interestingly I don't have to wacdump to get the tablet initialized it works after login --> this is a major improvement for me.
    Super. I'm actually wondering if rather than setting the line discipline wacdump was getting around the error caused by not regenerating the build script. It will be interesting to see what sort of feedback we get on that.

    Right now I count it a victory that we are able to use 0.10.7. That's two versions newer than the default Lucid version (with all the bug fixes and improvements that brings) and only one behind the Maverick default.
    Is there anything else I can test and post to improve the quality of the driver ?
    Definitely. I should have v2 of the 0.10.7 patch set out in a little bit for testing. More code clean up and fixing of man wacom. After that there's maybe a couple of more easy fixes we could work on for v3. And we could also work on the serial snippet. Thank you for the udevadm info.

    After that it would be trying to get the patch set to apply to 0.10.8 if I'm feeling brave (maybe foolish is a better description). I think rather than just jumping to the 0.10.8 tar it would be better to test several snap shots along the 0.10.7+ tree. So you would need to compile several versions of 0.10.7+ for testing. Would you be game for that?

  3. #23
    Join Date
    Dec 2010
    Beans
    48
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOW TO Set Up a Wacom Serial Tablet in Ubuntu

    Sure! I have lots to do the next days but I'm gonna find some time in between.

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

    Re: HOW TO Set Up a Wacom Serial Tablet in Ubuntu

    Alright Johannes and anyone else interested,

    I have version 2 of the 0.10.7 patch set posted on the HOW TO. Looking forward to hearing your test results.


    Also while MatchDevicePath "/dev/ttyS*" didn't work in a serial tablet snippet for you could you test:
    Code:
    Section "InputClass"
        Identifier "Wacom legacy serial class"
    #    MatchProduct "???"
        MatchDevicePath "/dev/ttyS0"
        Driver "wacom"
        Option "ForceDevice" "Serial"
    EndSection
    and see if it works for you? Maybe using a wild card match (*) doesn't work for serial ports even though it does for usb ports. If it does then, since your udevadm info -a -p $(udevadm info -q path -n /dev/ttyS0) showed "PNP0501", please try:
    Code:
    Section "InputClass"
        Identifier "Wacom legacy serial class"
        MatchProduct "PNP0501"
        MatchDevicePath "/dev/ttyS0"
        Driver "wacom"
        Option "ForceDevice" "Serial"
    EndSection
    Don't know if MatchProduct is the correct one to use. The documentation is always so out of date. I'll try to see if there's something else like MatchId. If we can get something similar to this working we'd have a snippet that works for at least some serial tablets and shouldn't interfere with ISDV4 serial devices.

    And other testers remember you need to comment out (#) your Wacom sections in xorg.conf and the Wacom lines in "ServerLayout" to test the wacom.conf. Part III. in the HOW TO describes how to edit the wacom.conf.

    Alright I think I found it - MatchPnPID. So if MatchProduct above doesn't work try:
    Code:
    Section "InputClass"
        Identifier "Wacom legacy serial class"
        MatchPnPID "PNP0501"
        MatchDevicePath "/dev/ttyS0"
        Driver "wacom"
        Option "ForceDevice" "Serial"
    EndSection
    And if that works try changing ttyS0 back to a wildcard match ttyS*:
    Code:
    Section "InputClass"
        Identifier "Wacom legacy serial class"
        MatchPnPID "PNP0501"
        MatchDevicePath "/dev/ttyS0"
        Driver "wacom"
        Option "ForceDevice" "Serial"
    EndSection
    It would be great if the wild card match works. Our candidate serial tablet snippet would be more versatile, although I think most if not all use the S0 port.
    Last edited by Favux; June 30th, 2011 at 06:39 PM.

  5. #25
    Join Date
    Dec 2010
    Beans
    48
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOW TO Set Up a Wacom Serial Tablet in Ubuntu

    Quote Originally Posted by Favux View Post
    Alright Johannes and anyone else interested,

    I have version 2 of the 0.10.7 patch set posted on the HOW TO. Looking forward to hearing your test results.
    Hi Favux,
    unfortunately I get compiler errors.

    Code:
    make
    make  all-recursive
    make[1]: Entering directory `/home/johannes/Desktop/xf86-input-wacom-0.10.7'
    Making all in conf
    make[2]: Entering directory `/home/johannes/Desktop/xf86-input-wacom-0.10.7/conf'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/johannes/Desktop/xf86-input-wacom-0.10.7/conf'
    Making all in src
    make[2]: Entering directory `/home/johannes/Desktop/xf86-input-wacom-0.10.7/src'
      CC     xf86Wacom.lo
      CC     wcmCommon.lo
      CC     wcmConfig.lo
      CC     wcmISDV4.lo
      CC     wcmSerial.lo
    wcmSerial.c: In function ‘serialGetResolution’:
    wcmSerial.c:1041: error: ‘header’ undeclared (first use in this function)
    wcmSerial.c:1041: error: (Each undeclared identifier is reported only once
    wcmSerial.c:1041: error: for each function it appears in.)
    make[2]: *** [wcmSerial.lo] Error 1
    make[2]: Leaving directory `/home/johannes/Desktop/xf86-input-wacom-0.10.7/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/johannes/Desktop/xf86-input-wacom-0.10.7'
    make: *** [all] Error 2
    Probably this is a minor issue but my coding skills are very under developed. To counter check I recompiled V1 and it still compiles.
    Snippet testing is next ...

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

    Re: HOW TO Set Up a Wacom Serial Tablet in Ubuntu

    Hmmm. It compiled fine for me in Maverick. Let me check again. Maybe I put the wrong patch in or made a inadvertent change. You're sure you applied all 8 patches?

    Looking forward to the report on the snippet.

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

    Re: HOW TO Set Up a Wacom Serial Tablet in Ubuntu

    Ahh. I built it a few days ago without regenerating the build scripts, then there are no errors.

    But if I do regenerate them (aclocal && automake && autoconf) then I get the same error in /src:
    Code:
      CC     xf86Wacom.lo
      CC     wcmCommon.lo
      CC     wcmConfig.lo
      CC     wcmISDV4.lo
      CC     wcmSerial.lo
    wcmSerial.c: In function ‘serialGetResolution’:
    wcmSerial.c:1041: error: ‘header’ undeclared (first use in this function)
    wcmSerial.c:1041: error: (Each undeclared identifier is reported only once
    wcmSerial.c:1041: error: for each function it appears in.)
    make[2]: *** [wcmSerial.lo] Error 1
    I'll take down v2 of the 0.10.7 patches off the HOW TO then. So delete your copy or rename it so you don't confuse it with the hopefully fixed new version 2. If I can figure out the problem.

  8. #28
    Join Date
    Dec 2010
    Beans
    48
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOW TO Set Up a Wacom Serial Tablet in Ubuntu

    Hi Favux,
    tried compiling again with same results.

    Do I need to reference the snippet in the "serverlayout"-section of xorg.conf? Is this quote true in Ubuntu?
    Note: The InputClass section automatically enables the AutoServerLayout option, you do not need to specify it.
    If yes, I can't get the driver running with all given options:

    Code:
    MatchPnPID "PNP0501"
    Code:
    MatchProduct "PNP0501"

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

    Re: HOW TO Set Up a Wacom Serial Tablet in Ubuntu

    Not sure what you mean. There is no "ServerLayout" in xorg.conf.d. The 50-wacom.conf where you should be placing the snippet is at /usr/share/X11/xorg.conf.d in Maverick. Stick it between the serial (ISDV4) and Ntrig snippets. You should have your xorg.conf Wacom stuff commented out while testing a wacom.conf file in xorg.conf.d and there is no need to reference a .conf file snippet in the xorg.conf "ServerLayout". See also part III a) of the Bamboo P&T HOW TO.

    I'm surprised at least ttyS0 doesn't work.

    I'm not going to start working on fixing v2 for a little bit. Need to take a short break and do some other stuff. I don't think it'll be too hard, cross fingers. Maybe something this evening.


    Edit: Oops. I went ahead and found where it broke and I didn't even mean to. Just couldn't leave it alone. Now use the easy fix or try something else?

    Edit 2: OK, fixed it. Or at least it compiles without error. I'll post the fixed v2 as soon as a make a new patch to replace the one with the error. We'll see if the tablet still works.
    Last edited by Favux; June 30th, 2011 at 11:38 PM.

  10. #30
    Join Date
    Dec 2010
    Beans
    48
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOW TO Set Up a Wacom Serial Tablet in Ubuntu

    Sry I'm not a native english speaker - maybe I'm expressing myself a bit confusing
    My xorg.conf looks like this (without all the NVIDIA stuff)

    Code:
    #Section "InputDevice"
    #    Driver        "wacom"
    #    Identifier    "stylus"
    #    Option        "Device"         "/dev/ttyS0"
    #    Option        "Type"           "stylus"
    #    Option        "ForceDevice"    "Serial"
    #EndSection
    
    #Section "InputDevice"
    #    Driver        "wacom"
    #    Identifier    "eraser"
    #    Option        "Device"         "/dev/ttyS0"
    #    Option        "Type"           "eraser"
    #    Option        "ForceDevice"    "Serial"
    #EndSection
    
    #Section "InputDevice"
    #    Driver        "wacom"
    #    Identifier    "cursor"
    #    Option        "Device"         "/dev/ttyS0"
    #    Option        "Type"           "cursor"
    #    Option        "ForceDevice"    "Serial"
    #EndSection
    Section "ServerLayout"
        Identifier     "Layout0"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "Mouse0" "CorePointer"
    #       InputDevice   "stylus"
    #    InputDevice   "eraser"
    #    InputDevice   "cursor"
    EndSection
    and the /usr/share/X11/xorg.conf.d/50-wacom.conf looks like this:

    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 serial class"
            MatchProduct "Serial Wacom Tablet"
            Driver "wacom"
            Option "ForceDevice" "ISDV4"
    EndSection
    
    Section "InputClass"
            Identifier "Wacom serial class identifiers"
            MatchProduct "WACf|FUJ02e5|FUJ02e7"
            Driver "wacom"
            Option "ForceDevice" "ISDV4"
    EndSection
    
    Section "InputClass"
        Identifier "Wacom legacy serial class"
        MatchProduct "PNP0501"
        #MatchPnPID "PNP0501"
        MatchDevicePath "/dev/ttyS0"
        Driver "wacom"
        Option "ForceDevice" "Serial"
    EndSection
    
    # N-Trig Duosense Electromagnetic Digitizer
    Section "InputClass"
            Identifier "Wacom N-Trig class"
            MatchProduct "HID 1b96:0001|N-Trig Pen"
            MatchDevicePath "/dev/input/event*"
            Driver "wacom"
            Option "Button2" "3"
    EndSection
    The xorg.conf.d/50-wacom.conf wont start up the tablet in any variation. maybe my Digitizer II just isn't compatibel with udev at all. To cross check if I did something else wrong I uncommented the wacom lines in xorg.conf and 'BOOM' it works again after xorg restart.

    Ok I have to go to bed. I'm tired like hell. Tomorrow morning I can test the repaired driver (v2) if it's available.
    dreh alias johannes

Page 3 of 54 FirstFirst 123451353 ... 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
  •