X.org doesn't hotplug wacom serial tablets

Bug #424620 reported by Popolon
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xf86-input-wacom (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: xserver-xorg-input-wacom

On Jaunty,
Description: Ubuntu 9.04
Release: 9.04
<
I've a little USB volito Wacom and a big serial Intuos (GD-0912-R) graphics tablets, connected via serial<->USB adapter (my computer doesn't have serial port).

The second one is sold really cheap by windows users because there are no more supported on their systems.

USB volito hotplug works perfectly, nothing to configure in X.org.
USB-serial cable + serial wacom hotplug doesn't work.
I need to configure the device in /etc/X11/xorg.conf
The problem is if the wacom is plugged before the system boot, it's not detected, and as hotplug doesn't work, I can't plug it after X.org has booted.
If the device isn't present at X.org starting, I've a text screen giving me several solution to fallback from X.org failure.
Then I've to plug the device just after Linux kernel boot, but before X.org start.

If X.org could hotplug detect it, it could be better.

My USB<=>serial cable device is :
Bus 002 Device 002: ID 099a:7160 Zippy Technology Corp.

It is well detected if usbserial mod is loadad :

[57054.204054] usb 2-4: new full speed USB device using ohci_hcd and address 5
[57054.407463] usb 2-4: configuration #1 chosen from 1 choice
[57054.521015] USB Serial support registered for pl2303
[57054.521061] pl2303 2-4:1.0: pl2303 converter detected
[57054.562419] usb 2-4: pl2303 converter now attached to ttyUSB0
[57054.562459] usbcore: registered new interface driver pl2303
[57054.562466] pl2303: Prolific PL2303 USB to serial adaptor driver

The tablet is even not seen as a standard mouse (as USB wacom are, if the driver is not well configured).

[lspci]
00:00.0 RAM memory [0500]: nVidia Corporation C51 Host Bridge [10de:02f1] (rev a2)
     Subsystem: ASRock Incorporation Device [1849:02f1]
00:05.0 VGA compatible controller [0300]: nVidia Corporation C51G [GeForce 6100] [10de:0242] (rev a2)
     Subsystem: ASRock Incorporation Device [1849:0242]

Revision history for this message
Bryce Harrington (bryce) wrote :

Hi popolon,

Please attach the output of `lspci -vvnn` and `dmesg`, and attach your /var/log/Xorg.0.log (and maybe Xorg.0.log.old) file from after reproducing this issue. If you're using a custom /etc/X11/xorg.conf please attach that as well.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: needs-xorglog
tags: added: needs-lspci-vvnn
Changed in wacom-tools (Ubuntu):
status: New → Incomplete
Revision history for this message
Popolon (popolon) wrote :

In dmesg, at 2271.794995, I unpluged the converter (it was well detected by lsusb, but no ttyUSB0 was created), and repluged it one line later, at 2273.512192. the PL2303 was not seen before in the dmesg.

In this case I used kernel 2.6.30 from a ppa (for ext4 stability), but the problem was the same with official 2.6.28 kernel.

linux-image-2.6.30-020630-generic 2.6.30-020630

This is why for I need to unplug/replug before X start.

Revision history for this message
Popolon (popolon) wrote :

This is the lspci. I booted with a standard ubuntu X.org config, to generate this two files and explain more deeply the source of the problem.

The detail of the device (could be an hardware problem on the device or motherboard) :
(I made a mistake in my previous comment, it was not detected in lsusb) before I unplug/replug it.

Anyway an hotplug detection by X.org of serial tablet (via usb or direct serial) could be better for the overall hotplug system. I suppose some other serial devices has the same kind of hotplug problem.

wacdump /dev/ttyUSB0 see immediatly the model of my wacom :
MODEL=Wacom Intuos 9x12 ROM=1.1-7
CLS=Serial VNDR=Wacom DEV=Intuos SUB=GD-0912-R

Then this can be autodetected.

