VectorLinux
October 25, 2014, 09:42:19 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: HowTo- Enable wacom tablet support  (Read 6521 times)
blurymind
Packager
Vectorian
****
Posts: 1082



« on: May 29, 2008, 09:07:03 am »

First of all,this howto applies for wacom tablets.The procedure is simular for other tablet brands,but you need a different driver and different settings in xorg.conf.
If you have a wacom tablet- Congratulations! There are awesome things that you can make with this awesome tool.Having it work under linux is sweet...Applications that i use with it : gimp,mypaint,gogh,wine+artrage,photoshop and so on...)

Hope these simple steps help you get it running

0.check things
you first need to see if your tablet has been picked as a device.Plug it in and issue the following command as root:
Code:
lsusb

and then also try this command

Code:
cat /proc/bus/input/devices

with this commands you should see your tablet device listed among other input devices. There has to be something like this:

Code:
I: Bus=0003 Vendor=056a Product=00b0 Version=0102
N: Name="Wacom Intuos3 4x5"
P: Phys=
S: Sysfs=/class/input/input5
H: Handlers=mouse3 event5
B: EV=1f
B: KEY=1cff 0 1f000f 0 0 0 0 0 0 0 0
B: REL=100
B: ABS=100 f00016b
B: MSC=1

if you see it there,then that means that your usb ports are alright and you can move on with this howto.

1.Installing/Compiling the driver.
Now there are two ways to install the driver.One is by compiling it yourself,the other is the easier- start gslapt and see if there is an avaiable package at the repository.If you are using vl-5.9 with kernel version 2.6.22 (or close,lol) here is the package that might work:
http://blurymind.googlepages.com/linuxwacom-0.8.0-3-i586-1vl59.tlz
Code:
installpkg linuxwac*.tlz
as root

if not,and there is no package at the repository,and the one i gave you does not work try compiling the driver.Download its latest stable (production) release from: http://linuxwacom.sourceforge.net/  untar it and
Code:
./configure --enable-wacom
and then make and make install/checkinstall (you know the drill)
Nothe that its better to do this before you install nvidia/ati driver on your linux box.If you do it after that,at linuxwacom wiki they say its a good idea to reinstall your nvidia/ati driver after installing the wacom driver.

just in case run this command as root:
Code:
modprobe wacom

2.create a symlink.
We need to create a file in udev,so when you plug your tablet, a simlink shows up as /dev/input/wacom:
as root
Code:
adie/mousepad(or any other text editor) /etc/udev/rules.d/10-wacom.rules
and paste the following:
Code:
KERNEL=="event*", ATTRS{idVendor}=="056a", NAME="input/%k", SYMLINK+="input/wacom"

save the file

3.Editing Xorg.
Now we have to add some lines to Xorg.These settings are different for different tablets. I am going to paste the ones i use,they say that they work on most USB wacom tablets.If your tablet doesnt use a usb cable,then you would probably need a bit different settings...

open xorg.conf file as root with your favorite text editor:
Code:
adie /etc/X11/xorg.conf
and add the following lines:

under section "server layout" add the lines
Code:
    InputDevice "cursor" "SendCoreEvents"
    InputDevice "stylus" "SendCoreEvents"
    InputDevice "eraser" "SendCoreEvents"
    InputDevice "pad"
wiki says that mouse should be set to "corepointer"

then paste these
 
Code:
Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "Tilt" "on"
Option "USB" "on"
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "Tilt" "on"
Option "USB" "on"
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/input/wacom"
Option "Tilt" "on"
Option "Type" "cursor"
Option "USB" "on"
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "pad"
Option "Device" "/dev/input/wacom"
Option "Type" "pad"
Option "USB" "on"
EndSection

save the file and exit

4.Checking if things went fine
Now REBOOT your computer and make sure your tablet is plugged in ..

Now if you see that your tablet acts like one on the screen,you should also check if its pressure and tilt work. Enable your tablet in gimp to check that(see 5.) other than that you can run this command as root to see if its picked correct:
Code:
wacdump /dev/input/wacom
when you move and press with the stylus,the stats that come up should rapidly change ,depending on what you do.Note that for some reason in some cases (like the one with the latest driver) wacdump does not work and the stats will not change.That does not mean that pressure sensitivity wont work in gimp,krita and so on

