This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Wacom Intuos pen&touch gestures - how?

Tags: None
(comma "," separated)
yorickv
Registered Member
Posts
4
Karma
0
Hi there! So I've got myself a Wacom Intuos Pen & Touch very recently and am now figuring that and Krita out at the same time.
Which is going well, except that I can't get most gestures to work.
I set them up as follows in the wacom software:
zoom: 2 fingers pinching
scroll: 2 fingers dragging
rotate: 2 fingers turning
pan: 3 fingers dragging

However, the only thing that works is zooming. When trying to scroll or rotate it zooms, when trying to pan it draws lines.
I found the settings for canvas input and found a "gesture" thing in the list for panning and zooming etc. but I can't seem to change it, I only get the option to delete it.
Can anybody help me? It's very possible I'm being thick but I didn't find anything in the wiki or the interwebs either...

Using Krita 2.8.3 (straight from the website) 64 bit on Windows 8.
Thanks in advance!
dkazakov
Registered Member
Posts
64
Karma
1
Hi, yorickv!

The wacom gestures are not touch gestures actually. The tablet sends Photoshop-approved shortcuts to the application, working around the absence of touch support in Photoshop. So instead of sending real touch events it sends the following combinations:

1) Scroll -> Wheel Up and Down events
2) Zoom -> Ctrl++/- events
3) Rotate -> Ctrl+F13/F14

I couldn't find "Pan" gesture in my Wacom driver. So generally, you can configure Krita to accept these events and handle them.

1) Go to Settings->Preferences->Canvas Input Settings
2) Go to Zoom Action, delete the two shortcuts which are assigned to the mouse wheel. Mind you! You will not be able to use you mouse wheel for zooming anymore!
3) Go to Rotate Action, assign your Wacom gesture to Rotate 15 degrees action.

Such configuration works ok on my machine.
yorickv
Registered Member
Posts
4
Karma
0
Thanks a lot! With this information and some messing around with the AppGestures.xml in the drivers I was able to get everything working.
yorickv
Registered Member
Posts
4
Karma
0
Different question: how do I do the same under Ubuntu?
dkazakov
Registered Member
Posts
64
Karma
1
Under Ubuntu you should use xsetwacom and the same configuration menu in Krita :)
yorickv
Registered Member
Posts
4
Karma
0
Allright, after some command line fun I got panning worked out. The wacom drivers apparently send mousewheel up, down, left, right commands, so setting panning to those (pan up to mousewheel down and so on) got panning working - but now zooming doesn't work anymore. According to keymon the tablet sends ctrl+mousewheel, but setting that as shortcut doesn't work, krita simply scrolls up and down instead of zooming.
Canvas rotation doesn't work either, and using the gesture doesn't even seem to send a input, so I've no idea hwo I'm supposed to get that working. It works in Chrome, too.
User avatar
nylnook
Registered Member
Posts
11
Karma
0
OS
Hi all,

