Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: Wacom 22HD in ubuntu 12.04

  1. #1
    Join Date
    Oct 2012
    Beans
    15

    Wacom 22HD in ubuntu 12.04

    I have a wacom cintiq 22HD tablet, and have a problem under
    ubuntu 12.04, on a Thinkpad T400s.

    I had it working, thought not well, in ubuntu 10.04. Both the
    display and usb input worked, but I couldn't get a calibration
    tool to work. So I upgraded to 12.04. Now I cannot it to recognize the usb device.

    I installed wacom.ko from the kernel, or also from input-wacom-0.14.0, with the same result.

    The device does show up in lsusb. (I don't have the tablet handy now,
    so I can't show the precise output. But there were two
    lines with wacom in them.) However it does not show up
    in /proc/bus/input/devices (as I believe it should), and
    the wacom symlink does not appear in /dev/input.

    Various error messages appear, this seems to be the most relevant,
    from /var/log/syslog:

    Oct 15 08:02:59 atlas kernel: [ 5037.284343] usb 1-1: Product: Cintiq 22HD HUB
    Oct 15 08:02:59 atlas kernel: [ 5037.284345] usb 1-1: Manufacturer: WACOM
    Oct 15 08:02:59 atlas kernel: [ 5037.285316] hub 1-1:1.0: USB hub found
    Oct 15 08:02:59 atlas kernel: [ 5037.286338] hub 1-1:1.0: 2 ports detected
    Oct 15 08:03:00 atlas kernel: [ 5037.556335] usb 1-1.1: new full-speed USB device number 12 using ehci_hcd
    Oct 15 08:03:00 atlas kernel: [ 5037.650602] usb 1-1.1: New USB device found, idVendor=056a, idProduct=00fa
    Oct 15 08:03:00 atlas kernel: [ 5037.650606] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    Oct 15 08:03:00 atlas kernel: [ 5037.650609] usb 1-1.1: Product: Cintiq 22HD Tablet
    Oct 15 08:03:00 atlas kernel: [ 5037.650611] usb 1-1.1: Manufacturer: Tablet
    Oct 15 08:03:00 atlas mtp-probe: checking bus 1, device 12: "/sys/devices/pci0000:00/0000:00:1a.7/usb1/1-1/1-1.1"
    Oct 15 08:03:00 atlas mtp-probe: bus: 1, device: 12 was not an MTP device

    That looks promising at first, but then seems to fail, I don't know whether the mtp device stuff is relevant.

    According to
    http://osdir.com/ml/ubuntu-bugs/2012-09/msg08665.html

    This bug was fixed in the package linux - 3.5.0-14.15

    so I upgraded the kernel:

    Here is uname -r:
    3.5.4-030504-generic

    Still no luck.

    My understanding is that this is a very low level problem:
    the very first thing I should be able to do is detect the
    usb port, before any other system stuff should come in to
    play.

    I've tried many many things. Any help would be appreciated.
    If I can provide any more information let me know. Thanks.
    Last edited by jdadams; October 15th, 2012 at 05:00 PM. Reason: minor misprints

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

    Re: Wacom 22HD in ubuntu 12.04

    Hi jdadams,

    Welcome to Ubuntu forums!


    As you realize support for the Cintiq 22HD was only recently added.
    Cintiq 22HD kernel support added to input-wacom on 7-19-12: http://linuxwacom.git.sourceforge.ne...0500244bfab0cd In 0.14.0+.

    Cintiq 22HD X support added to xf86-input-wacom on 7-13-12: http://linuxwacom.git.sourceforge.ne...aac05832d54ea7 In 0.17.0.

    I don't know which kernel version has the wacom.ko that supports your model. Maybe 3.6 because the bug report (actually a feature request) you link to seems to show the Ubuntu kernel team backporting support for it to kernel 3.5.

    Of course that's what input-wacom is for. To backport model support in newer kernels to older kernels so you end up with a wacom.ko that supports your new tablet. You need to clone the input-wacom git repository to get the commit I linked to above. It's not yet in a release. Regardless of how you get the wacom.ko if it is working you should see your tablet in lsusb and in xinput list. And if you have a xf86-input-wacom that supports your tablet you should see in xinput list (in the case of a Cintiq HD) at least 3 lines with the parent device appended by at least stylus, eraser, and pad. Or xsetwacom list would be populated.

    So first check for kernel support i.e. a working wacom.ko.

    Then check your version of xf86-input-wacom:
    Code:
    xsetwacom -V
    You need at least 0.17.0 to get the commit I link to above.

    By the way Ron from Debian stopped updating the wacom.rules about 2 years ago now. So there won't be a symlink for your Cintiq. I'm not sure if Ubuntu has added new rules since his last one. The Linux Wacom Project doesn't make new rules because they don't see the reason to use xorg.conf anymore and beside that's a Distro job. The "current" rules table is here: http://sourceforge.net/apps/mediawik...iles_with_udev I did add a few more rules past where Ron left them and supplied instructions on making a new one.
    Last edited by Favux; October 16th, 2012 at 12:08 AM.

  3. #3
    Join Date
    Oct 2012
    Beans
    15

    Re: Wacom 22HD in ubuntu 12.04

    Favux,

    Thanks for the speedy reply.

    I upgraded xf86-input-wacom to version 0.17.0.

    jda@atlas:~$ xsetwacom -V
    0.17.0

    >I don't know which kernel version has the wacom.ko that supports >your model. Maybe 3.6 ...

    >Of course that's what input-wacom is for. ... You need to clone the input-wacom git repository >...Regardless of how you get the >wacom.ko if it is working you should see your tablet in >lsusb and in xinput list.

    This is the problem. I have tried almost every wacom.ko I can think of with
    the same result. It shows up in lsusb but nowhere else, not in /proc/bus/input/devices,
    nor xinput list, nor anywhere else.

    jda@atlas:/var/log$ lsusb
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 001 Device 002: ID 056a:00f9 Wacom Co., Ltd
    Bus 001 Device 005: ID 17ef:480d Lenovo Integrated Webcam [R5U877]
    Bus 004 Device 002: ID 147e:2016 Upek Biometric Touchchip/Touchstrip Fingerprint Sensor
    Bus 004 Device 003: ID 0a5c:2145 Broadcom Corp. Bluetooth with Enhanced Data Rate II
    Bus 006 Device 002: ID 046d:c52f Logitech, Inc. Wireless Mouse M305
    Bus 001 Device 006: ID 056a:00fa Wacom Co., Ltd


    How can I tell if the wacom.ko is the right one? I tried the one from the kernel 3.5.4,
    as well as from the latest linuxwacom as you suggested.

    I haven't tried wacom.ko from any 3.6 kernel. As far as I can tell there is no
    package for this, so I can't install it using apt-get, but I have to compile it
    myself. Is there a way to compile only a few things, including wacom?

    Also, when I'm testing, can I compile wacom, then rmmod wacom, modprobe wacom
    (in the directory where wacom.ko is) to install it? Then test? Or do I have
    to put in in /lib/.../modules/..., and/or reboot?

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

    Re: Wacom 22HD in ubuntu 12.04

    Check the date on the wacom.ko's. Are they both in /lib/modules/`uname -r`/kernel/drivers/input/tablet/wacom.ko? You only want one there. Check the date of the input-wacom-0.14.0 one you compiled and use that one in lib/modules.

    Also check on whether the wacom.ko is autoloading. Do you see it in list modules?
    Code:
    lsmod
    or
    lsmod | grep wacom

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

    Re: Wacom 22HD in ubuntu 12.04

    Let me explain a little more. What follows is a bit of voodoo.
    Also, when I'm testing, can I compile wacom, then rmmod wacom, modprobe wacom (in the directory where wacom.ko is) to install it? Then test? Or do I have to put in in /lib/.../modules/..., and/or reboot?
    Yes you should be able to modprobe and so on, however I never do. This dates back to when the usb kernel driver wacom.ko was introduced. Installing it in lib/modules was a much surer way of getting it to work. Apparently due to some teething problems. Additionally you often had to restart several times for it to "kick in". And on a fair number of systems it still wouldn't auto-load. Adding the rebuild all module dependencies, sudo depmod -a, cut down on that but didn't eliminate it. In that case you need to add 'wacom' to the module list in the /etc/modules file. I don't know why this is so.

  6. #6
    Join Date
    Oct 2012
    Beans
    15

    Re: Wacom 22HD in ubuntu 12.04

    I think I'm making progress.

    I had a long detour because I got the "black screen" bug in kernel 3.5.0. I see you commented on that elsewhere. In any event I finally solved that. Another bug was that
    I had to put in a symlink from /lib/modules/3.5.0-030500-generic/build to
    /usr/src/linux-headers-3.5.0-030500-generic
    But that's ok now.

    I compiled wacom.ko in the latest version of input-wacom, version 0.14.0 I believe, that I got from git as you said. Here is the output of git log:

    commit 126ec2dd608dcb251d351754694ea282a0860423
    Author: Ping Cheng <pingc@wacom.com>
    Date: Tue Oct 2 15:43:43 2012 -0700

    Add support to ISDV4 0x100 and 0x101

    Both are 10 finger-MT devices, where 0x101 is penabled.

    Signed-off-by: Ping Cheng <pinglinux@gmail.com>

    [snip]

    commit 4a01ca9f67874ff422455adbf710bea9799f762d
    Author: Ping Cheng <pinglinux@gmail.com>
    Date: Thu Jul 19 15:04:07 2012 -0700

    input-wacom-0.14.0

    which looks good. wacom.ko compiles, but then:

    modprobe wacom
    FATAL: Error inserting wacom (/lib/modules/3.5.0-030500-generic/kernel/drivers/input/tablet/wacom.ko): Invalid module format

    and in syslog:

    Oct 16 09:55:00 atlas kernel: [ 1468.784323] wacom: disagrees about version of symbol module_layout

    so it seems there is still some class of versions going on.
    I got this after doing depmod -a (before this I got a different
    error about not finding the module).

    I'm not very good at git, so please be explicit if I need to do something with it. What I did was:

    git clone git://linuxwacom.git.sourceforge.net/gitroot/linuxwacom/inpux-wacom

    You asked me to check dates of files, but everything has the current date,
    October 15/16 2012.

    This is my kernel:

    3.5.0-030500-generic
    Last edited by jdadams; October 16th, 2012 at 03:59 PM.

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

    Re: Wacom 22HD in ubuntu 12.04

    You clone command is correct and the git log shows the last commit so you're up to date.

    Not sure what's going wrong. I believe input-wacom is suppose to build for 3.6. By the way did the wacom.ko show up in the new 3.7 folder or still in 2.6.38? Wrong headers? Do you see the correct headers in /usr/src?

    See the clone instructions in appendix 1 on the BambooPT HOW TO. They're the alternate to the tar instructions in part I. Is that what you did?

  8. #8
    Join Date
    Oct 2012
    Beans
    15

    Re: Wacom 22HD in ubuntu 12.04

    No, wacom.ko showed up in 2.6.38, not in 3.7. Should I try
    to compile the one in 3.7?

    I'm not sure what the question about headers is, here is
    /usr/src:
    drwxr-xr-x 24 root root 4096 Oct 13 06:44 linux-headers-3.2.0-32
    drwxr-xr-x 7 root root 4096 Oct 13 06:44 linux-headers-3.2.0-32-generic
    drwxr-xr-x 7 root root 4096 Oct 13 06:44 linux-headers-3.2.0-32-generic-pae
    drwxr-xr-x 23 root root 4096 Oct 16 06:36 linux-headers-3.5.0-030500
    drwxr-xr-x 7 root root mdrwxr-xr-x 24 root root 4096 Oct 13 06:44 linux-headers-3.2.0-32
    drwxr-xr-x 7 root root 4096 Oct 13 06:44 linux-headers-3.2.0-32-generic
    drwxr-xr-x 7 root root 4096 Oct 13 06:44 linux-headers-3.2.0-32-generic-pae
    drwxr-xr-x 23 root root 4096 Oct 16 06:36 linux-headers-3.5.0-030500
    drwxr-xr-x 7 root root 4096 Oct 16 09:21 linux-headers-3.5.0-030500-generic
    4096 Oct 16 09:21 linux-headers-3.5.0-030500-generic

    I'm running kernel 3.5.0, not 3.6. Do I need to use 3.6?
    I haven't done that yet because I didn't think I needed to,
    and I would have to compile it myself.

    Thanks for the help.

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

    Re: Wacom 22HD in ubuntu 12.04

    Sorry about confusing you. I was just curious about the wacom.ko location. I checked the configure.ac and it looks like 3.7 will be the first kernel to show up in the 3.7 folder.

    The headers look good for your 3.5 kernel:
    Code:
    drwxr-xr-x 23 root root 4096 Oct 16 06:36 linux-headers-3.5.0-030500
    drwxr-xr-x 7 root root 4096 Oct 16 09:21 linux-headers-3.5.0-030500-generic
    And no, I was just saying I was reasonably sure I had seen folks reporting being able to build input-wacom up to and including the 3.6 kernel. Not suggesting you switch.

    In fact I wish you hadn't changed from the 3.4 to 3.5 kernel.

    By the way you said you were in Precise 12.04. But it's default kernel is 3.2. So are you actually using Quantal 12.10 beta 2? I think its default kernel might be 3.4.

    The other thing I'm curious about is the nomenclature of your kernel labeling. 3.5.0-030500 doesn't seem to be standard Ubuntu format, which usually only has 2 digits after the hyphen. Did you get this kernel from a PPA?

    Edit: Oops not paying attention. The other headers are for 3.2 so you are in Precise, and what, 3.5 is Quantal's? Anyway my suggestion would be to boot into your latest 3.2 kernel and compile input-wacom there and see how it goes.
    Last edited by Favux; October 16th, 2012 at 06:51 PM.

  10. #10
    Join Date
    Oct 2012
    Beans
    15

    Re: Wacom 22HD in ubuntu 12.04

    I tried kernel 3.5* because of a post mentioned above:
    According to
    http://osdir.com/ml/ubuntu-bugs/2012-09/msg08665.html
    This bug was fixed in the package linux - 3.5.0-14.15

    This is probably a red herring, my guess is it wasn't working because of the module wasn't loading.

    In any event, back to 3.2.0-32-generic-pae, it is *almost* working. I am getting the wacom stuff showing up in /proc/bus/input/devices, and
    in various log files. However, incredibly, when I plug in the wacom to the usb port, the (laptop) monitor goes black. By ssh-ing from
    another machine, I could see what happened:

    Here is /var/log/syslog
    Oct 17 06:51:40 atlas kernel: [ 141.852371] usb 2-1: new high-speed USB device number 2 using ehci_hcd
    Oct 17 06:51:40 atlas kernel: [ 142.006437] hub 2-1:1.0: USB hub found
    Oct 17 06:51:40 atlas kernel: [ 142.007463] hub 2-1:1.0: 2 ports detected
    Oct 17 06:51:42 atlas kernel: [ 143.576555] usb 2-1.1: new full-speed USB device number 3 using ehci_hcd
    Oct 17 06:51:42 atlas kernel: [ 143.672843] input: Wacom Cintiq 22HD as /devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.1/2-1.1:1.0/input/input9
    Oct 17 06:51:42 atlas mtp-probe: checking bus 2, device 3: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.1"
    Oct 17 06:51:42 atlas mtp-probe: bus: 2, device: 3 was not an MTP device
    Oct 17 06:51:42 atlas gnome-session[1394]: Gdk-WARNING: gnome-session: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.#012
    Oct 17 06:51:43 atlas acpid: client 1116[0:0] has disconnected
    Oct 17 06:51:43 atlas acpid: client connected from 4205[0:0]
    Oct 17 06:51:43 atlas acpid: 1 client rule loaded
    Oct 17 06:51:43 atlas bluetoothd[822]: Endpoint unregistered: sender=:1.27 path=/MediaEndpoint/HFPAG
    Oct 17 06:51:43 atlas bluetoothd[822]: Endpoint unregistered: sender=:1.27 path=/MediaEndpoint/A2DPSource
    Oct 17 06:51:43 atlas bluetoothd[822]: Endpoint unregistered: sender=:1.27 path=/MediaEndpoint/A2DPSink
    Oct 17 06:51:43 atlas kernel: [ 144.774599] init: lightdm main process (1079) terminated with status 1

    and kern.log:

    Oct 17 06:51:40 atlas kernel: [ 141.852371] usb 2-1: new high-speed USB device number 2 using ehci_hcd
    Oct 17 06:51:40 atlas kernel: [ 142.006437] hub 2-1:1.0: USB hub found
    Oct 17 06:51:40 atlas kernel: [ 142.007463] hub 2-1:1.0: 2 ports detected
    Oct 17 06:51:42 atlas kernel: [ 143.576555] usb 2-1.1: new full-speed USB device number 3 using ehci_hcd
    Oct 17 06:51:42 atlas kernel: [ 143.672843] input: Wacom Cintiq 22HD as /devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.1/2-1.1:1.0/input/input9
    Oct 17 06:51:43 atlas kernel: [ 144.774599] init: lightdm main process (1079) terminated with status 1
    Oct 17 06:51:58 atlas kernel: [ 159.850525] init: failsafe-x main process (4216) terminated with status 1

    I'm not sure what's up with lightdm. I'm running the default 12.04 stuff, including unity, not gnome.

    Probably something is seriously messed up in my installation. Assuming this, what would be the best and easiest way
    to clean it up? Can I do a partial or complete reinstall? Can I do this using apt-get?

Page 1 of 3 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
  •