Bug 494216 - does not allow ttyUSB devices for serial tablet config
Summary: does not allow ttyUSB devices for serial tablet config
Status: RESOLVED DUPLICATE of bug 494224
Alias: None
Product: openSUSE 11.0
Classification: openSUSE
Component: SaX2 (show other bugs)
Version: Final
Hardware: i686 openSUSE 11.0
: P4 - Low : Enhancement (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-11 20:01 UTC by J L Turriff
Modified: 2009-04-14 06:59 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description J L Turriff 2009-04-11 20:01:17 UTC
User-Agent:       Mozilla/5.0 (compatible; Konqueror/3.5; Linux 2.6.25.5-1.1-pae) KHTML/3.5.9 (like Gecko) SUSE

I'm running openSuSE 11.0 on a PC with a A7VBX-X motherboard, which has only one serial port, which is dedicated to my external 56Kbaud modem.  I also have a Wacom Intuos serial tablet which I want to use with the Gimp, so I acquired a USB--tty adapter which provides two additional serial ports at /dev/ttyUSB0 and /dev/ttyUSB1.  When I attach the tablet to /dev/ttyUSB0 and attempt to make it available via Sax2, these two new ports do not appear on the list of available devices, though I am able to view data coming into the system via the wacdump program.

Reproducible: Always

Steps to Reproduce:
1. Plug the USB--tty adapter into a free USB port.  dmesg shows

usb 3-2: new full speed USB device using uhci_hcd and address 8
usb 3-2: configuration #1 chosen from 1 choice
ftdi_sio 3-2:1.0: FTDI USB Serial Device converter detected
drivers/usb/serial/ftdi_sio.c: Detected FT2232C
usb 3-2: FTDI USB Serial Device converter now attached to ttyUSB0
ftdi_sio 3-2:1.1: FTDI USB Serial Device converter detected
drivers/usb/serial/ftdi_sio.c: Detected FT2232C
usb 3-2: FTDI USB Serial Device converter now attached to ttyUSB1
usb 3-2: New USB device found, idVendor=0403, idProduct=6010
usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 3-2: Product: CHAIRSIDE(tm) Machine Interface v1
usb 3-2: Manufacturer: FTDI

2. Run wacdump. See data coming across the line from the tablet. (wacdump is a curses-like program that does not appear to output plain text; here's a screen-scraping:)

MODEL=Wacom Intuos 9x12                 ROM=1.2-7
CLS=Serial  VNDR=Wacom  DEV=Intuos  SUB=GD-0912-R

TOOLTYPE=NONE                             SERIAL=0x00000000
 IN_PROX=out                              BUTTON=+00000 (+00000 .. +00000)
   POS_X=+00000 (+00000 .. +30480)         POS_Y=+00000 (+00000 .. +24060)
   ROT_Z=+00000 (-00900 .. +00899)      DISTANCE=+00000 (+00000 .. +00000)
PRESSURE=+00000 (+00000 .. +01023)        TILT_X=+00000 (-00064 .. +00063)
  TILT_Y=+00000 (-00064 .. +00063)      ABSWHEEL=+00000 (+00000 .. +01023)
RELWHEEL=+00000 (+00000 .. +00000)      THROTTLE=+00000 (-01023 .. +01023)

    LEFT=             MIDDLE=              RIGHT=              EXTRA=
    SIDE=              TOUCH=             STYLUS=            STYLUS2=
     BT0=                BT1=                BT2=                BT3=
     BT4=                BT5=                BT6=                BT7=
     BT8=                BT9=               BT10=               BT11=
    BT12=               BT13=               BT14=               BT15=
ReadRaw:         -1 (20)BT17=               BT18=               BT19=
    BT20=               BT21=               BT22=               BT23=

(The numbers do change while the program is running.)

3.
  a. Start Sax2.
  b. Select "Tablet"
  c. Check "Activate this tablet"
  d. Select "Wacom" in the left column
  e. Select "(Intuos V1+2 serial)" in the right column
  f. Select tab "Port and Mode"
  g. Open the "Connection Port" pulldown.
Actual Results:  
Ports available from step 3.g. are
USB
COM1 (/dev/ttyS0)
COM2 (/dev/ttyS1)
COM3 (/dev/ttyS2)
COM4 (/dev/ttyS3)

Expected Results:  
Ports available from step 3.g. should be
USB
COM1 (/dev/ttyS0)
COM2 (/dev/ttyUSB0)
COM3 (/dev/ttyUSB1)
Comment 1 Stefan Dirsch 2009-04-11 20:27:30 UTC
And the next user will request also ttyUSB2 since he wants to connect it to his second USB-->Serial adapter?!?

This is really a very special case, which we IMHO don't need to support. You can be happy, that your USB->Serial adapter is supported at all. It's not that hard
to replace ttyS0 with ttyUSB0 in xorg.conf ...

WONTFIX
Comment 2 J L Turriff 2009-04-11 21:10:11 UTC
I have already tried doing that, but then X will not come up.  All I get is a black screen that blinks every second.
Comment 3 J L Turriff 2009-04-14 05:04:11 UTC
In my opinion Sax2 should not be relying on a hard-coded list of devices, but should scan the system for available serial devices.  If it did so, no further fixes would be necessary.
Comment 4 Stefan Dirsch 2009-04-14 06:59:32 UTC

*** This bug has been marked as a duplicate of bug 494224 ***