Follow me for updates and bonus :

illustrator , concept-artist

Set the led display of the Wacom Intuos4 tablet on Ubuntu/LinuxMint

24 april 2011

Warning :the method presented in this article are too old to be applied now. Use this information at your own risk.

script ledwacom photo

Hi ! another "Geek" post to answer to a comment of the previous post about installating of 2D tools I use on Linux.

Wacom Intuos 4 run 'out-of-box' in Ubuntu and Linux Mint distro, but a lot of little things are still hard for end users :
The LED display doesn't works out-of-the-box , and buttons can't be customised with a user interface. Here is the little how-to I get my tablet to work at 100%, I hope it will help beginners as this is the hardest part for digital painters starting on Linux : getting their tablet to work. I took time to write the terminals code to be the easier as possible.


Note: this guide is for Ubuntu 10.10 Maverick Meerkat , and Linux Mint julia 10 and concern Wacom Intuos4 M ( I presume it will work with L and S models ) . If you know how to do it in other versions or system , please share it using the comments. Thanks!

08-2012 : If you look for a method with 12.04 , follow this link :  http://braindump.kargulus.de/?p=321

Installation

All you will need is to copy and paste the lines of codes under into a terminal windows ( Ctrl + C here , and Ctrl + Maj + V in the terminal ). I advice you to do it line by line, and I hope everything will get installed "automagically" as I tryed to write it. I'm still a bash beginner, please report your problems on the comments.

GNU C++ and the USB 1.0 and Magick++ libraries are needed to compile. Under Debian/Ubuntu/LinuxMint they are installed as follows:

sudo apt-get install g++ libusb-1.0-0-dev libmagick++-dev

We will create a directory "Script/" first to work on

cd
mkdir Script

Then grab the source zip and unpack ( and clean )

wget http://www.davidrevoy.com/data/documents/Intuos4-LED.zip
unzip Intuos4-LED.zip -d ~/Script
rm Intuos4-LED.zip

Then compile the sources by invoking make

cd ~/Script/Intuos4-LED/src
make

First test :

You can perform a first tablet LED check:

sudo ~/Script/Intuos4-LED/src/intuos4-led-check

The test should work on Intuos4-M only , I can't said for other tablet ( S and L ) , the identificator seams to be hardcoded by the programmer.
The test do at first a gradient on the LED, then .... I let the surprise : have fun with this 'easter egg' of the programmer Christoph Karg ;)

Usage :

You can now use this program with a script combined with 'xsetwacom' to create your tablet configuration,
here is the script I use in my '~/ Script/Intuos4-LED/src' folder )

cd
wget http://www.davidrevoy.com/data/documents/my-init-intuos4-tablet.sh
mv my-init-intuos4-tablet.sh ~/Script/Intuos4-LED/src/my-init-intuos4-tablet.sh

You have to config the script to your setup, preferences, path, as well as your tablet ID

gedit ~/Script/Intuos4-LED/src/my-init-intuos4-tablet.sh

script ledwacom overview

If you don't know your tablet ID, paste this in a terminal :

xinput --list | grep '[w|W]acom'

My script call custom icons I created , feel free to create more yourself with Gimp and have fun !

cd wget http://www.davidrevoy.com/data/documents/Wacom-LED-icons.zip
unzip Wacom-LED-icons.zip -d ~/Script/Intuos4-LED/icons
rm Wacom-LED-icons.zip

A bit of more ergonomy to launch it :

When your script is ready ; I create here with a right click over my Mint Menu a new launcher ; easy to setup like the image under.
Like this I only have to click the icon at start-up.

script ledwacom launcher
script ledwacom desktop

The cons of this script is it has to use super user privilege to run, and so asking a password ; but this is really fast and nothing compare to the pleasure of using the device properly.
Have fun and I hope you will had a good install !

More infos : you can find the original archive by the programmer Christoph Karg here : http://tinyurl.com/44bhqcw

