WARNING: Your wacom digitizer will stop working every single time the kernel or xorg gets updated if you use this script. Even worse, Xorg will refuse to start if newly installed libraries aren't compatible with the ones that you compiled!!
UPDATE: I updated this post. The new patch now includes touch screen support!!!
UPDATE: Now includes eraser support and fixes the side button.
If your cursor is laggy on the screen, then you are going to need to add noapic, noirqdebug, and irqpoll to your boot parameters. This will also fix the other usb issues that you may be experiencing.
First you are going to need to download the latest development version of linuxwacom:
Code:
wget http://internap.dl.sourceforge.net/sourceforge/linuxwacom/linuxwacom-0.7.9-11.tar.bz2
You will also need Andrew's unified patch:
Code:
wget -O usbtx2000z.patch http://linuxwacom.pastebin.com/pastebin.php?dl=f3d5b9e73
You will need a proper development environment::
Code:
sudo apt-get install build-essential libx11-dev libxi-dev x11proto-input-dev xserver-xorg-dev
Now it is time to extract, patch, compile, and install. I personally add the configure option --prefix=/usr instead of /usr/local. You have to manually install the kernel driver. FYI: If kernel versions change, then things may break.
Code:
tar xjvf linuxwacom-0.7.9-11.tar.bz2
cd linuxwacom-0.7.9-11
patch -p1 < ../usbtx2000z.patch
./configure --enable-wacom
make
sudo make install
sudo rmmod wacom
sudo cp src/2.6.24/wacom.ko /lib/modules/2.6.24-16-generic/kernel/drivers/input/tablet/wacom.ko
sudo depmod -e
sudo modprobe wacom
sudo rm /usr/local/bin/xsetwacom
Now you are ready to edit your xorg.conf! Run the following command to load it up:
Code:
sudo gedit /etc/X11/xorg.conf
Now you are going to have to add sections for the Wacom input device.
Code:
Section "InputDevice"
Identifier "TabletPCStylus"
Driver "wacom"
Option "ForceDevice" "ISDV4"
Option "Type" "stylus"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/by-id/usb-Tablet_ISD-V4-event-mouse"
Option "Button2" "3" # make side-switch a right button
# Option "TopX" "225"
# Option "TopY" "122"
# Option "BottomX" "26365"
# Option "BottomY" "16488"
EndSection
Section "InputDevice"
Identifier "TabletPCStylus2"
Driver "wacom"
Option "ForceDevice" "ISDV4"
Option "Type" "stylus"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/wacom"
EndSection
Section "InputDevice"
Identifier "TabletPCStylus3"
Driver "wacom"
Option "ForceDevice" "ISDV4"
Option "Type" "eraser"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/by-id/usb-Tablet_ISD-V4-event-mouse"
EndSection
and you will need to add the devices to your server layout:
Code:
Section "ServerLayout"
Identifier "Default Layout"
screen "Default Screen"
Inputdevice "Synaptics Touchpad"
Inputdevice "TabletPCStylus"
Inputdevice "TabletPCStylus2"
Inputdevice "TabletPCStylus3"
EndSection
Section "Module"
Load "glx"
EndSection
There is a calibration script at http://www.stanford.edu/~gi1242/per/opensource/hp2710p/. It doesn't really work well because it calibrates all devices at once. Therefore your touch screen gets the same calibration as your stylus.
EDITED 04/17 to use a unified patch for the digitizer AND touchscreen.
EDITED 04/20 to include eraser support and fix the side button.
EDITED 04/27 to point to the right devices in xorg.conf.