View Single Post
Old 10-19-2007, 10:33 AM   #1
hudson
Stunt Programmer
hudson has a complete set of Star Wars action figures.hudson has a complete set of Star Wars action figures.hudson has a complete set of Star Wars action figures.hudson has a complete set of Star Wars action figures.hudson has a complete set of Star Wars action figures.
 
hudson's Avatar
 
Posts: 31
Karma: 449
Join Date: Mar 2007
Location: Washington, DC
Device: iRex iLiad, Sony PRS500, Treo 650
iLiad as a wireless Wacom tablet for my desktop

Based on the info from postings on the iRex forums, I was able to get my iLiad to act as a tablet for my desktop PC. I used the socat tool on the iLiad and stopped the built in X server (otherwise it would sometimes shut down the tablet):

Code:
 killall Xfbdev
 socat TCP-LISTEN:2998 /dev/ttyS0
On my PC I ran (substitute your IP address):

Code:
 sudo socat PTY,link=/dev/wacom,raw,echo=0 TCP:10.0.0.200:2998
I had to update my /etc/X11/xorg.conf with:

Code:
--- /tmp/xorg.conf.orig 2007-10-19 10:31:14.000000000 -0400
+++ xorg.conf   2007-10-19 10:11:28.000000000 -0400
@@ -8,6 +8,9 @@
     Screen      0  "Screen0" 0 0
     InputDevice    "Mouse0" "CorePointer"
     InputDevice    "Keyboard0" "CoreKeyboard"
+       InputDevice    "stylus"    "SendCoreEvents"
+       InputDevice    "eraser"    "SendCoreEvents"
+       InputDevice    "cursor"    "SendCoreEvents"
 EndSection
 
 Section "Files"
@@ -56,3 +59,40 @@
         Modes      "1280x1024"
     EndSubSection
 EndSection
+
+
+    Section "InputDevice"
+      Driver        "wacom"
+      Identifier    "stylus"
+      Option        "Device"        "/dev/wacom"          # SERIAL ONLY
+      Option        "Type"          "stylus"
+      Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
+    EndSection
+
+    Section "InputDevice"
+      Driver        "wacom"
+      Identifier    "eraser"
+      Option        "Device"        "/dev/wacom"          # SERIAL ONLY
+      Option        "Type"          "eraser"
+      Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
+    EndSection
+
+    Section "InputDevice"
+      Driver        "wacom"
+      Identifier    "cursor"
+      Option        "Device"        "/dev/wacom"          # SERIAL ONLY
+      Option        "Type"          "cursor"
+      Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
+    EndSection
+
+    # This section is for Intuos3, Cintiq 21UX, Graphire4, or Bamboo
+#    Section "InputDevice"
+#      Driver        "wacom"
+#      Identifier    "pad"
+#      Option        "Device"        "/dev/ttyS0"          # SERIAL ONLY
+#      Option        "Device"        "/dev/input/event0"   # USB ONLY
+#      Option        "Type"          "pad"
+#      Option        "USB"           "on"                  # USB ONLY
+#    EndSection
+
+
The X11 wacom driver would not initialize the tablet correctly and the cursor would always go into the upper left corner , but if I ran wacdump before starting X it would leave things in an ready to go state:

Code:
sudo wacdump -v -f tpc /dev/wacom
With the two-button stylus from my CF-18 Toughbook I'm able to get the multiple buttons and pressure from wacdump and use the extra functions with the gimp.

It seems a good next step would be a helper application for the iLiad that displays a toolbox palette on the far side of the screen and maybe even a small preview of the screen. Sort of like CAD applications that use digitizer tablets, but for graphics.
hudson is offline   Reply With Quote