Wacom
From FrugalWiki
i18n |
---|
English |
Dansk |
Français |
Magyar |
This is a Wacom howto for Frugalware Linux.
For now I will explain only the way to get an USB tablet work properly.
Contents |
First of all...
Ensure that in your kernel these opitions are compiled (if you have a personal build).
Device Drivers -> Input device support -> <*> Event interface //as built-in USB Support ---> <M> Wacom Intuos/Graphire tablet support //as module
LinuxWacom install
Build the linuxwacom packages from source (while I'm writing this HOWTO, no packages are aviable) in the classic way.
$ ./configure --prefix=/usr $ make # make install
You can get the sources from the "Download" section of the Home Page of the Project [1]
Plug your Tablet
Plug your tablet and check its output with the command:
# cat /proc/bus/input/devices
Now you can see some text divided in sections. The section of your interest contain the name of your tablet.
Here, an example of what you should obtain.
I: Bus=0003 Vendor=056a Product=0015 Version=0403 N: Name="Wacom Graphire4 4x5" P: Phys= S: Sysfs=/class/input/input3 H: Handlers=mouse1 event2 B: EV=1f B: KEY=1c63 0 70011 0 0 0 0 0 0 0 0 B: REL=100 B: ABS=100 3000003 B: MSC=1
Remember the "Vendor" entry for the next step.
Add the udev rule for your tablet.
Open a text editor (like nano) and write this line:
KERNEL=="event*", ATTRS{idVendor}=="056a", NAME="input/%k", SYMLINK ="input/graphire4"
Change the "056a" value with the "Vendor" entry that you have previously got.
Change also "graphire4" with wherever you want.
Now save this text as "10-wacom.rules" in the "/etc/udev/rules.d" directory.
Add the needed modules
To get the tablet work from boot, add the following modules in "/etc/sysconfig/modules".
wacom evdev
Check if it works
After previous steps reboot or run:# udevstart
Let's check if the system has correctly found the device.
Run:$ ls /dev/input
The output should shows a device called "graphire4" (or some other name that you have wrote).
$ cat /dev/input/graphire4or
$xxd /dev/input/graphire4or
# wacdump /dev/input/graphire4
After you have run one of the choiced command, you have to move the pen on the tablet.
If you see many letters appearing, it means that's all OK. Good! :)
Howerever, the last command shows you the better output.
Configure the X server
Now it's time to configure the X server. Add these lines at your "/etc/X11/xorg.conf":
Section "InputDevice" Driver "wacom" Identifier "stylus" Option "Device" "/dev/input/graphire4" Option "Type" "stylus" Option "USB" "on" EndSection Section "InputDevice" Driver "wacom" Identifier "eraser" Option "Device" "/dev/input/graphire4" Option "Type" "eraser" Option "USB" "on" EndSection Section "InputDevice" Driver "wacom" Identifier "cursor" Option "Device" "/dev/input/graphire4" Option "Type" "cursor" Option "USB" "on" EndSection # This section is for Intuos3, Cintiq 21UX, or Graphire4 only Section "InputDevice" Driver "wacom" Identifier "pad" Option "Device" "/dev/input/graphire4" Option "Type" "pad" Option "USB" "on" EndSection
Then add the lines below into the "ServerLayout" section:
InputDevice "cursor" "SendCoreEvents" InputDevice "stylus" "SendCoreEvents" InputDevice "eraser" "SendCoreEvents" #The line below is for Intuos3, Cintiq 21UX, or Graphire4 only InputDevice "pad"
When you have finished, restart the X server with the "[Ctrl] [Alt] [Backspace]" shortcut.
Now your tablet should work! :)
If not, check the last section of this HOWTO or write your problem in the appropriate forum thread.
That's All Folks! (or not?)
Problem: No devices are displayed in /dev/input
To solve this problem (also the mine) copy the "wacom_drv.so" file from the
linuxwacom sources in the "usr/X11R6/lib/xorg/modules/input" directory,
with the followings commands:
# cd linuwacom-x.x.x-x # cd prebuilt # cp wacom_drv.so /usr/X11R6/lib/xorg/modules/input
Note: if you have a 64bit version of linux you must copy the "wacom_drv.so_x86-64" file renaming it simply with the command "cp" like:
# cp wacom_drv.so_x86-64 /usr/X11R6/lib/xorg/modules/input/wacom_drv.so
Problem: The shapes are not proportional
To test this issue , put a CD on your tablet (yes, you've got it right! :) and draw into it with a graphic application, like The GIMP.
If the circle is not perfect you must add a special option in "/etc/X11/xorg.conf" on each "InputDevice" sections of your tablet.
Option "KeepShape" "on"
Configuring The GIMP and Inkscape
The GIMP
Go to File -> Preferences -> Input Devices -> [Configure Extended Input Devices...]. Set for each device the "Screen" mode and don't forget to save the changes. After this operation, all things will work perfectly.
Inkscape
Go to File -> Input Devices. Set for each device the "Screen" mode and don't forget to save the changes. After this operation, all things will work perfectly.
Final Notes
Frugalware version: -current Kernel version: 2.6.19 Xorg version: 7.1.99.903 linuxwacom version: 0.7.6-4 My tablet: Graphire4 (Small)
Any suggestions or comments are welcome. So, fell free to contact me :)