Bus 002 Device 005: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 1.10
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 8
  idVendor 0x067b Prolific Technology, Inc.
  idProduct 0x2303 PL2303 Serial Port
  bcdDevice 2.02
  iManufacturer 0
  iProduct 0
  iSerial 0
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 39
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower 100mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 3
      bInterfaceClass 255 Vendor Specific Class
      bInterfaceSubClass 0
      bInterfaceProtocol 0
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x000a 1x 10 bytes
        bInterval 1
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x02 EP 2 OUT
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0040 1x 64 bytes
        bInterval 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x83 EP 3 IN
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0040 1x 64 bytes
        bInterval 0
Device Status: 0x0000
  (Bus Powered)

Revision history for this message
Popolon (popolon) wrote :
Download full text (5.1 KiB)

Here the xorg.conf that allow to use my serial-usb converter + serial tablet config.

As the hw problem of my usb-serial converter, only occur at computer turn on time, and I only want to reboot, I disconnected the usb-serial converter, booted without it, wait for error msg replugged it to finish, as I've to do at each boot.

The best solution should really to be able to boot without tablet and hotplug detection as for other, I don't want to use it all the day, and then don't want to put it on all the day. In all case, I must, with this xorg.conf, unplug/replug it at first boot time, and unplug it after X.org boot. let it connected for reboot or plug it before reboot is fine too.

The X.org.0.log error log finish with this kind of error (about the same for each of the 3 configured device):

(**) Option "SendCoreEvents"
(**) stylus: always reports core events
(**) stylus device is /dev/ttyUSB0
(**) stylus (stylus) is not a pad
(**) stylus is in absolute mode
(**) WACOM: suppress value is 2
(**) Option "BaudRate" "9600"
(**) stylus: serial speed 9600
(II) XINPUT: Adding extended input device "stylus" (type: Wacom Stylus)
(**) Option "Device" "/dev/ttyUSB0"
(EE) xf86OpenSerial: Cannot open device /dev/ttyUSB0
        No such file or directory.
Error opening /dev/ttyUSB0 : No such file or directory
(II) UnloadModule: "wacom"
(**) Option "SendCoreEvents"
(**) eraser: always reports core events
(**) eraser device is /dev/ttyUSB0
(**) eraser (eraser) is not a pad
(**) eraser is in absolute mode
(**) WACOM: suppress value is 2
(**) Option "BaudRate" "9600"
(**) eraser: serial speed 9600
(II) XINPUT: Adding extended input device "eraser" (type: Wacom Eraser)
(**) Option "Device" "/dev/ttyUSB0"
(EE) xf86OpenSerial: Cannot open device /dev/ttyUSB0
        No such file or directory.
Error opening /dev/ttyUSB0 : No such file or directory
II) UnloadModule: "wacom"
(**) Option "SendCoreEvents"
(**) cursor: always reports core events
(**) cursor device is /dev/ttyUSB0
(**) cursor (cursor) is not a pad
(**) cursor is in relative mode
(**) WACOM: suppress value is 2
(**) Option "BaudRate" "9600"
(**) cursor: serial speed 9600
(II) XINPUT: Adding extended input device "cursor" (type: Wacom Cursor)
(**) Option "Device" "/dev/ttyUSB0"
(EE) xf86OpenSerial: Cannot open device /dev/ttyUSB0
        No such file or directory.
Error opening /dev/ttyUSB0 : No such file or directory
(II) UnloadModule: "wacom"

Backtrace:
0: /usr/X11R6/bin/X(xorg_backtrace+0x26) [0x4f1b66]
1: /usr/X11R6/bin/X(xf86SigHandler+0x41) [0x485a61]
2: /lib/libc.so.6 [0x7f5425379040]
3: /lib/libc.so.6(strlen+0x10) [0x7f54253c6c40]
4: /lib/libc.so.6(_IO_vfprintf+0x3dbe) [0x7f542538f75e]
5: /lib/libc.so.6(__vsnprintf_chk+0xa8) [0x7f5425442738]
6: /usr/X11R6/bin/X(LogVWrite+0x131) [0x4fb4a1]
7: /usr/X11R6/bin/X(ErrorF+0x8d) [0x4fb68d]
8: /usr/lib/xorg/modules/input//wacom_drv.so [0x7f5421d8d0d2]
9: /usr/X11R6/bin/X(ActivateDevice+0x3e) [0x447a8e]
10: /usr/X11R6/bin/X(InitAndStartDevices+0x3a) [0x447baa]
11: /usr/X11R6/bin/X(main+0x37f) [0x433d4f]
12: /lib/libc.so.6(__libc_start_main+0xe6) [0x7f54253645a6]
13: /usr/X11R6/bin/X [0x433219]
Saw signal 11. Server aborting.

