How to set up a Wacom Tablet

How to do things, solutions, recipes, tutorials
Message
Author
User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

xf86-input-wacom-0.17.0 for k3.6.2 driver

#261 Post by charlie6 »

Hi,
here are the latest xf86-input-wacom-0.17.0 for k3.6.2 drivers compiled on dpup exprimo 5X.3.6.2.1
thanks for testing and reporting
Charlie

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#262 Post by don570 »

I tested xf86-input_k.3.6.2-dpup-wacom-0.17.0.pet driver
in latest exprimo and it worked well except that when I rebooted
my machine I had to set up mtpaint pressure preference again.

____________________________________________________

I noticed that in /etc/X11/ there is a file in charlie's pet package
that explains how to make xorg.conf file.
I made my server layout look like this...

Code: Select all

Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
#from kernel 2.6.35 and later the "SendCoreEvents" after InputDevice is no longer required
	InputDevice    "stylus"
    InputDevice    "eraser"
    InputDevice    "cursor"
    InputDevice    "pad"		
EndSection


and then inserted the input device descriptions

Code: Select all


Section "InputDevice"
      Identifier    "stylus"
      Driver        "wacom"
      Option        "Device" "/dev/input/wacom"
      Option        "Type" "stylus"
	  Option        "USB" "on"
	  Option        "Mode" "Absolute"
      Option        "AlwaysCore" "on"
      Option        "Speed" "1.3"
      Option        "Threshold" "5" 
      Option        "CursorProx" "5"
#	  Option        "Speed" "5"
#	  # Option        "ForceDevice"   "ISDV4"               # Serial Tablet PC ONLY
EndSection

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

Section "InputDevice"
      Identifier    "cursor"
      Driver        "wacom"
	  Option        "Device" "/dev/input/wacom"
      Option        "Type" "cursor"
      Option        "USB" "on"
#	  Option        "CursorProx" "100"
	  Option        "Speed" "1.3"
EndSection

Section "InputDevice"
    Identifier     "pad"
    Driver         "wacom"
    Option         "Device" "/dev/input/wacom"
    Option         "Type" "pad"
    Option         "USB" "on"
#	Option         "SendCoreEvents" "false"
    Option         "ButtonsOnly" "on"	
#    Option         "Button9" "2"
#    Option         "Button13" "3"
    Option         "Mode" "Absolute"	
EndSection

# if you have a touch pad just uncomment the next section

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





Last edited by don570 on Wed 22 May 2013, 00:01, edited 1 time in total.

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#263 Post by greengeek »

don570 wrote:I noticed that in /etc/X11/ there is a file in charlie's pet package that explains how to make xorg.conf file.
Hi Don, I saw your comment about the xorg tutorial embedded in Charlies pet file and wondered if there is any chance of you posting just that info somewhere? (I don't yet know how to extract one component from a pet and I haven't trialled Exprimo yet)

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#264 Post by don570 »

I'll post it next week.

The official instructions to modify the xorg.conf file are HERE

I only mentioned this new file because it had some new instructions inside.

By the way you can get inside a pet package with this command
but it destroys the original pet package so use a copy.

Code: Select all

 pet2tgz  /path/to/package
I always drag the pet package to /root
so the command is

Code: Select all

pet2tgz  /root/xf86-input_k.3.6.2-dpup-wacom-0.17.0.pet
Then just click on the archive to open it.
Some puppies have a right-click option to do all this work automatically.




_____________________________________________

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#265 Post by greengeek »

Thanks Don - I just gave the pet2tgz a try and am happy to have learned a new trick. That will be useful. cheers.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#266 Post by don570 »

Here's the instructions. I used them for Exprimo.

Remove gz extension.

__________________________________________
Attachments
wacom_xorgdotconf_bits.txt.gz
Remove gz extension
(2.63 KiB) Downloaded 704 times

User avatar
Hotdog
Posts: 134
Joined: Fri 30 Sep 2011, 03:15
Location: Georgia USA

