LibMTDev

Version 2 (coder, 02/10/2015 11:46)

1 1 admin
h1. LibMTDev Multitouch Support
2 1 admin
3 1 admin
> (!) *Note:* (!) 
4 2 coder
> This is legacy support and removed in current git. Ubuntu 11.04 and above support XInput 2.1, which needs no configuration and should work out of the box if you have a multitouch device which is supported by the Linux Kernel.
5 1 admin
6 1 admin
These are some notes on how to get libmtdev multitouch support running with libavg:
7 1 admin
8 1 admin
* Find out which name(s) the multitouch device you have goes by:
9 1 admin
10 1 admin
<pre>
11 1 admin
$ xinput list
12 1 admin
</pre>
13 1 admin
14 1 admin
* Tell X11 to ignore any multitouch devices you have. To do this, add something similar to the following in @/etc/X11/xorg.conf@, substituting the correct product name(s):
15 1 admin
16 1 admin
<pre>
17 1 admin
Section "InputClass"
18 1 admin
    Identifier "Trackpad"
19 1 admin
    MatchProduct "Apple Wireless Trackpad"
20 1 admin
    Option "Ignore" "on"
21 1 admin
EndSection
22 1 admin
</pre>
23 1 admin
24 1 admin
* Restart X11.
25 1 admin
* Find out which device file the multitouch device is mapped to. You can cat all /dev/input/event* files until you find one that spews out stuff when the device is used.
26 1 admin
* Make sure the device file is accessible:
27 1 admin
28 1 admin
<pre>
29 1 admin
$ sudo chmod a+r /dev/input/eventxx
30 1 admin
</pre>
31 1 admin
32 1 admin
* Set necessary environment variables:
33 1 admin
34 1 admin
<pre>
35 1 admin
$ export AVG_MULTITOUCH_DRIVER=LINUXMTDEV
36 1 admin
$ export AVG_LINUX_MULTITOUCH_DEVICE=/dev/input/eventxx
37 1 admin
</pre>
38 1 admin
39 1 admin
If you get
40 1 admin
41 1 admin
<pre>
42 1 admin
WARNING: Unsupported multitouch driver 'LINUXMTDEV'.
43 1 admin
</pre>
44 1 admin
45 1 admin
then you need to recompile libavg with libmtdev-dev installed.