In case of pluged and de...

Read more...

Revision history for this message
Popolon (popolon) wrote :

Last informations addition :
In first comment, I made a mistake:
Zippy Technology Corp. is my USB keyboard, not the converter
Prolific Technology, Inc. PL2303 is the converter, it use usbserial generic usbserial module).

Mypaint (that is in official debian packages, since one week or two, not in ubuntu for now), enable and autodetect all wacom like input device by default, it could be good to have the same thing in Inkscape and Gimp, instead of having the new user and other that forgot since the last configuration that there is to enable them in preferences before it works. I would probably add a bug report in Inkscape part of the tracker ?

Bryce Harrington (bryce)
tags: added: jaunty
Bryce Harrington (bryce)
tags: removed: needs-lspci-vvnn
Bryce Harrington (bryce)
description: updated
Revision history for this message
madbiologist (me-again) wrote :

The Linux kernel 2.6.34-rc1 may assist in solving this issue. From the changelog:

commit 67b9946dd07eeef8188e4cab816d2c370bcaa7b2
Author: John Tsiombikas
Date: Thu Feb 25 17:09:08 2010 +0200

    USB: pl2303: initial TIOCGSERIAL support

    I've got a trivial patch for the pl2303 driver, that's what I needed to
    make the wacom serial tablet driver work properly. It uses the
    TIOCGSERIAL ioctl to determine if it's talking to a serial device or
    not, which I gather is rather common, but the pl2303 driver didn't
    implement that ioctl.

    Here's a patch, I'm not sure it's absolutely correct, I mostly looked at
    other similar usbserial drivers to see what I must do, but it works for
    me.

    Signed-off-by: John Tsiombikas
    Signed-off-by: Greg Kroah-Hartman

There is a PPA of this kernel at http://kernel.ubuntu.com/~kernel-ppa/mainline/

Revision history for this message
Popolon (popolon) wrote :

This patch works perfectly. I didn't tryed with my pen I lost (this is the second in few time), but at least wacom 4D mouse works perfectly.

I hope it will be backported on karmic kernel or at least lucid one for next release.

Revision history for this message
Popolon (popolon) wrote :

I forgot to write that I tested with the linux-image-2.6.34-999-generic (if someone else is interested). Saddly it doesn't support my graphic card (GeForce 6100), I'm limited to 800x600 with this kernel). So I hope it will backported to mainstream one, to avoid a recompilation for every security update.

Bryce Harrington (bryce)
affects: wacom-tools (Ubuntu) → xf86-input-wacom (Ubuntu)
Revision history for this message
Bryce Harrington (bryce) wrote :

[This is an automatic notification.]

Hi Popolon,

This bug was reported against an earlier version of Ubuntu, can you
test if it still occurs on Lucid?

Please note we also provide technical support for older versions of
Ubuntu, but not in the bug tracker. Instead, to raise the issue through
normal support channels, please see:

    http://www.ubuntu.com/support

If you are the original reporter and can still reproduce the issue on
Lucid, please run the following command to refresh the report:

  apport-collect 424620

If you are not the original reporter, please file a new bug report, so
we can work with you as the original reporter instead (you can reference
bug 424620 in your report if you think it may be related):

  ubuntu-bug xorg

If by chance you can no longer reproduce the issue on Lucid or if you
feel it is no longer relevant, please mark the bug report 'Fix Released'
or 'Invalid' as appropriate, at the following URL:

  https://bugs.launchpad.net/ubuntu/+bug/424620

Changed in xf86-input-wacom (Ubuntu):
status: Incomplete → New
status: New → Incomplete
tags: added: needs-retested-on-lucid-by-june
Revision history for this message
Bryce Harrington (bryce) wrote :

We're closing this bug since it is has been some time with no response from the original reporter. However, if the issue still exists please feel free to reopen with the requested information. Also, if you could, please test against the latest development version of Ubuntu, since this confirms the bug is one we may be able to pass upstream for help.

Changed in xf86-input-wacom (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.