Multitouch

Differences between revisions 33 and 34
Revision 33 as of 2010-08-18 20:39:19
Size: 7743
Editor: c-71-56-223-2
Comment:
Revision 34 as of 2010-08-19 21:03:36
Size: 8581
Editor: loquat
Comment:
Deletions are marked like this. Additions are marked like this.
Line 33: Line 33:

You need to enable your touch hardware (see below) and, for the moment only, add this to /etc/X11/xorg.conf

 {{{
Section "InputClass"
         Identifier "multitouch touchpad"
         MatchIsTouchpad "on"
         Driver "gevdev"
EndSection
}}}

You can confirm that you're seeing gestures with the following command:

 {{{
gesturetest 0 0 0xffffffff
}}}

Look for things like:

{{{
Gesture ID: 684
 Gesture Type: 3: Drag - Two Fingers
 Device ID: 9
 Timestamp: 2792079
 Root Window: 0xac: (root window)
 Event Window: 0x80009a: (has no name)
 Child Window: 0x80009a: (has no name)
 Focus X: 78.000000
 Focus Y: 62.000000
 Status: 2
 Num Props: 6
  Property 0: 0.000000
  Property 1: 0.151512
  Property 2: 0.000000
  Property 3: 0.013774
  Property 4: 312.333466
  Property 5: 313.984802

}}}

About

This resource features information about multi-touch support for Ubuntu, including:

  • drivers for a range of hardware
  • a gesture processing system which does the heavy lifting of gesture analysis
  • APIs for developers who want to build gestures into their apps
  • support for gesture-based window management in Unity.

The uTouch gesture framework includes several different components:

  • libutouch-geis - ("Gesture Engine Interface and Support") which provides a consistent platform independent interface for any system-wide input gesture recognition mechanism for toolkits and applications

  • libutouch-grail - ("Gesture Recognition And Instantiation Library") which handles the raw data processing and provides higher-level gesture abstractions for developers to consume * gesturetest - which helps show the streams of events and data, useful for debugging and planning

We're also exploring gesture support in legacy applications with the assistance of this project:

  • ginn - ("Gesture Injector: No-GEIS, No-GTK") a deamon with jinn-like wish-granting capabilities: it gives applications the ability to support a subset of multi-touch gestures without having to integrate uTouch-GEIS or multi-touch GTK libs

See the "Community help" and Ubuntu 10.10 specific information below for help on getting started with multitouch in Ubuntu.

Community help

Testing

The utouch metapackage will pull in everything you need. It will be installed by default on UNE ("apt-get install ubuntu-netbook" for the full experience on your desktop, or "apt-get install utouch" for the touch-related pieces only). It should be available shortly. If you only want to experiment with multitouch, see "Multitouch in Maverick" depending on your device, below.

You need to enable your touch hardware (see below) and, for the moment only, add this to /etc/X11/xorg.conf

  • Section "InputClass"
             Identifier "multitouch touchpad"
             MatchIsTouchpad "on"
             Driver "gevdev"
    EndSection

You can confirm that you're seeing gestures with the following command:

  • gesturetest 0 0 0xffffffff

Look for things like:

Gesture ID:             684
        Gesture Type:   3: Drag - Two Fingers
        Device ID:      9
        Timestamp:      2792079
        Root Window:    0xac: (root window)
        Event Window:   0x80009a: (has no name)
        Child Window:   0x80009a: (has no name)
        Focus X:        78.000000
        Focus Y:        62.000000
        Status:         2
        Num Props:      6
                Property 0:     0.000000
                Property 1:     0.151512
                Property 2:     0.000000
                Property 3:     0.013774
                Property 4:     312.333466
                Property 5:     313.984802

Development

The uTouch framework and related projects are open source. If you would like to contribute, you need to do the following:

Hardware Support

Multitouch in Natty Narwhal (Ubuntu 11.04)

Multitouch in Maverick Meerkat (Ubuntu 10.10)

Multitouch in other Ubuntu versions

10.04 LTS (Lucid Lynx)

Jaunty Jackalope

Device information

N-trig

N-trig devices get their name from the providers of DuoSenseTM technology, combining pen, capacitive touch and multi-touch in a single device. N-trig’s DuoSense dual-mode digitizer uses both pen and zero-pressure capacitive touch in a single device.

The Dell Latitude XT2, HP tx2 tablets and the Lenovo T410s feature such multitouch support. Note, however, that a Linux firmware updater has not been released by N-trig for these devices. Before installing Ubuntu on your machine, be sure that you have the latest firmware. This may require using the Windows .exe firmware updater from the OEM. Note that the HP updater often requires 2 to 4 successive reboots of Windows in order to properly update.

Launchpad

Multitouch (last edited 2015-10-21 17:33:15 by pool-71-176-33-233)