Update : The developper Christoph Karg himself visited and commented to give a fresher link to have the last update of his software , thanks ! : http://braindump.kargulus.de/?p=432

Share this page :

^

43 comments

Avatar Gravatar

http://www.trebla.fr
sunday 24 april 2011, 19:21

Non mais là ca frise l'hopital psychiatrique hein...

Trafiquer sa wacom pour voir son nom... tu as des trous de mémoires ? ^^

:-D

Masi il est vrai que ca fait zau-li ! :D

Avatar Gravatar

2. Tairony


sunday 24 april 2011, 20:47

Thank you soooo much David! *-*
I'm your big fan! XD

Avatar Gravatar

3. Jak


sunday 24 april 2011, 22:12

Thank you for this tip!

I have a Intuos 4 L (8x13) and I changed line 19 of WacomIntuos4LED.cpp file with the value found with

lsusb | grep '[w|W]acom'

my output is:

Bus 002 Device 014: ID 056a:00ba Wacom Co., Ltd Intuos4 8x13

and the value of interest is 00ba

So the changed line became from
#define WAC_INTUOS4_M_PRODUCT_ID 0x00b9
to
#define WAC_INTUOS4_M_PRODUCT_ID 0x00ba

I'm sorry for my english, I hope you can understand.

Jak

Avatar Gravatar

4. André


monday 25 april 2011, 12:03

Thank you so much!

I hope it will work with my intuos4 XL.

Did you ever tried Googles SketchUP in Wine? It seems very easy to create an environment scene or other things with that app.

best regards from germany

Avatar Gravatar

5. Jak


monday 25 april 2011, 13:31

@André try to follow my instruction, it will work! I hope...

Avatar Gravatar

6. Paytonpak


wednesday 27 april 2011, 11:44

Je rejoins Trébla sur le nom affiché, la classe !!!

Tu crois que c'est possible sous windows ?

http://www.davidrevoy.com
thursday 28 april 2011, 18:39

@Trébla : Tout ça vient de la mauvaise influence d'avoir travaillé au contact du tuning PC ( bon, ou sont mes néons bleus foncés pour rétro-eclairer le dessous... mmm ).

@Tairony: cool :D

@Jak : Thanks for the tip; I will update the article to invite user with different tablet ( L, XL ) to read your comment.

@André : About Google Sketchup, I tryied by the past and liked it. But I didn't pursue my learning on it ; I always was affraid with the proprietary license I would have to pay at one moment to continue use it. So I investigated more with Blender.

@Paytonpak : mmm... Aucune idée de comment est le driver sous Windows (j'ai une partition 'attrophié' du système 7 préinstallé mais je ne la demarre jamais, je la garde juste pour revendre la machine au cas ou... ). Donc je ne sais pas si ce driver est capable d'envoyer des petits PNG à la mémoire de la tablette comme le fait Linux dans ce cas.

Avatar Gravatar

8. Tairony


friday 29 april 2011, 17:04

Hey David, it's me again! XD

I was testing the buttons and all is now ok. But I was wondering.. how can I configure the scroll(the "circle" XD) button? It's already configured for ZOOM, but I wanna change the shortcut and I didn't find where.
In windows, we have 4 possibilities (there is 4 leds, right? XD) but in Linux only has one(the zoom). How can I do to configure the others?

Sorry for bothering you again! XD
Thank you so much!

http://www.davidrevoy.com
friday 29 april 2011, 17:59

@Tairony : Hi ; I think a solution can start in this link :
http://ubuntuforums.org/showthread.php?p=9888901#post9888901

Here too I had problem to setup touch/scroll function, but finaly I don't use them ; so I didn't continued to look at or test more.

Avatar Gravatar

10. Tairony


friday 29 april 2011, 18:38

Okay, thanks! :D

Avatar Gravatar

11. André


friday 29 april 2011, 22:15

@David: Well, as a student i forget that point. You are absolutely right.^^

Can you show us your desk? What monitor setting do you use..2 tfts or only one? With IPS-Panel or normal TN-Panel?

http://www.davidrevoy.com
saturday 30 april 2011, 01:15

@Tairony : ;)

