[Fwd: Re: [SLUG] Wacom Graphire Pen tablet configuration (XFree86 3.3.x)]

From: Ed Centanni (ecentan1@tampabay.rr.com)
Date: Mon Apr 30 2001 - 20:23:18 EDT


Ok, since we got ourselves a convoy here's the details.

Ed.

R P Herrold wrote:
>
> I am interested -- details plase -- Russ Herrold
>
> (clip)

<snip>

OK.

I started with the howto on the developer's web page:
http://lepied.com/xfree86/ copied the latest driver into
/usr/X11R6/lib/modules/input, pasted the "Module" and "XInput" sections
from the web site into /etc/XF86Config, changed the "/dev/ttyS3" to
"/dev/ttyS0" and *probably* on any other hardware but mine that would
have been the end of it.

I am using a serial Wacom tablet. It has two connectors -- one for the
serial port (I use ttyS0) and one for the ps/2 port. It needs both. I
had used a ps/2 mouse to install everything with and since the wacom
tablet is specified to become the "CorePointer" the ps/2 mouse Section
"Pointer" shouldn't matter. and the Section "ServerFlags" has
"AllowMouseOpenFail" specified. Well I cranked up X and sure enough the
tablet was working great -- But the keyboard was DEAD. Not even a
numlock light. Had to reboot with the reset button and go through the
fsck -- and it's a BIG drive too!

I checked the developer mailing list archives linked on the site --
nothing. I did a search on the web for "Linux wacom keyboard" --
nothing. It looked like I as on my own. After many reboots and tests I
determined the no matter what the XF86Config says -- with and without
the Wacom entries -- the keyboard will not work after starting X with
the Wacom plugged. Only by physically unplugging the Wacom would my
keyboard work under X. The keyboard is a standard PC AT keyboard and
NOT a ps/2 so I was very mystified. The ps/2 connector is specifically
called a ps/2 MOUSE connector in the MOBO manual and says specifically
that the ps/2 KEYBOARD connector will not be present if the AT keyboard
connector in installed on the MOBO at the factory. Anyway I fantasized
that MAYBE X is thinking (without even loading the driver!) that the
Wacom ps/2 connection is somehow passing through the ps/2 keyboard (or
is looking like a ps/2 keyboard) that *isn't* specified in the config
file and is trying to get the keyboard input from the wacom instead of
the nice "old as the hills" standard keyboard connector so clearly
specified in the config.

No I wasn't drinking! Anyway I started playing around with the original
ps/2 mouse specification in the Section "Pointer" (changing anything
else didn't make a bit of difference) to fake out X into taking the
standard keyboard. What I found to work was setting "Pointer" section
to an unused serial device and letting the X server fail to detect it.
That solved everything. I guess I'll find out someday if attempting to
use that port for something else is going to be uh....*interesting*.

Here's my config file that worked:

#
# Copyright (c) 1996 SuSE. GmbH Fuerth, Germany. All rights reserved
#
# Author : Marcus Schaefer <sax@suse.de>, 1999
#
# SaX autogenerated XF86Config file
# Version : 1.2 (second release)
# Server "XF86_SVGA"
# MaxDAC 80-300
#
Section "Files"
  RgbPath "/usr/X11R6/lib/X11/rgb"
  FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
  FontPath "/usr/X11R6/lib/X11/fonts/local"
  FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled"
  FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
  FontPath "/usr/X11R6/lib/X11/fonts/Type1"
  FontPath "/usr/X11R6/lib/X11/fonts/URW"
  FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
  FontPath "/usr/X11R6/lib/X11/fonts/misc"
  FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
  FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
  FontPath "/usr/X11R6/lib/X11/fonts/PEX"
  FontPath "/usr/X11R6/lib/X11/fonts/latin2/misc"
  FontPath "/usr/X11R6/lib/X11/fonts/latin2/75dpi"
  FontPath "/usr/X11R6/lib/X11/fonts/latin2/100dpi"
  FontPath "/usr/X11R6/lib/X11/fonts/latin7/75dpi"
  FontPath "/usr/X11R6/lib/X11/fonts/kwintv"
  FontPath "/usr/X11R6/lib/X11/fonts/uni"
  FontPath "/usr/X11R6/lib/X11/fonts/ucs/misc"
  FontPath "/usr/X11R6/lib/X11/fonts/ucs/75dpi"
  FontPath "/usr/X11R6/lib/X11/fonts/ucs/100dpi"
  FontPath "/usr/X11R6/lib/X11/fonts/hellas/misc"
  FontPath "/usr/X11R6/lib/X11/fonts/hellas/75dpi"
  FontPath "/usr/X11R6/lib/X11/fonts/hellas/100dpi"
  FontPath "/usr/X11R6/lib/X11/fonts/hellas/Type1"
  FontPath "/usr/X11R6/lib/X11/fonts/xtest"
  ModulePath "/usr/X11R6/lib/modules"
EndSection

Section "ServerFlags"
  AllowMouseOpenFail
EndSection
 
Section "Keyboard"
  XkbModel "pc104" # pc101 whatever -- didn't matter
  XkbLayout "us" # this and the next line went in and out -- didn't
matter
  XkbRules "xfree86"
  Protocol "Standard"
# CoreKeyboard "on" # didn't work
# AlwaysCore # didn't work
EndSection

# tried taking the next two sections in and out -- didn't matter.
Section "Module"
    Load "xf86Wacom.so"
EndSection
 
# Configure the XInput devices
Section "XInput"
 
    SubSection "WacomStylus"
        Port "/dev/ttyS0"
        DeviceName "Pen1"
# DebugLevel 6
        Mode Absolute
        HistorySize 200
        AlwaysCore
    EndSubsection
 
    SubSection "WacomEraser"
        Port "/dev/ttyS0"
        DeviceName "Eraser1"
        AlwaysCore
        Mode Absolute
    EndSubsection
 
    SubSection "WacomCursor"
        Port "/dev/ttyS0"
        Mode Absolute
        AlwaysCore
    EndSubsection
 
EndSection
 
Section "Pointer"
# Device "/dev/psaux"
  Device "/dev/ttyS1" #unused for now -- heh, heh...
# Emulate3Buttons
# Protocol "ps/2"
  Protocol "Microsoft"
EndSection

The rest is your standard "Monitor" "Device" "Screen" sections not
related to pointers and keyboards.
...

FYI. Some other possible options for the Wacom subsections are:

Suppress <NUM> don't report movement if it is a shift of more than NUM
units -- filters
out movement noise.

Tiltmode enable tilt report when supported in tablet

TopX <NUM> Top X coordinate of the active input zone

TopY <NUM> Top X coordinate of the active input zone

BottomX <NUM> Bottom X coordinate of the active input zone

BottomY <NUM> Bottom X coordinate of the active input zone

KeepShape Flag that uses TopX, TopY to calculate the bottom values by
maintaining the aspect ratio of the input area with respect to the
display area.

Bottom line: there's some goofy interaction with X, a serial wacom, a
ps/2 mouse port, and a standard AT keyboard.

Ed.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:05:29 EDT