Wacom serial Digitizer II on Puppy 5.2.8 (Lucid)

#267 Post by Hotdog »

I have followed this thread with great interest, reading and rereading it. But, I still do not understand how to get a working edit into the xorg.conf. It does not have the ServerLayout section no matter how many times it is deleted and Puppy rebooted. When edited to include the ServerLayout and other items for the Wacom tablet, X refuses to use the file and will not start without running the Xorg wizard. xorg.conf always returns to this content:

Code: Select all

#Special base config file used in Puppy Linux.

# **********************************************************************
# Module section -- this  section  is used to specify
# which dynamically loadable modules to load.
# **********************************************************************
#
Section "Module"

# This loads the DBE extension module.

    Load        "dbe"  	# Double buffer extension

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection

# This loads the font modules
#    Load        "type1"
#    Load        "freetype"

# This loads xtrap extension, used by xrandr
#   Load       "xtrap"

# This loads the GLX module (if present). xorg 7.4/5 need explicit disable to disable...
    Load    "glx" #LOADGLX

# This loads dri module (if present). 7.4 loads it by default, have to disable...
   Load       "dri" #LOADDRI
#    Disable "dri"

EndSection

# **********************************************************************
# Files section.  This allows default font paths to be set
# **********************************************************************

Section "Files"

# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)

    FontPath   "/usr/share/X11/fonts/misc/"
    FontPath   "/usr/share/X11/fonts/Type1/"
    FontPath   "/usr/share/X11/fonts/TTF/"

EndSection

# **********************************************************************
# Server flags section.
# **********************************************************************

Section "ServerFlags"

# Uncomment this to disable the <Crtl><Alt><Fn> VT switch sequence
# (where n is 1 through 12).  This allows clients to receive these key
# events.

#    Option "DontVTSwitch"

# Enables mode switching with xrandr
# There is a report that this can cause Xorg not to work on some
# video hardware, so default is commented-out...
# but i want to use it in xorgwizard so leave on...

    Option "RandR" "on"

# With this, Xorg won't talk to HAL to add evdev devices and you'll be back
# with the old Xorg behavior (pre-7.4)...

    Option "AutoAddDevices" "false"

# For no-Hal, kirk also suggests this...

#    Option "AllowMouseOpenFail" "true"

# Xorg 7.4, Ubuntu Jaunty, CTRL-ALT-BACKSPACE is disabled by default...

    Option "DontZap" "false"

EndSection

#everything past here is auto-generated by Puppy's Xorg Wizard...


	

#PuppyHardwareProfile=NVIDIAX193W
If anyone can clear my thinking on this, I would be so grateful.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#268 Post by don570 »

I'm reading your xorg.conf
# There is a report that this can cause Xorg not to work on some
# video hardware, so default is commented-out...
# but i want to use it in xorgwizard so leave on...

Option "RandR" "on"
Just a guess ---> try commenting out the line


I would try Barry Kauler's Wary or Racy distributions since they
are the most compatible with wacom
_________________________________________

User avatar
Hotdog
Posts: 134
Joined: Fri 30 Sep 2011, 03:15
Location: Georgia USA

#269 Post by Hotdog »

For anyone with a hard drive installation of Puppy 5.2.8 and a Wacom Digitizer II (also Artz II) serial graphics tablet and following this thread, here is an update.

The xorg.conf can be constructed with a ServerLayout section that will persist through rebooting. I have one working now. I also have wacdump and xsetwacom working. They show that all the functions of the tablet can be communicated with the computer running Puppy 5.2.8. The two Wacom kernel drivers included in Puppy 5.2.8 are: 1) for the USB connected graphics tablet and 2) for a tablet PC. Currently I'm working on compiling the kernel driver against the 2.6.33.2 kernel. The 'close-to' kernel versions that I've tried yield an "invalid module" response.

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

#270 Post by charlie6 »

Hi hotdog,
- about section ServerLayout:
maybe you have already found that you need (=must !) to run Xorgwizard for your PC + screen configuration to get that section made in xorg.conf.

