FYI Update
I may have a handle on the multitouch not working mystery. When I run ginn, which is installed in Precise by default, I see this error:
Code:
bunch of stuff
.......
wish
action
trigger
key
Button : 4 Button : 5
error subscribing to gestures
Apparently ginn has been broken since early in Precise Beta 1 (reported 4-18-12) and is still broken in Quantal. Action on the bug finally occurred 11-15-12 and Importance was changed to high. No fix in sight. See launchpad bug: https://bugs.launchpad.net/ubuntu/+s...nn/+bug/985121
Since multitouch code was added to X Server 1.12 I'm wondering if the problem isn't the hybrid 1.11/1.12 X Server Precise uses and its mutant ABI. But that doesn't explain Quantal which has X Server 1.13.
But I would think you should still see the Unity supported 3 and 4 finger system gestures: https://wiki.ubuntu.com/Multitouch/ I do have those with my third generation BambooPT in both Precise and Oneiric. Actually that brings up an issue someone might help me with. In Oneiric were you able to use ginn alongside Unity? I'm sort of under the impression that Unity consumes all the 3 and 4 finger touches for its gestures. And the only way to use ginn for custom 3 and 4 finger gestures is to disable Unity's gesture use and re-compile it. It appears this wasn't an issue in Natty. Anyway this is what I see when I disable Gesture in xf86-input-wacom-0.18.0 or higher so that two or more touch contacts are passed up to the X Server:
1 finger tap > left click (by xf86-input-wacom)
2 fingers disabled
Unity System Gestures
3 finger press and drag > move window
(3 finger tap shows grab handles in Quantal)
4 finger swipe left/right > reveal/hide launcher (if the dock autohide is enabled)
4 finger tap > open or close dash
So I need ginn to add 2FGT gestures such as right click and horizontal and vertical scroll. It appears N-Trigs are also getting 1 finger left click through xf86-input-evdev.
Not able to get ginn working in Oneiric even with xf86-input-wacom-0.18.0 yet. May be a Wacom specific issue, perhaps with how input-wacom is sending touch events from the kernel with its wacom.ko? With touch on the Synaptics driver I am able to see touch events on ginn in the terminal.
The alternative to ginn would seem to be touchegg. But I believe I have seen that is broken for Precise also! At least the version in the repository doesn't work. I may have read compiling a later version will work. I'll try to find that again. Touchegg would be interesting especially if the new gesture configuration gui for it actually works and works in Precise. Might be nicer than working with wishes.xml.
Precise - Touchégg downloads available at the touchegg site along with a wiki with instructions. "OS X-like multitouch gestures for Macbook Pro running Ubuntu 12.10" appears to be a good tutorial. The instructions on the site to compile touchegg did not work for me. I used sudo apt-get build-dep touchegg which installed libgeis-dev libqt4-dev libqt4-qt3support qt4-linguist-tools qt4-qmake. Got an error on make which required installing libutouch-geis-dev. I was then able to compile and install it. I noticed build-dep did not overlap much with the instructions alternate sudo apt-get install build-essential libqt4-dev utouch libx11-6 libxtst-dev. The touchegg-1.1 CHANGELOG says:
[+] Touchégg v1.1 (2012/07/22)
- Added Ubuntu Precise compatibility
So to compile touchegg in Precise the following should work. Download Touchégg v1.1 onto your Desktop and extract it. Then:
Code:
sudo apt-get install build-essential libqt4-dev utouch libx11-6 libxtst-dev libgeis-dev libqt4-qt3support qt4-linguist-tools qt4-qmake libutouch-geis-dev
cd Desktop/touchegg-1.1
qmake
make
sudo make install
Instead of ~/.config/touchegg/touchegg.conf the touchegg.conf seems to be at /usr/share/touchegg. However the gui Touchegg-gce expects the .conf file at ~/.config/touchegg/touchegg.conf. Don't know about Touchégg itself. I used the gui to create the folder touchegg and the file touchegg.conf and then copied the contents of /usr/share/touchegg/touchegg.conf over to ~/.config/touchegg/touchegg.conf. To install the gui on Precise I did the following.
Code:
cd Desktop
git clone https://github.com/Raffarti/Touchegg-gce.git
cd Touchegg-gce
qmake
make
Didn't need any new dependencies beyond what were already installed for Touchégg. There is no install so run the touchegg-gce binary in the Touchegg-gce folder. Can use a launcher if you want to use the gui. The gui is basically an editor for the .conf file. Haven't tested anything yet. I think I'll try Precise Kubuntu.
By design Unity does not allow disabling its system gestures which you would need to do to use custom gestures. See "Unity Gesture UI Guidelines". On askubuntu "How can I disable arbitrary default multitouch gestures in Unity?" is a good discussion of what's needed. The gesture code has to be disabled and then Unity re-compiled.
I'll update this post with any more findings as long as I can edit it.
Bookmarks