@André : That's a good idea for a next blog post :) I have to clean my home studio a bit and take some photos.

Avatar Gravatar

13. Joshua Tyler


saturday 30 april 2011, 15:57

@Tairony:

It used to be really easy to do what you want with old versions of the wacom X driver. xsetwacom would let you bind the wheel events to keypresses directly, problem solved!

Unfortunately, that's no longer supported, so there isn't a proper way to do it. You can work around it, though, by creatively using xsetwacom, xbindkeys, and xvkbd together. Why each program is used:

* xvkbd can generate keypresses in scripts and on the command line.
* xbindkeys is a program that captures mouse events and runs command-line programs or scripts on button press.
* xsetwacom can rebind the touchwheel to mouse buttons that aren't used. (the touchwheel defaults to the mouse scroll wheel, which you won't want to rebind)

First, install xvkbd and xbindkeys. ('apt-get install xvkbd xbindkeys'). Next, rebind the touchwheel. By default, the touchwheel generates mousewheel events. Instead, pick high buttons that won't be used by the mouse. Example:

xsetwacom set $DEVICE AbsWDn "16"
xsetwacom set $DEVICE AbsWUp "15"


Now edit $HOME/.xbindkeysrc to map these buttons to commands, like so:

"xvkbd -xsendevent -text ="
b:16
"xvkbd -xsendevent -text -"
b:15


Finally, run xbindkeys. While it's running, xbindkeys will catch mouse buttons 15 and 16 (generated by the wheel) and send keypresses via xvkbd. Now, using the wheel sends keyboard input (equal and minus keys in this example). You'll want to read the manual pages for xbindkeys and xvkbd to set it up to your own taste, but this should get you started. When you get everything working, add the two xsetwacom commands and the xbindkeys command to the script that sets up the LEDs and other binds, so everything will be configured at once.


@David:

If you don't want to keep entering your password, take out all the "sudo" commands and make the LED setting script SUID root instead: "chmod u+s my-init-intuos4-tablet.sh". Just be aware that it's an increased security risk, so you should separate the LED script from the rest of the configuration and make the file writeable only by you.

It should also be possible to put your script(s) in a special location and have them run when your desktop starts up. With KDE (what I use), you put scripts into $HOME/.kde/Autostart and they run automatically when KDE starts up. I'm not sure where you would put it for GNOME, but it should have something similar. Maybe try $HOME/.config/autostart/


I hope this helps you both.

Avatar Gravatar

14. Joshua Tyler


saturday 30 april 2011, 16:05

@David:

Sorry for double posting, but I forgot something in the SUID root instruction: you have to change ownership of the file to root for it to work as I said. The example should be as follows:

"chown root; chmod u+s my-init-intuos4-tablet.sh" performed as root

http://www.davidrevoy.com
saturday 30 april 2011, 17:19

@Joshua :

Many thanks for the detailed comment about your tips ! I really tryed to found a way to skip this password 'sudo' things and I will carefuly try and test your advices to update it. Thanks !

Avatar Gravatar

16. Tairony


saturday 30 april 2011, 19:07

Thanks Joshua! I'll try this soon *-*

Avatar Gravatar

17. Joshua Tyler


sunday 01 may 2011, 06:46

@David & Tairony:

No problem, hopefully it's clear enough to help. If anything isn't clear or you need more information, let me know. I'll try to check back and answer any questions.

Avatar Gravatar

18. Joshua Tyler


tuesday 03 may 2011, 07:48

Just a warning for anyone using any of this information: a recent update to the Xorg wacom driver (and xsetwacom) has made huge changes to configuration and available settings. A lot of settings have been removed, a few have been added, and there's an entire list of renamed parameters (see here: http://sourceforge.net/apps/mediawiki/linuxwacom/index.php?title=Xsetwacom#Table_of_New_Parameter_Names ) I wasted a couple hours yesterday trying to learn the new behaviour and eccentricities. In the interest of saving others some time, here are some of the other differences:

Some of those removals really suck for multi-monitor users. If you use nvidia's binary driver, you'll have a lot of fun fixing the tablet to only work on a single display, and you'll also get a crash course in using the "xinput" command. (Ref.: http://sourceforge.net/apps/mediawiki/linuxwacom/index.php?title=Dual_and_Multi-Monitor_Set_Up ) I had to completely remake my display switch script because of this.

It also changed the order of the button mappings. Instead of "2, 3, 4, 5, 1, 6, 7, 8, 9" (like the example above) it became "2, 3, 8, 9, 1, 10, 11, 12, 13" for me. In addition, I had to change my wheel mappings, because for some reason abswheeldown doesn't work - only up. However, relwheeldown still works.

There is some good news, though: when your distro updates to this driver (I think 0.10.10 and above) you'll be able to bind keys to the wheel directly again, without the xbindkeys hack.

http://www.davidrevoy.com
tuesday 03 may 2011, 10:19

@Joshua : Thanks for the information. I will keep an eyes on the update package of maverick meerkat here ( I don't step now in Natty Narval , always wacoms problem at each relase ).

Too bad for this changes, behind few new addition, it's a lot of documentation outdated ( 1 documentation of xsetwacom / ubuntu release almost ) , and user with headache when they try to make it run from outdated documentation. I will update the ubuntu-fr.org with this info , thx again !

Avatar Gravatar

20. Joshua Tyler


tuesday 03 may 2011, 11:20

@David: I just checked and Natty uses 0.10.11, so your decision to wait was probably good.

I use Debian testing, and the X update has been available for a couple weeks, but I avoided updating because I knew something would break. :)

Testing has 0.10.10, so there may be some differences in what I said and what's accurate for Natty; the touchwheel problems may be fixed, for example. I have no way to test, though, because I don't use Ubuntu anywhere.

Thanks for helping to keep the documentation current for others; I'm glad my info is helping with that. There isn't much good information on unusual wacom setups like button configuration, LEDs, and multi-display support. Most of it's trial-and-error :\

Avatar Gravatar

21. Jose Ramirez


friday 03 june 2011, 20:10

Hello David, i only have a question, how do you know the order of the buttons? wich is button 1? i have intuos4 small.

Have a good day!!

Avatar Gravatar

http://braindump.kargulus.de
saturday 04 june 2011, 17:07

Hi David,

nice to see that somebody used my software. Actually, the source code can be found on my webpage. Here is the appropriate link:

http://braindump.kargulus.de/?p=432

Enjoy your tablet! :-)

Christoph

http://www.davidrevoy.com/
sunday 05 june 2011, 16:58

@Christoph Karg : Thanks a lot for your visit and comment and for the software ; I update the link in the article :)

@Jose Ramirez : The button order seams to be hardcoded. For this just attribute to button 1 the key 1, to 2 the key 2 etc...etc... , and test your tablet in a text editor ; you will directly see what button fo what. But in general , you can find this button order infos into the documentation of wacom-linux.

@Joshua Tyler : I still keep 10.10 and 10.04 ( for desktop and laptop ) for the moment . I had bad feedback about Unity and Gimp-painter performance.

Avatar Gravatar

24. newgen


wednesday 17 august 2011, 20:04

Your tutorial in combination with the lsusb command line made tha installation of ma intous 4 L perfect. It works like out-of-the box.

My WacomIntuos4LED.cpp changes:
#define WAC_INTUOS4_M_PRODUCT_ID 0x00ba

for the model ptk-840

Avatar Gravatar

25. Long


saturday 01 october 2011, 22:00