- use of wacom tablet needs two drivers: a kernel one; + a Xorg one (sorry if you are already aware);

- does the kernels wacom driver need to be compiled?
So, as told in the old linux-wacom-project
website from kernel later than 2.6.35, and X server from version 1.7, only the xf86-input-wacom driver needs to be compiled.
- 1. does your distro comes with a wacom.ko kernel driver, doesn'it? Or maybe do you need a more up to date driver ...i don't know anything about it.
- 2. type in a console

Code: Select all

Xorg --version
if 1.7 or above you might only need compiling the Xorg xf86-input-wacom driver.

- for compiling the wacom Xorg input driver ( ! not the kernel driver), and making a pet do read don570's and shinobar's posts inside this thread (somewhere around page 14 and following; also prefer using «make install DESTDIR=path_to_directory_to _make_the_pet_from» to populate that directory - otherwise the pet comes with missing files which are actually installed in the system rather than in the pet)

- if reading across linuxwacom website pages, you will that version 0.18.0 of xf86-input-wacom needs a fix. So prefer another version.

hope this helps a bit

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#271 Post by don570 »

I discovered the fatdog 610 distro has wacom already pre-installed.

The applications just have to be set for pressure in their preferences :lol:
Porteus linux and Ubuntu are the same .



____________________________________________________

User avatar
Hotdog
Posts: 134
Joined: Fri 30 Sep 2011, 03:15
Location: Georgia USA

Serial Wacom tablet on Puppy 5.2.8

#272 Post by Hotdog »

Don570 and Charlie6,

Puppy 5.2.8 uses the 2.6.33.2 kernel and the 1.7.6 X server which turns out to be an in-between combination relating to the Linux Wacom project and its support for stand-alone serial tablets, specifically the Protocol 4 models. By 'in-between' I mean that their Xorg driver for v1.7.6 does not work with their kernel driver for v2.6.33.2 if the tablet is serial.

My first concern was trying to edit the Xorg.conf file. If deleted and Puppy rebooted or X restarted, Xorgwizard will always recreate the Xorg.conf file exactly as it was initially installed. The edit suggestions scattered through this 19-page thread will not "take" either. When those edits are put in exactly as given, X will fail and xorgwizard is necessary to get it going again. However, through much trial and error and by editing one line at a time and testing I have created a decent Xorg.conf that will persist through restarts and reboots. It contains the server section and the input device sections.

The Xorg portion of linuxwacom-0.8.8-11-k2.6.32.28-w5.tar.gz found in this thread seems to be what is needed for Puppy 5.2.8. Wacdump , xsetwacom and xidump all yield their expected results. The Xorg driver may be good to go. The kernel driver section is for a different kernel and does not work. The result is an "invalid module" error.

User Tokenrove from the Ubuntu forum http://ubuntuforums.org/showthread.php?t=1780154 has created a patched version of the Linux Wacom Project's kernel driver. It needs to be compiled against the 2.6.33.2 kernel and then have the patches applied. My attempts at compiling have been disappointing. I have worked with FORTRAN but never C. I'm so far behind the curve that it looks straight from here!

The combination of those two software items just mentioned plus the modified edits in the xorg.conf will probably yield a satisfactory solution to getting the Wacom Digitizer 2 and the Wacom Artz 2 serial tablets working in Puppy Linux 5.2.8.
[i]Puppy 5.2.8.7, Full Install[/i]

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

xf86-input-wacom-0.17.0 for k3.2.29 driver

#273 Post by charlie6 »

Hi,
here is xf86-input-wacom-0.17.0 for k3.2.29 driver
enjoy
charlie

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

Re: Serial Wacom tablet on Puppy 5.2.8

#274 Post by charlie6 »