5.Enable tablet support in gimp
start gimp and go to file>preferences>input devices>Configure Extended Input Devices

pick stylus,eraser,pad,and cursor and set them to "screen"... dont change anything else.Save settings and see if pressure works in gimp now.


6.Tablet support in wine
 (artrage,open canvas,photoshop cs1,2...and so on)-
Your pressure sensitivity should work fine for you in those applications and that makes wine really great,because they are trully awesome drawing apps.If it doesnt,then something must be wrong with the version of wine you are using.


note:open canvas doesnt work very well in it,but artrage and photoshop are flawlessly running with pressure sensitivity enabled.

« Last Edit: February 13, 2009, 12:06:25 pm by blurymind » Logged

status: playing around with new tablet and learning to 3d :p
google page :  http://blurymind.googlepages.com
DA PAGE :  http://www.blurymind.deviantart.com/
blurymind
Packager
Vectorian
****
Posts: 1082



« Reply #1 on: June 28, 2008, 11:46:35 am »

tablet pressure in wine has been fixed in version 1.1.0 , so no need of patching anymore
Logged

status: playing around with new tablet and learning to 3d :p
google page :  http://blurymind.googlepages.com
DA PAGE :  http://www.blurymind.deviantart.com/
blurymind
Packager
Vectorian
****
Posts: 1082



« Reply #2 on: February 13, 2009, 12:08:46 pm »

I slightly updated the tutorial.


The process is absolutely the same for VL6.
I have created a package of the latest WACOM tablet for VL6. You can download it here:
http://blurymind.googlepages.com/linuxwacom-0.8.2-2-i586-1vl60.tlz

or slapt-get/gslapt it when it gets to the repository.
Note:symlink not included in the package,so you will need this guide

cheers!

i also have it ready for a repo- with a slackbuilt,slack-desc and everything else

i know that its version number has a "-" but its impossible to create a slackbuilt script that downloads it from its official website and doesnt have the "-" in its version number
« Last Edit: February 13, 2009, 12:26:10 pm by blurymind » Logged

status: playing around with new tablet and learning to 3d :p
google page :  http://blurymind.googlepages.com
DA PAGE :  http://www.blurymind.deviantart.com/
uelsk8s
Administrator
Vectorian
*****
Posts: 2504



« Reply #3 on: February 13, 2009, 01:04:55 pm »

First i would like to welcome you back.

Quote
i know that its version number has a "-" but its impossible to create a slackbuilt script that downloads it from its official website and doesnt have the "-" in its version number
This is far from impossible, the simplest way to fix this is to change the line at the bottom of the SB from:
Code:
makepkg -l y -c n $RELEASEDIR/$NAME-$VERSION-$ARCH-$BUILD.tlz
to
Code:
makepkg -l y -c n $RELEASEDIR/$NAME-$(echo $VERSION|tr - _)-$ARCH-$BUILD.tlz

Thanks,
Uelsk8s
Logged
blurymind
Packager
Vectorian
****
Posts: 1082



« Reply #4 on: February 13, 2009, 02:59:02 pm »

First i would like to welcome you back.

Quote
i know that its version number has a "-" but its impossible to create a slackbuilt script that downloads it from its official website and doesnt have the "-" in its version number
This is far from impossible, the simplest way to fix this is to change the line at the bottom of the SB from:
Code:
makepkg -l y -c n $RELEASEDIR/$NAME-$VERSION-$ARCH-$BUILD.tlz
to
Code:
makepkg -l y -c n $RELEASEDIR/$NAME-$(echo $VERSION|tr - _)-$ARCH-$BUILD.tlz

Thanks,
Uelsk8s
aaah how didnt i think of that  Grin thanks uel.
Glad to be back.
Wacom tablet works like charm on vl6.Its far easier to compile and set up this time. I hope slack gets hotplugging for usb tablets some day
Logged

status: playing around with new tablet and learning to 3d :p
google page :  http://blurymind.googlepages.com
DA PAGE :  http://www.blurymind.deviantart.com/
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!