Well, finally and using your script, my tablet wacom (I'm use the M model too) work OK with MyPaint.

But how to make to configure the buttons in Gimp?. I'm newer in linux and I decided to try using Linux Mint 11 Katia.

I hope can your help me, please

http://www.davidrevoy.com/
monday 03 october 2011, 11:32

A general news ; the patch is proposed to be inside the linux kernel , and linuxwacom project work on a GUI about OLED too. This will takes surely times , but just to say it's on the good way for users. Thanks developpers !

@newgen : Thanks for for your info.

@Long : I advice you for Gimp to red this good post made on the topic by my friend Olivier Saraja : http://feeblemind.org/blog/index.php?post/2010/07/07/Configuring-Gimp-for-pen-tablets-%28like-Wacom-s-Bamboo-Fun%29

Avatar Gravatar

27. Cornell


saturday 18 february 2012, 17:55

I have an Intuos4 L 8x13 and I use it on a dual monitor setup running ubuntu 11.10 with Xfce. Is there an elegant way to get the tablet to only map to one screen so the aspect ratio is 1:1 instead of 1:2?

I can do this by using the NVIDIA X Server Settings to turn off a screen completely, but this is an ugly hack and it would be nice to paint on one screen and still be able to use the other with the mouse for other stuff such as reference material.

Does anybody have any ideas? Many thanks.

http://www.davidrevoy.com/
sunday 19 february 2012, 19:06

@Cornell : Hi Cornel , on KDE there is a GUI for doing it. You can also do it with the last wacom driver and nvidia twinview ; with xsetwacom :
xsetwacom set "yourtabletIDnamehere" MapToOutput "HEAD-0"
xsetwacom set "yourtabletIDnamehere" MapToOutput "HEAD-0"
xsetwacom set "yourtabletIDnamehere" MapToOutput "HEAD-0"
xsetwacom set "yourtabletIDnamehere" MapToOutput "HEAD-0"
For more infos, read the wacom linux wiki, they explain it. You can also found on my blog an article about Linux Mint 11 installation that contain all you need to know about xsetwacom.

Avatar Gravatar

29. Yves MARNET


saturday 10 march 2012, 15:00

Here I am, i'll just say that for intuos4L the product id is 0x00ba and it works well except that my touch ring is disabled when running check script :(

Juste pour dire que le product id de la tablette intuos4L est 0x00ba comme dit plus haut, mais le touch ring se désactive après avoir lancé le script de check

Avatar Gravatar

30. Cornell


sunday 11 march 2012, 22:51

I checked out kde and was surprised at how much better it has gotten. The gui is great, but somehow clicking with the stylus doesn't work and the stylus buttons don't seem to do anything, so there must some underlying configuration issues. But it seems worth trying to get fixed.

And my compliments on your blog. This is a treasure chest for open source artists. We need more people like you...

http://www.davidrevoy.com/
monday 12 march 2012, 10:43

@Yves MARNET : Thanks for the feedback, Yves. I also see the device get updated on Ubuntu-fr.org wiki Wacom table few days ago. Pas une simple coincidence :) ? cool !

@Cornell : Thanks for the comment on the blog, I still have to clean and make better category and I have plenty of idea to centralise the documentation better and keep it updated.
Yes, KDE had evolved in a good way even if I don't agree with everything on it. The KDE tablets don't update as fast as the Linux driver on the updates, and this mainly because I follow a PPA for wacom driver and use in counterpart the KDE-tablet default package. You are right, it's defintely a project to follow. Also next Gnome 3 release might be also very cool, the tablet part get huge enhancement, sponsored by Red Hat. And Clem, from Mint team is going awesome with Cinamon desktop variation. Things got better and better. Not difficult after the last 4 month of the desktop crisis at the death of Gnome 2...

Avatar Gravatar

32. kukuma


thursday 07 june 2012, 08:12

Hi,

Exist-il un moyen de parametrer les expresskeys de la intuos4 M sous ubuntu 11.10 ?

J'ai parcouru tous les forums possibles et la doc d'ubuntu est has been.

Merci d'avance à ceux qui auraient une réponse. :)