Hi hotdog
Hotdog wrote:..Puppy 5.2.8 uses the 2.6.33.2 kernel and the 1.7.6 X server..
did you already try shinobar's k2.6.33 compiled xf86-input-wacom driver
wacom-0.10.8_xorg_driver.pet ?
here
http://101.143.162.62/puppy/lupq/opt/wa ... driver.pet

User avatar
Hotdog
Posts: 134
Joined: Fri 30 Sep 2011, 03:15
Location: Georgia USA

#275 Post by Hotdog »

Charlie6,

Thanks for the reply. Your suggestions apply to the xorg portion which as I posted is already working as expected. The current need is for a kernel module compiled against the 2.6.33.2 kernel and patched appropriately for the protocol 4 serial wacom tablets.

I would be overjoyed if you would like to attempt the compile just to see if you get the same errors that I get here. That would help show what I may be doing wrong. Can you compile against the 2.6.33.2 kernel?
[i]Puppy 5.2.8.7, Full Install[/i]

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

#276 Post by charlie6 »

Hotdog,
are you serial tablets in the following list (picked up from linuxwacom «old» or «legacy» website)
Supported Serial Devices
UD series & PenPartner
Graphire & Intuos series
Cintiq series
TabletPC (with/without touch)
- I have no serial tablet, then i can't perform any test.
- For having tried compiling some wacom kernel module, i can say it might be above my capabilities (i can just tell it needs the kernel headers in addition to the devx_xyz.sfs module).
- so i can't promise doing something.

sorry
charlie
Last edited by charlie6 on Fri 14 Dec 2012, 21:39, edited 1 time in total.

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

#277 Post by charlie6 »

Hi hotdog,
all these written on lupu-528 + USB wacom volito tablet + 0.15.0 wacom.ko + xf-86-input-wacom_k2.6.33.2

hmm..given without warranty

attached pieces: just drop the .gz extension as also the «-0.15.0» version to read them as text files, and to get the .ko drivers.