After some struggling on the subject to make my Intuos PT Medium work with Krita, I found some sort of a solution to have a decent touch support for Krita under Linux (I'm on Antergos - Arch Linux Based, using Krita under Gnome 3.14) :
First, read this : http://linuxwacom.sourceforge.net/wiki/index.php/Multitouch

1/ disable the Wacom " Two Finger Gestures" Driver
The historical linux wacom touch driver is limited to two fingers, and we can't change the gestures, as discussed in the mailing list :
https://sourceforge.net/p/linuxwacom/mailman/message/33262346/
It's not relevant for Krita as you have seen, no way to pan or rotate for example, no use for horizontal or vertical scrolling in this context...

So, if you are like me currently, the first step is probably to disable the Wacom " Two Finger Gestures" Driver with a command like this one for the session :
Code: Select all
xsetwacom --set "Wacom Intuos PT M Finger touch" Gesture off


or more permanently create a file /etc/X11/xorg.conf.d/52-wacom.conf containing :
Code: Select all
Option "Gesture" "off"

for your tablet

Note that it disable touch support in Gnome currently : with 3.14, Touchscreens are supported, and touchpads support (including Wacom I suppose) is planned for 3.16 (https://wiki.gnome.org/Projects/GTK+/Roadmap).
So hopefully Gnome will get support in March... If someone with the skills can do it.

2/ Install Touchégg
Touchégg is a multitouch gesture recognizer for GNU/Linux that allows associating actions to each gesture.
https://code.google.com/p/touchegg/wiki/Downloads?tm=2
But currently it doesn't work in Gnome 3.14... So we will use it for Krita, and Qt apps in general.

you can also install Touchegg-GCE to have a graphical interface to do a setup : https://github.com/Raffarti/Touchegg-gce

it may be already installed with Ubuntu, I'm not sure.
for Archlinux, everything is available in AUR : https://wiki.archlinux.org/index.php/touchegg

3/ Use this configuration file

replace your ~/.config/touchegg/touchegg.conf file with this one (It's the defaults, with additional settings for Krita) (if necessary, create the file) :

Code: Select all
<touchégg>
   <settings>
      <property name="composed_gestures_time">100</property>
   </settings>
   <application name="All">
      <gesture type="DRAG" fingers="1" direction="ALL">
         <action type="DRAG_AND_DROP">BUTTON=1</action>
      </gesture>
      <gesture type="DRAG" fingers="3" direction="RIGHT">
         <action type="MOVE_WINDOW"></action>
      </gesture>
      <gesture type="DRAG" fingers="2" direction="ALL">
         <action type="SCROLL">SPEED=7:INVERTED=true</action>
      </gesture>
      <gesture type="DRAG" fingers="3" direction="LEFT">
         <action type="MOVE_WINDOW"></action>
      </gesture>
      <gesture type="DRAG" fingers="3" direction="UP">
         <action type="MAXIMIZE_RESTORE_WINDOW"></action>
      </gesture>
      <gesture type="TAP" fingers="5" direction="">
         <action type="CLOSE_WINDOW"></action>
      </gesture>
      <gesture type="PINCH" fingers="5" direction="ALL">
         <action type="SEND_KEYS">Alt+F1</action>
      </gesture>
      <gesture type="DRAG" fingers="4" direction="UP">
         <action type="SEND_KEYS">Super+W</action>
      </gesture>
      <gesture type="TAP" fingers="4" direction="">
         <action type="RUN_COMMAND">vlc</action>
      </gesture>
      <gesture type="DRAG" fingers="4" direction="DOWN">
         <action type="SHOW_DESKTOP"></action>
      </gesture>
      <gesture type="TAP" fingers="3" direction="">
         <action type="MOUSE_CLICK">BUTTON=2</action>
      </gesture>
      <gesture type="TAP" fingers="2" direction="">
         <action type="MOUSE_CLICK">BUTTON=3</action>
      </gesture>
      <gesture type="DRAG" fingers="3" direction="DOWN">
         <action type="MINIMIZE_WINDOW"></action>
      </gesture>
      <gesture type="TAP" fingers="1" direction="">
         <action type="MOUSE_CLICK">BUTTON=1</action>
      </gesture>
   </application>
   <application name="Okular, Gwenview">
      <gesture type="ROTATE" fingers="2" direction="LEFT">
         <action type="SEND_KEYS">Control+L</action>
      </gesture>
      <gesture type="PINCH" fingers="2" direction="IN">
         <action type="SEND_KEYS">Control+KP_Add</action>
      </gesture>
      <gesture type="PINCH" fingers="2" direction="OUT">
         <action type="SEND_KEYS">Control+KP_Subtract</action>
      </gesture>
      <gesture type="ROTATE" fingers="2" direction="RIGHT">
         <action type="SEND_KEYS">Control+R</action>
      </gesture>
   </application>
   <application name="Dolphin, Chromium-browser">
      <gesture type="DRAG" fingers="2" direction="RIGHT">
         <action type="SEND_KEYS">Alt+Right</action>
      </gesture>
      <gesture type="DRAG" fingers="2" direction="LEFT">
         <action type="SEND_KEYS">Alt+Left</action>
      </gesture>
   </application>
   <application name="Krita">
      <gesture type="DRAG" fingers="2" direction="ALL">
         <action type="DRAG_AND_DROP">BUTTON=2</action>
      </gesture>
      <gesture type="ROTATE" fingers="2" direction="LEFT">
         <action type="SEND_KEYS">KP_Right</action>
      </gesture>
      <gesture type="PINCH" fingers="2" direction="IN">
         <action type="SCROLL">SPEED=1:INVERTED=false</action>
      </gesture>
      <gesture type="PINCH" fingers="2" direction="OUT">
         <action type="SCROLL">SPEED=1:INVERTED=false</action>
      </gesture>
      <gesture type="TAP" fingers="2" direction="">
         <action type="MOUSE_CLICK">BUTTON=3</action>
      </gesture>
      <gesture type="ROTATE" fingers="2" direction="RIGHT">
         <action type="SEND_KEYS">KP_Left</action>
      </gesture>
   </application>
</touchégg>


4/ Lauch touchegg and Krita

touchegg must be launched in a terminal (just type "touchegg") to work.
If you want to start it with the computer, create a ~/.xprofile file, with one line inside :
Code: Select all
touchegg &


5/ Test it ;)

I'm not entirely happy with this first config... but the behaviour is setup as is :
1 finger tap -> left click
2 fingers tap (one, then another just next) -> popup palette (right click)
2 fingers drag -> pan (middle click)
2 fingers pinch inward -> zoom out
2 fingers pinch outward -> zoom in
2 fingers rotate clockwise or counterclockwise -> 15° rotation left or right

If things go too quick, you may try to slow down the driver : http://linuxwacom.sourceforge.net/wiki/ ... on_Profile

But it's not optimal for me... most of the time, I have accidental strait brush strokes appearing.
So not really usable : I can't find a setup which prevent this behaviour.
I suppose that if we could have 1 finger drag mapped to drag and drop on middle click, it may prevent accidents, but for some reason it doesn't work at the moment.


User avatar
ianp5a
Registered Member
Posts
64
Karma
0
I have the Pen and Touch intuos running in Kubuntu 14.10. Gestures for scroll and zoom are working out of the box. However they are reversed. Push up and windows go down. Pinch together and windows zoom larger.

I have tried System Settings ->Input Devices ->Graphic Tablet ->Touch: Enable Touch + Enable Gestures + Invert Scroll Direction. But is does not change anything.
I have tried in the mouse settings de-activating "Reverse Scroll Direction" and this does affect both the mouse and the tablet.
- So tablet 2 fingers Up = scrolls window content Up. Good.
- Push mouse wheel up scroll window content down. Bad.

Summary:
Tablet Settings Invert, has no effect on mouse or tablet touch.
Mouse Settings Invert, affects both mouse and tablet touch. But they are opposite to each other.

Is there a trick? Thanks
User avatar
nylnook
Registered Member
Posts
11
Karma
0
OS
@ianp5a Did you tried with touchégg ?


User avatar
ianp5a
Registered Member
Posts
64
Karma
0
Thanks. I installed Touchegg from the Ubuntu Software Center now Ok.
But I can't manage to get it to run/work. Tablet gestures are still backwards as before. Is there no way to invert the gestures without Touchegg? It all looks too techie for me.
User avatar
nylnook
Registered Member
Posts
11
Karma
0
OS
You probably need to disable the Wacom " Two Finger Gestures" Driver first, as I explained before....
To have a graphical interface for Touchegg, install Touchegg-gce, it will be easier.

But I don't think there is such a thing as an "invert" button, you will have to setup the gesture as you wish, or use the config file I proposed before for example.


User avatar
ianp5a
Registered Member
Posts
64
Karma
0
OK. Thanks for the tip. But I have a problem that the Touchegg-gce version is not in the Software manager., and the Raffarti github page doesn't make any sense to me. Which is why I was hoping to manage without touchegg.
User avatar
nylnook
Registered Member
Posts
11
Karma
0
OS
Hello all,

I re-worked with Touchegg today, and it's now working fine for me... ;D because I finally understood that relying on other gestures than TAP and DRAG is a bad idea, is generally badly detected, and create only confusion and accidentals clicks... !
As a reminder, using Touchegg disable any other touch settings (Wacom basic 2 finger driver or Gnome ones). To disable them see before in this thread.

So here is my configuration for Krita under a Gnome environment : it should not trigger any accidental brush stroke. I rely also on CTRL and SHIFT modifiers with left, middle and right click on the pen (setup in Krita settings) to rotate the canvas or change the brush size.

And you can find a guide of installation for Ubuntu users here (I'm still on Antergos myself), the Touchegg part : https://www.linux.com/learn/tutorials/7 ... n-on-linux

So, my touchegg.conf file :
Code: Select all
<touchégg>
   <settings>
      <property name="composed_gestures_time">100</property>
   </settings>
   <application name="All">
      <gesture type="DRAG" fingers="1" direction="ALL">
         <action type="DRAG_AND_DROP">BUTTON=1</action>
      </gesture>
      <gesture type="DRAG" fingers="2" direction="ALL">
         <action type="SCROLL">SPEED=7:INVERTED=true</action>
      </gesture>
      <gesture type="DRAG" fingers="4" direction="LEFT">
         <action type="SEND_KEYS">Alt+Tab</action>
      </gesture>
      <gesture type="TAP" fingers="5" direction="">
         <action type="CLOSE_WINDOW"></action>
      </gesture>
      <gesture type="DRAG" fingers="4" direction="DOWN">
         <action type="SEND_KEYS">Control+Alt+Up</action>
      </gesture>
      <gesture type="DRAG" fingers="4" direction="UP">
         <action type="SEND_KEYS">Control+Alt+Down</action>
      </gesture>
      <gesture type="TAP" fingers="3" direction="">
         <action type="MOUSE_CLICK">BUTTON=2</action>
      </gesture>
      <gesture type="TAP" fingers="2" direction="">
         <action type="MOUSE_CLICK">BUTTON=3</action>
      </gesture>
      <gesture type="DRAG" fingers="3" direction="ALL">
         <action type="SEND_KEYS">Alt+F1</action>
      </gesture>
      <gesture type="TAP" fingers="1" direction="">
         <action type="MOUSE_CLICK">BUTTON=1</action>
      </gesture>
      <gesture type="DRAG" fingers="4" direction="RIGHT">
         <action type="SEND_KEYS">Alt+Shift+Tab</action>
      </gesture>
   </application>
   <application name="Okular, Gwenview">
      <gesture type="ROTATE" fingers="2" direction="LEFT">
         <action type="SEND_KEYS">Control+L</action>
      </gesture>
      <gesture type="PINCH" fingers="2" direction="IN">
         <action type="SEND_KEYS">Control+KP_Add</action>
      </gesture>
      <gesture type="PINCH" fingers="2" direction="OUT">
         <action type="SEND_KEYS">Control+KP_Subtract</action>
      </gesture>
      <gesture type="ROTATE" fingers="2" direction="RIGHT">
         <action type="SEND_KEYS">Control+R</action>
      </gesture>
   </application>
   <application name="Firefox, Dolphin, Nautilus, Chromium-browser">
      <gesture type="DRAG" fingers="2" direction="RIGHT">
         <action type="SEND_KEYS">Alt+Right</action>
      </gesture>
      <gesture type="DRAG" fingers="2" direction="LEFT">
         <action type="SEND_KEYS">Alt+Left</action>
      </gesture>
   </application>
   <application name="Krita">
      <gesture type="DRAG" fingers="1" direction="ALL">
         <action type="DRAG_AND_DROP">BUTTON=2</action>
      </gesture>
      <gesture type="DRAG" fingers="2" direction="RIGHT">
         <action type="SEND_KEYS">KP_Begin</action>
      </gesture>
      <gesture type="TAP" fingers="3" direction="">
         <action type="SEND_KEYS">Control+z</action>
      </gesture>
      <gesture type="DRAG" fingers="2" direction="LEFT">
         <action type="SEND_KEYS">KP_Down</action>
      </gesture>
   </application>
   <application name="Eog">
      <gesture type="PINCH" fingers="2" direction="OUT">
         <action type="SEND_KEYS">KP_Subtract</action>
      </gesture>
      <gesture type="PINCH" fingers="2" direction="IN">
         <action type="SEND_KEYS">KP_Add</action>
      </gesture>
      <gesture type="DRAG" fingers="2" direction="RIGHT">
         <action type="SEND_KEYS">Left</action>
      </gesture>
      <gesture type="DRAG" fingers="2" direction="LEFT">
         <action type="SEND_KEYS">Right</action>
      </gesture>
   </application>
</touchégg>


So, summing up for work in Krita :

one finger tap -> left click
two fingers tap -> right click (popup palette)
tree fingers tap -> Ctrl + Z (undoooo ! It's really handy to have it just there)

one finger drag -> pan the canvas
two fingers drag up or down -> zoom in or out
two fingers drag left -> fit view to page
two fingers drag right -> reset rotation

other three finger gestures, and four and five fingers gestures are for the Gnome environment.

I hope it will be useful for others ! Let me know if you find other tricks...


User avatar
piotrekpostpunker
Registered Member
Posts
4
Karma
0
I have problem with configure Wacom Intuos 2015 (comic) gestures with Krita 2.9.11 on Windows 10.
If somebody has working AppGestures.xml file or Krita configuration?


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]