old-www/HOWTO/Wacom-Tablet-HOWTO-5.html

806 lines
23 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE> Wacom Tablet HOWTO: Tablets with XFree 3 and XFree 4</TITLE>
<LINK HREF="Wacom-Tablet-HOWTO-6.html" REL=next>
<LINK HREF="Wacom-Tablet-HOWTO-4.html" REL=previous>
<LINK HREF="Wacom-Tablet-HOWTO.html#toc5" REL=contents>
</HEAD>
<BODY>
<A HREF="Wacom-Tablet-HOWTO-6.html">Next</A>
<A HREF="Wacom-Tablet-HOWTO-4.html">Previous</A>
<A HREF="Wacom-Tablet-HOWTO.html#toc5">Contents</A>
<HR>
<H2><A NAME="s5">5. Tablets with XFree 3 and XFree 4</A></H2>
<P>
<P>
<A NAME="_Toc465765702"></A> <H2><A NAME="ss5.1">5.1 Required XFree Version</A>
</H2>
<P>
<P>
<A NAME="_Toc465765703"></A>
Minimum
<A HREF="Wacom-Tablet-HOWTO-3.html#_xfree">XFree</A>
version should be 3.3.3.1 because this version has extended XInput support,
the second side switch works now and the blocking mouse effect has been fixed.
<P>If you must use any prior version, XInput support should be available since
3.1.2.d.
<P>XInput support in XFree is configured basically in a file called XF86Config.
In most cases the XF86Config file is located in /etc or in /etc/x11. I will
show now two very short configuration sections, the first works with XFree 3, the other is for XFree 4.
I will explain then what can be changed and why this is needed.
<H2><A NAME="ss5.2">5.2 Sample XF86Config snippet for XFree 3</A>
</H2>
<P>
<P>
<A NAME="_Toc465765705"></A>
<BLOCKQUOTE><CODE>
<PRE>
Section "Module"
# Wacom Device Driver
Load "xf86Wacom.so"
EndSection
Section "XInput"
# Settings for Wacom pen
SubSection "WacomStylus" # type of input device
Port "/dev/ttyS0" # Serial Port
DeviceName "Pen1" # Name, choose it free
Baudrate 9600 # Usable only for intuos
Mode Absolute # Map Tablet Area to Screen
AlwaysCore # See text
HistorySize 200 # Buffer size for motion events
EndSubSection
# Settings for Wacom eraser
SubSection "WacomEraser" # type of input device
Port "/dev/ttyS0" # Serial Port
DeviceName "Eraser1" # Name, choose it free
Baudrate 9600 # Usable only for intuos
Mode Absolute # Map Tablet Area to Screen
AlwaysCore # See text
HistorySize 200 # Buffer size for motion events
EndSubSection
# Settings for Wacom cursor (mouse)
SubSection "WacomCursor" # type of input device
Port "/dev/ttyS0" # Serial Port
DeviceName "Cursor" # Name, choose it free
Baudrate 9600 # Usable only for intuos
Mode Absolute # Map Tablet Area to Screen
AlwaysCore # See text
HistorySize 200 # Buffer size for motion events
EndSubSection
EndSection
</PRE>
</CODE></BLOCKQUOTE>
<P>
<H2><A NAME="ss5.3">5.3 Sample XF86Config snippet for XFree 4</A>
</H2>
<P>
<P>
<A NAME="_Toc465765705a"></A>
<BLOCKQUOTE><CODE>
<PRE>
# declare input devices, later defined
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "pen1" "AlwaysCore"
InputDevice "eraser1" "AlwaysCore"
InputDevice "cursor1" "AlwaysCore"
EndSection
Section "Module"
Load "extmod"
Load "xie"
Load "pex5"
Load "glx"
Load "dri"
Load "GLcore"
Load "dbe"
Load "record"
Load "wacom" # Wacom Device Driver
EndSection
# Settings for wacom pen
Section "InputDevice"
Identifier "pen1"
Driver "wacom"
Option "Type" "stylus"
Option "Device" "/dev/ttyS0"
Endsection
# Settings for wacom eraser
Section "InputDevice"
Identifier "eraser1"
Driver "wacom"
Option "Type" "eraser"
Option "Device" "/dev/ttyS0"
Endsection
# Settings for wacom cursor (mouse)
Section "InputDevice"
Identifier "cursor1"
Driver "wacom"
Option "Type" "cursor"
Option "Device" "/dev/ttyS0"
Endsection
</PRE>
</CODE></BLOCKQUOTE>
<P>
<H2><A NAME="ss5.4">5.4 Syntax Difference between XFree 3 and XFree 4</A>
</H2>
<P>
<P>
<A NAME="_Toc465765705b"></A>
Please notice the different syntax between
XFree 3 and XFree 4: <BR>
In XFree 3 configuration is done in the section "XInput" with one subsection for each device. XFree 3 has keywords.<BR>
In XFree 4 configuration is done with one section "InputDevice" for each device. All Settings are "options", with one exception: the identifier statement. The Alwayscore option goes to the Serverlayout section.
<P>Because the usage can be seen from the above examples, this difference will be considered
as clear for the rest of the document.
<P>
<H2><A NAME="ss5.5">5.5 Section Module</A>
</H2>
<P>
<P>
<A NAME="_Toc465765706"></A>
XInput support in XFree is reached due to the use of modules. The wacom device
driver module file for XFree 3 is called
<A HREF="Wacom-Tablet-HOWTO-3.html#_driverlepied">xf86Wacom.so</A>, for XFree 4 the filename changed to wacom_drv.o.
The files are located usually in /usr/X11R6/lib/modules/ or in /usr/X11R6/lib/modules/input. We have to specify
in the &quot;Module&quot; section that we want to load this driver (look at above snippets):
<P>XFree 3: Load &quot;xf86Wacom.so&quot; <BR>
XFree 4: Load &quot;wacom&quot;
<P>
<P>This has to appear only once per XF86Config file.
<P>
<H2><A NAME="ss5.6">5.6 Device Type (XF3) and Type (XF4)</A>
</H2>
<P>
<P>
<A NAME="_Toc465765707"></A>
A physical device can be:
<UL>
<LI>The tip of your pen</LI>
<LI>The eraser of your pen</LI>
<LI>A mouse like the Wacom products lens cursor, 4d-mouse, graphire-mouse</LI>
<LI>The airbrush</LI>
</UL>
<P>The penpartner and graphire products simply recognize the type of a device,
but they can not distinguish them. For example, you can not use two different
pens, say, one configured red and one configured blue - all what these
products say is: &quot;I found a pen tip on my surface&quot;, or &quot;I found
an Eraser on my surface&quot;, or &quot;I found a mouse on my surface&quot;.
<P>
<P>XInput maps the device types to devices, these device types are later
specified in XF86Config. For XFree 3 this is a subsection in the
section XInput, for XFree 4 this goes to individuell InputDevice sections.<BR>
The devicetypes are:
<UL>
<LI><CODE>WacomStylus</CODE>
Tip of a pen or airbrush</LI>
<LI><CODE>WacomEraser</CODE>
Eraser of a pen or airbrush</LI>
<LI><CODE>WacomCursor</CODE>
Mice, like graphire mouse, lens cursor, 4d-mouse</LI>
</UL>
<P>As you can see from above examples, device types are specified with the keyword
&quot;Devicetype&quot; in XFree 3 and with Option &quot;Type&quot; in XFree 4.
<P>
<H2><A NAME="ss5.7">5.7 DeviceName (XF3) and Identifier (XF4)</A>
</H2>
<P>
<P>
<A NAME="_Toc465765708"></A> <P>You must give every configured device a unique name. This name will be used
later in your program to talk to that device. You can choose this name free.
This statement is mandantory.
In XFree 3 you will use the &quot;Devicename&quot; keyword, in XFree 4 you will use the Identifier &quot;name&quot; keyword. Please notice that Identifier is not an Option !
<P>
<H2><A NAME="ss5.8">5.8 Port (XF3) and Device (XF4)</A>
</H2>
<P>
<P>
<A NAME="_Toc465765709"></A>
XInput wants to know at which serial port this device can be found. This
allows me to use two different tablets at the same time, for example a graphire
connected to /dev/ttyS0 and a penpartner connected to /dev/ttyS1.
<P>
<P>
<H3>USB Tablets</H3>
<P>USB is treated as a serial line too,
so this statement is mandantory. If you connect your product to the USB, you have to specify this with
<A HREF="#_Toc465765USB">Option USB</A>.
<A NAME="_Tocdevusb"></A> <P><B>Example how to use the USB-Port (XF4):</B>
<P>
<BLOCKQUOTE><CODE>
<PRE>
Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/event0"
Option "Type" "stylus"
Option "Mode" "absolute"
Option "USB" "on"
Option "Tilt" "on"
EndSection
</PRE>
</CODE></BLOCKQUOTE>
<P>
<H3>Switching The Mouse Off</H3>
<P>Most people use both, the mouse and the tablet for core pointer functions.
However, if you want to switch your mouse off and only will use your tablet, here comes the trick for that:<BR>
First, specify AllowMouseOpenFail in section ServerFlags.
Then set the device to a file which must
not exist (fake or dummy). Do not set it to /dev/null as this will eat up
your CPU-time.
<P><B>Example how to switch off the mouse (XF3):</B>
<P>
<BLOCKQUOTE><CODE>
<PRE>
Section "Pointer"
Device "/dev/fake" #Phony device file
...
EndSection
</PRE>
</CODE></BLOCKQUOTE>
<P><B>Example how to switch off the mouse (XF4):</B>
<P>
<BLOCKQUOTE><CODE>
<PRE>
Section "ServerLayout"
...
InputDevice "Mouse0" "CorePointer"
...
EndSection
Section "InputDevice"
Identifier "Mouse0"
...
Option "Device" "/dev/fake" #Phony
#device file
Endsection
</PRE>
</CODE></BLOCKQUOTE>
<P>
<H2><A NAME="ss5.9">5.9 DebugLevel</A>
</H2>
<P>
<P>
<A NAME="_Toc465765710"></A>
This statement controls how verbose the Wacom driver is. The Level goes from 0 to
10. If this statement is not given, DebugLevel 0 is used, which logs the very
less.
<P><B>Example (XFree 3):</B>
<BLOCKQUOTE><CODE>
<PRE>
SubSection "WacomStyLus" # Pen
DeviceName "PenRed" # Name, choose it free
...
DebugLevel 10 # be very verbose
...
EndSubSection
</PRE>
</CODE></BLOCKQUOTE>
<P><B>Example (XFree 4):</B>
<BLOCKQUOTE><CODE>
<PRE>
Section "InputDevice"
Identifier "PenRed" # Name, choose it free
Option "Type" "stylus"
...
Option "DebugLevel" "10" # be very verbose
...
EndSection
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>
<H2><A NAME="ss5.10">5.10 Serial Num (intuos series only)</A>
</H2>
<P>
<P>
<A NAME="_Toc465765711"></A>
The intuos product is more efficient than penpartner and graphire because it
can distinguish many devices of the same type. This means that it is now
possible to use two pens, one configured red and one configured blue. As you
see, the use of device types is not enough information to handle different
pens. Therefore, each intuos device, be it a pen, ink pen, mouse, or whatever
has a serial number, which you can specify to aid XInput in resolving the
right device. This would look like:
<P><B>Example (XFree 3):</B>
<BLOCKQUOTE><CODE>
<PRE>
Section "XInput"
SubSection "WacomStylus" # Pen
DeviceName "PenRed" # Name, choose it free
...
Serial 2609917443 # Serial Number of that device
...
EndSubSection
SubSection "WacomStylus" # another Pen
DeviceName "PenBlue" # Name, choose it free
...
Serial 2609918664 # Serial Number of that device
...
EndSubSection
EndSection
</PRE>
</CODE></BLOCKQUOTE>
<P><B>Example (XFree 4):</B>
<BLOCKQUOTE><CODE>
<PRE>
Section "InputDevice"
Identifier "PenRed" # Name, choose it free
Option "Type" "stylus"
...
Option "Serial" "2609917443"
...
EndSection
Section "InputDevice"
Identifier "PenBlue" # Name, choose it free
Option "Type" "stylus"
...
Option "Serial" "2609918664"
...
EndSection
</PRE>
</CODE></BLOCKQUOTE>
<P>It should be said that combined input devices like pens have only one serial
number. The driver uses the serial number it gets to recognize one specific pen
and the device type to distinguish the tip of that specific pen from its
eraser.
<P>
<P>
<H3><A NAME="_Toc465765712"></A> How to find out the serial number of a device</H3>
<P>
<OL>
<LI>Set DebugLevel to 6</LI>
<LI>Start the X-Server by typing
<EM>X 2&gt;t</EM></LI>
<LI>Tip all devices down on the tablet and make a notice of the order you tipped
them.</LI>
<LI>Kill the X-Server (usually Ctrl+Alt+Backspace)</LI>
<LI>Do a
<EM>grep serial_num t</EM></LI>
</OL>
<P>You should get a list of your different numbers.
<P>
<P>
<H3><A NAME="_Toc465765713"></A> Serial Num - Example of what has been logged (XFree 3)</H3>
<P>
<BLOCKQUOTE><CODE>
<PRE>
BEGIN xf86WcmProc dev=0x8354d60 priv=0x833e3f0 type=stylus flags=9 what=1
xf86WcmProc pWcm=0x8354d60 what=ON
END xf86WcmProc Success what=1 dev=0x8354d60 priv=0x833e3f0
device_id=0x96 serial_num=2595227137 type=cursor
[cursor] abs prox=false x=0 y=0 z=0 button=false buttons=0
</PRE>
</CODE></BLOCKQUOTE>
(serial_num is in Line 4 Word 2).
<P>
<P>
<H2><A NAME="ss5.11">5.11 Mode absolute, Mode relative</A>
</H2>
<P>
<P>
<A NAME="_Toc465765714"></A>
If you set a device in mode absolute, this means, that the active area of the
tablet will be mapped to the screen. Every time you go down to the tablet at
the same point with an absolute device the pointer will appear at the same
point of the screen.
<P>
<P>If you set a device in mode relative, you will get the well known behavior of a
mouse. This means, that if you take the mouse off from the surface, move it and
go down again, the pointer does (ideally) not move.
<P>
<P><B>Example (XFree 3):</B>
<BLOCKQUOTE><CODE>
<PRE>
Section "XInput"
SubSection "WacomStylus" # Pen
DeviceName "PenRed" # Name, choose it free
...
Mode absolute
...
EndSubSection
EndSection
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P><B>Example (XFree 4):</B>
<BLOCKQUOTE><CODE>
<PRE>
Section "InputDevice"
Identifier "PenRed" # Name, choose it free
Option "Type" "stylus"
...
Option "Mode" "absolute"
...
EndSection
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>
<P>
<H2><A NAME="ss5.12">5.12 Device Modes Extension, Core, AlwaysCore</A>
</H2>
<P>
<P>
<A NAME="_Toc465765715"></A> <P>XFree knows two pointers: one with only the standard features (buttons,
moving-capabilities), which is used for selecting menus, text, clicking buttons
and doing other controlling stuff. This is the <EM>Core Device</EM>.
<P>The other pointer is used by applications which want more information, like
pressure and tilt. <BR>
This is the extension device.
<P>
<P>Starting with version 3.3.3.1, the Statement AlwaysCore tells the driver that it should send
both types of events.
<P>
<P>If you do not specify Alwayscore in your XF86Config, then this device is
initially used as extension device, this means it is usable only in applications but you can not
control the menus of your window manager with it.
<P>
<P>If Alwayscore is given, then your device acts as core pointer (in addition to the mouse) as well as it sends tilt and pressure information to applications which opened the device in extension mode.
<P>You can configure two different logical devices, one in Core-Mode and one in
Extension-Mode, to the same physical device.<BR>
To do so, simply type two identical sections, only the DeviceName statement must differ. Then specify AlwaysCore
only for the last section.
<P><B>Example (XFree 3):</B>
<BLOCKQUOTE><CODE>
<PRE>
Section "XInput"
SubSection "WacomStylus" # Pen
DeviceName "PenRed" # Name, choose it free
...
AlwaysCore
...
EndSubSection
EndSection
</PRE>
</CODE></BLOCKQUOTE>
<P>For XFree 4, this is not an option in the InputDevice section, it goes to the Serverlayout section and
can be one of: AlwaysCore / SendCoreEvents or CorePointer:
<P><B>Example (XFree 4):</B>
<BLOCKQUOTE><CODE>
<PRE>
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
...
InputDevice "icursor" "AlwaysCore"
EndSection
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>
<H2><A NAME="ss5.13">5.13 HistorySize</A>
</H2>
<P>
<P>
<A NAME="_Toc465765716"></A>
This statement sets the buffer size that is used to cache motion events.
<P><B>Example (XFree 3):</B>
<BLOCKQUOTE><CODE>
<PRE>
Section "XInput"
SubSection "WacomStylus" # Pen
DeviceName "PenRed" # Name, choose it free
...
HistorySize 200
...
EndSubSection
EndSection
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P><B>Example (XFree 4):</B>
<BLOCKQUOTE><CODE>
<PRE>
Section "InputDevice"
Identifier "PenRed" # Name, choose it free
Option "Type" "stylus"
...
Option "HistorySize" "200"
...
EndSection
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>
<H2><A NAME="ss5.14">5.14 Suppress</A>
</H2>
<P>
<P>
<A NAME="_Toc465765717"></A>
This statement specifies how many units the device must move before the driver
moves the pointer. This can be necessary if very large resolutions are used.
<P><B>Example (XFree 3):</B>
<BLOCKQUOTE><CODE>
<PRE>
Section "XInput"
SubSection "WacomStylus" # Pen
DeviceName "PenRed" # Name, choose it free
...
Suppress 10
...
EndSubSection
EndSection
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P><B>Example (XFree 4):</B>
<BLOCKQUOTE><CODE>
<PRE>
Section "InputDevice"
Identifier "PenRed" # Name, choose it free
Option "Type" "stylus"
...
Option "Suppress" "10"
...
EndSection
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>
<P>
<H2><A NAME="ss5.15">5.15 TiltMode (XF3) and Tilt (XF4)</A>
</H2>
<P>
<P>
<A NAME="_Toc465765718"></A>
This works only with intuos series tablets.<BR>
TiltMode enables sending of tilt information for intuos devices. If this
statement is missing, only pressure information is transferred.
<P><B>Example (XFree 3):</B>
<BLOCKQUOTE><CODE>
<PRE>
Section "XInput"
SubSection "WacomStylus" # Pen
DeviceName "PenRed" # Name, choose it free
...
TiltMode
...
EndSubSection
EndSection
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P><B>Example (XFree 4):</B>
<BLOCKQUOTE><CODE>
<PRE>
Section "InputDevice"
Identifier "PenRed" # Name, choose it free
Option "Type" "stylus"
...
Option "Tilt" "on"
...
EndSection
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>
<H2><A NAME="ss5.16">5.16 MaxX, MaxY, MaxZ (since alpha 20)</A>
</H2>
<P>
<P>
<A NAME="_Toc465765max"></A>
Max[axis] limits / owerwrites the max[axis] values normaly retrieved from the tablet.
More or less developer stuff.
<P>
<P>
<H2><A NAME="ss5.17">5.17 ResolutionX, ResolutionY, ResolutionZ (since alpha 20)</A>
</H2>
<P>
<P>
<A NAME="_Toc465765res"></A>
Resolution[axis] presets the resolution[axis] values normaly retrieved from the tablet.
More or less developer stuff.
<P>
<P>
<H2><A NAME="ss5.18">5.18 TopX, TopY, BottomX, BottomY Statements</A>
</H2>
<P>
<P>
<A NAME="_Toc465765719"></A>
These four statements allow to reduce the active area of the tablet. My intuos
A4 oversize, for example, is so big that you can not do painting work with it
because the ways of the pen are too long. I use these four Statements to tell
the driver that it should map only the lower left quarter of the tablet to the
screen.<BR>
It is possible to define more than one active area on the same tablet:
Define as many subsections as you need with the same Port Statement but with
different Top... statements and Devicenames. This results in multiple logical
devices all of them restricted to their individual bounds. You may use
one device in absolute mode and one in relative mode as well.
<P>
<P><B>Example (XFree 3):</B>
<BLOCKQUOTE><CODE>
<PRE>
Section "XInput"
SubSection "WacomStylus" # Pen
DeviceName "PenRed" # Name, choose it free
...
TopX 0
TopY 5000
BottomX 5000
BottomY 10000
...
EndSubSection
EndSection
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P><B>Example (XFree 4):</B>
<BLOCKQUOTE><CODE>
<PRE>
Section "InputDevice"
Identifier "PenRed" # Name, choose it free
Option "Type" "stylus"
...
Option "TopX" "0"
Option "TopY" "5000"
Option "BottomX" "5000"
Option "BottomY" "10000"
...
EndSection
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>
<H3>Getting the maximal X, Y Values, current configuration, and the resolution</H3>
<P>If you use the above four statements, you sometimes want to make some
calculations on the size and position of the rectangle to be defined. Often
the maximal tablet coordinates and the resolution are needed for this. To get
these values, start your server: <EM>X 2&gt;t</EM>.
Kill the X-Server (usually Ctrl+Alt+Backspace)
and do a
<EM>grep &quot;X=&quot; t</EM>
.You should get back the values in question.
<P>
<P>
<H3>Getting Resolution - Example of what has been logged</H3>
<P>
<BLOCKQUOTE><CODE>
<PRE>
(--) Wacom IV tablet maximum X=5103 maximum Y=3711 X
resolution=1000 Y resolution=1000 suppress=6
(--) Wacom tablet top X=0 top Y=0 bottom X=5103 bottom Y=3711
(--) Wacom tablet top X=0 top Y=0 bottom X=5103 bottom Y=3711
(--) Wacom tablet top X=0 top Y=0 bottom X=5103 bottom Y=3711
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>
<P>
<H2><A NAME="ss5.19">5.19 KeepShape</A>
</H2>
<P>
<P>
<A NAME="_Toc465765720"></A>
This option uses the TopX, TopY statements (or their built in defaults, if
omitted) and adjusts the BottomX, BottomY statements so that
<P>
<UL>
<LI>The ratio height / width of the screen is the same ratio on the tablet</LI>
<LI>The active area starting at TopX, TopY of the tablet is as big as it can be
with the above condition.</LI>
</UL>
<P>Any given BottomX, BottomY statement is ignored, because these values will be
calculated.
<P><B>Example (XFree 3):</B>
<BLOCKQUOTE><CODE>
<PRE>
Section "XInput"
SubSection "WacomStylus" # Pen
DeviceName "PenRed" # Name, choose it free
...
KeepShape
...
EndSubSection
EndSection
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P><B>Example (XFree 4):</B>
<BLOCKQUOTE><CODE>
<PRE>
Section "InputDevice"
Identifier "PenRed" # Name, choose it free
Option "Type" "stylus"
...
Option "KeepShape" "1"
...
EndSection
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>
<H2><A NAME="ss5.20">5.20 Threshold</A>
</H2>
<P>This is available since alpha 16 and is used to control the minimum pressure that is needed
to detect that a tool is pressed on the surface. It works with intuos and
graphire. Please note that the integer value has to be coded as String,
unlike all other integer values.
<P>
<B>Example (XFree 3):</B>
<BLOCKQUOTE><CODE>
<PRE>
Section "XInput"
SubSection "WacomStylus" # Pen
DeviceName "PenRed" # Name, choose it free
...
Threshold "5"
...
EndSubSection
EndSection
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P><B>Example (XFree 4):</B>
<BLOCKQUOTE><CODE>
<PRE>
Section "InputDevice"
Identifier "PenRed" # Name, choose it free
Option "Type" "stylus"
...
Option "Treshold" "5"
...
EndSection
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>
<H2><A NAME="ss5.21">5.21 USB (since alpha 20)</A>
</H2>
<P>
<P>
<A NAME="_Toc465765USB"></A>
USB tells the driver that the serial line is the usb port.
This needs a Kernel 2.4 with usb enabled.
Alpha 20 driver only supports absolute devices.
<A HREF="#_Tocdevusb">Here</A> is an example for use with XFree 4.<BR>
Please read the
<A HREF="http://perso.club-internet.fr/tiamat/computer/howto/Wacom_USB-Mini_HOWTO.html">Wacom-USB-mini-HOWTO</A> by Arnauld Claden and the
<A HREF="http://www.best.com/~sem/linux/wacom/">USB-'Micro-HOWTO' by Semyon Sosin</A> for more information on USB setup.
<P>
<P>
<HR>
<A HREF="Wacom-Tablet-HOWTO-6.html">Next</A>
<A HREF="Wacom-Tablet-HOWTO-4.html">Previous</A>
<A HREF="Wacom-Tablet-HOWTO.html#toc5">Contents</A>
</BODY>
</HTML>