I compiled the input-wacom-0.15.0 driver just to see ... what could happen as the linuxwacom-project website tells it is an USB-driver (...and i have here only USB-wacom tabets...i am not interested at all, am i ;-) ? ).
IMHO, the drivers present with the lupu-5.2.8.iso might work with your serial tablets, if these have been included in the development of the driver.
So go to step 2. hereunder; for using the latest input-wacom-0.15.0 driver go to step 1. hereunder;
1. Compile went good and i found 2 drivers:
- wacom.ko driver compiled for USB use (42K against 32K for the one in lupu528's iso)
and something that mightinterest you ...
- wacom_w8001.ko driver compiled for SERIAL use (8492B against 6469B for the one in lupu528's iso)
Read «how to» in the attached piece «wacomdotko_readme.txt»
which are instructions for use of the driver, which come at the end of the make step.
2. I believe you should do in a console
sh-4.1# depmod
sh-4.1# modprobe wacom_w8001
to activate the driver.
Now, if all went good, I assume your tablet could work as a mouse. (I am assuming the tablets behaviour to be indifferent whether USB or SERIAL pluging).
3. For full use of your tablet you need now the X driver i.e. xf86-input-wacom-0.17.0_k2.6.33.2 driver.
3.1. do install its pet (download hereunder);
3.2. then edit the xorg.conf
In order to know which are the options for serial tablets, go to the legacy linuxwacom-project:
http://linuxwacom.sourceforge.net/index ... o/inputdev
there you will find the complete bits to copy to xorg.conf for serial or USB ones. Just comment what is USB relevant, and uncomment what is SERIAL.
A tip: delete the comments beginning with # at the end of an option line (example «#for USB only» etc...).

attached is my xorg.conf for a USB tablet;
In the «Section "Input Device"» cursor, stylus and eraser, COMMENT the lines
Option "USB" "on"
and UNCOMMENT the lines having
# Serial Tablet PC ONLY

4. Option "CursorProx"
here have set the value of
Option "CursorProx" "5" for the stylus
Option "CursorProx" "100" for the cursor
cursors value has to be adjusted: if this line is commented, the cursor does not move, except if the mouse hovers about 5mm over the tablet.

5. before restarting X, make a copy of your new xorg.conf (for instance xorgdotconfwacom), to help recover it afterwards if X hangs up.
(if X don't start, you got the console mode; there you might edit xorg.conf using the mp command; or replacing the wrong xorg.conf by a previous made backup using the mv command ...but i believe your are already aware of this).

hope this helps
Charlie


To check if the tablet is recognized , just open
/proc/bus/input/devices
and look for a paragraph telling
...
I: Bus=0003 Vendor=056a Product=0060 Version=0142
N: Name="Wacom your-tablet"
...
- compilation using the lupu_devx.sfs (ibiblio repo) and the linux-kernel-source.sfs (see smokey01 repo)
http://linuxwacom.sourceforge.net/index ... o/inputdev
Attachments
xorg.conf.txt.gz
the xorg.conf for USB tablet
(7.04 KiB) Downloaded 610 times
wacomdotko_readme.txt.gz
comments coming with compilation
(1.9 KiB) Downloaded 619 times
xf86-input-wacom-0.17.0_k2.6.33.2.txt.gz
comments about it ...
(285 Bytes) Downloaded 607 times
wacom_w8001-0.15.0.ko.gz
SERIAL wacomw8001.ko version 0.15.0 driver
(8.29 KiB) Downloaded 585 times
wacom-0.15.0.ko.gz
USB wacom.ko version 0.15.0 driver
(48.29 KiB) Downloaded 685 times

User avatar
Hotdog
Posts: 134
Joined: Fri 30 Sep 2011, 03:15
Location: Georgia USA

#278 Post by Hotdog »

Charlie6,

And you said that you did not know anything about compiling kernel modules! I'm impressed, not only with your success but your helpfulness, too. I appreciate being able to compare our Xorg configurations. That may be a big help when the kernel module is working. Unfortunately, the wacom_w8001-0.15.0.ko is for a touchscreen PC-type device and not related to the serial-connected Digitizer 2 (mine) or the Artz 2 (also called the UD series or protocol 4 series). However, I still tested it. The good news is that what you compiled was accepted without error on my machine.

Would you be so kind as to attempt compiling the attached file. Even if it did not compile, I would like to compare the errors it produces when you attempt compiling it against the 2.6.33.2 kernel. It has a short makefile included.

Thanks for your help!
Attachments
wacom_test.tar.gz
Wacom kernel driver for compiling
(4.28 KiB) Downloaded 584 times
[i]Puppy 5.2.8.7, Full Install[/i]

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

#279 Post by charlie6 »

Hi hotdog,
I believe one should here ask for help to C programmers.

...in attachment the comments of a compilation attempt using the wacom_serial.c and makefile from your last post.; attempt performed on the same system as the driver compile above.

I am far from being a C programmer. I even had to google around to find out how to compile a C file ... as i ignore all about C programming language and the way compiling it...

The attached files might give you a rough idea about the kinds of errors encountered.

So, at this point, i am sorry not being in the possibility to help you more.

Chers, Charlie
Attachments
wacom_serial_gcc_comments.txt.gz
just drop down the «.gz» extension to read the txt file
(70.2 KiB) Downloaded 606 times
wacom_serial_make.txt.gz
(494 Bytes) Downloaded 596 times

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#280 Post by pemasu »

Load devx sfs and kernel source sfs. Extract the content of tarball for example to the /usr/src/linux/drivers/input/touchscreen ie Makefile over existing one and wacom_serial.c

Cd to that directory and run in console:
make -C /lib/modules/`uname -r`/build M=`pwd` wacom_serial.ko

If the compile is succesfull, copy the created kernel module to appropriate directory in /lib/modules/....
Run depmod and load the module.
Might even work.

This kernel driver module was test compiled in dpup exprimo 3.4.2 kernel version
Attachments
wacom_serial-k3.4.2-dpup-0.0.1.pet
(4.46 KiB) Downloaded 612 times

Post Reply