Avatar Gravatar

33. kukuma


thursday 07 june 2012, 23:48

Il y a un sujet qui requière de l'aide :
http://forum.ubuntu-fr.org/viewtopic.php?id=319659&p=8

La intuos4 fonctionne presque!

Il reste un problème pour configurer les expresskeys avec seulement "shift", "control" et "alt" sans combinaisons.

Toute aide serait la bienvenue.

Merci.

http://www.davidrevoy.com/
friday 08 june 2012, 10:02

@kukuma : J'ai repris ma vieille Intuos3 A4 en production quotidienne , donc je ne suis pas au courant de comment la Intuos 4 à evoluer. Au mieux de ce que je vois actuellement, sous 12.04 il n'y a rien à faire , tout est plug&play ; reste la customisation des labels et des bouttons qui peu s'avérer plus difficile... Merci de la notification.

Avatar Gravatar

35. Samuel C. Jr.


wednesday 07 november 2012, 21:19

Very good job. I wish I could make custom labels work under windows 7 as I don´t use linux.

Avatar Gravatar

36. Leigh


tuesday 25 december 2012, 15:49

I pasted the stuff into the terminal, and some of it prompted more lines to pop up, so I think that it was doing something, but I have no idea what it's doing. Is it installed now? The computer won't read the installation disk that I put in. Does this do the same thing? What is script? I don't understand.

http://www.davidrevoy.com/
tuesday 25 december 2012, 16:16

@Leigh :Hi, this old page is for Ubuntu 10.10 , outdated from 2 years. All changed, and it will not work on a newer Ubuntu.

Avatar Gravatar

http://eightyeightteeth.com
wednesday 19 june 2013, 08:21

Thanks David!
Just wanted to let you know this tutorial/scripts are all working w/ my linux mint 15 (cinnamon) installation. I was unable to find any other fixes/support for the missing wacom settings applet in 'Olivia' - getting back my buttons is a lifesaver to workflow!
Kudos!

http://www.davidrevoy.com/
wednesday 19 june 2013, 09:56

@Thane : Wow, that's unexpected this method still works. Good to know, it will help me also. Thx for the feedback.

Avatar Gravatar

40. Agapetos


sunday 08 september 2013, 11:40

I managed to make it work on Manjaro Linux 0.8.7 (distro based on Arch Linux), but first I had to do the following in terminal:
sudo ln -s /usr/lib/libMagick++-6.Q16HDRI.so.2 /usr/lib/libMagick++.so.5

Avatar Gravatar

41. bradley


sunday 24 november 2013, 03:16

So I followed this tutorial to the T, and the only thing I got to work was the LED Check Test. The buttons are non-configurable (even with the Wacom GUI app included with Linux). I manually set the button functions inside the "my-init-intuos4-tablet.sh" file, saved it, and nothing happened. I also created a panel launcher, but nothing happened with/without the tablet plugged in.

The LEDS do not work unless doing the LED Check Test :( Could you go into more detail in setting the Tablet ID, and how to actually map the tablet buttons? I'm using Linux Mint 15 MATE with a Wacom Intuos4 Medium tablet.

Avatar Gravatar

42. bradley


sunday 24 november 2013, 04:05

So, I found out that the step to make the compiled script executable was missing from this tutorial. After running "chmod +x my-init...sh" there are errors all over the script file :[ What I got returned in terminal can be found here: http://paste.ubuntu.com/6466846/

Does anyone know how to fix this?

http://www.davidrevoy.com/
sunday 24 november 2013, 22:22

@bradley : Hey, just to say, I installed Gnome 3.10 ; and the LED works automagically in it. the Wacom Gui on the preference is the best driver ever. :) I don't think I 'll update the method here : it's from april 2011 ; 2 years and half ago. I've heard the driver to display the micro picture is now part of the kernel. But I don't know how to request the launch of a picture.

Rss feed of the article's comments

Write a Comment

What is the third letter of the word pkkm? :