Difference between revisions of "Multitouch displays"

From ArchWiki
Jump to: navigation, search
m (Lahwaacz moved page Multitouch Displays to Multitouch displays: comply with Help:Style#Title)
 
(13 intermediate revisions by 9 users not shown)
Line 1: Line 1:
[[Category:Other hardware]]
+
[[Category:Displays]]
 
{{Stub}}
 
{{Stub}}
Since Linux Kernel 3.2, multitouch devices are handled by the {{ic|hid-multitouch}} module, see [[Kernel Modules]].  
+
Since Linux Kernel 3.2, multitouch devices are handled by the {{ic|hid-multitouch}} module, see [[Kernel modules]].  
  
 
==Configuration (USB devices) ==
 
==Configuration (USB devices) ==
Line 14: Line 14:
 
You need to convert MT_CLS_* to decimal (In this case, 0x0103 is 259 in decimal).
 
You need to convert MT_CLS_* to decimal (In this case, 0x0103 is 259 in decimal).
  
After loading the {{ic|hid-multitouch}}, see [[Kernel Modules]], you need to pass the devices' options with
+
After loading the {{ic|hid-multitouch}}, see [[Kernel modules]], you need to pass the devices' options with
 
  # echo BUS VID PID MT_CLASS_* > /sys/module/hid_multitouch/drivers/hid\:hid-multitouch/new_id
 
  # echo BUS VID PID MT_CLASS_* > /sys/module/hid_multitouch/drivers/hid\:hid-multitouch/new_id
 
In this example, the touchscreen is an USB device, so BUS=3 and the previous command looks like this:
 
In this example, the touchscreen is an USB device, so BUS=3 and the previous command looks like this:
Line 21: Line 21:
  
 
If the touchscreen is not working properly, you may need to install a specific driver for your touchscreen, see [[#Drivers]].
 
If the touchscreen is not working properly, you may need to install a specific driver for your touchscreen, see [[#Drivers]].
 +
 +
== Rotating the touch screen ==
 +
 +
Store and mark [https://gist.githubusercontent.com/anonymous/b5728d68bb8808454cb6/raw/1882d23b273fc1b341a8b7afa1f2649fceff4574/gistfile1.sh] executable (call the script to see its input options).
  
 
==Drivers==
 
==Drivers==
Line 28: Line 32:
 
===eGalax===
 
===eGalax===
  
The driver for eGalax tocushcreens is available from the [http://home.eeti.com.tw/web20/eGalaxTouchDriver/linuxDriver.htm eGalax website]. Also, it is availbale as {{AUR|xf86-input-egalax-linux3}} from the [[Arch User Repository]].
+
The driver for eGalax touchscreens is available from the [http://home.eeti.com.tw/drivers_Linux.html eGalax website]. Also, it is availbale as {{AUR|xf86-input-egalax}} from the [[Arch User Repository]].
  
 
====Invert Y-axis====
 
====Invert Y-axis====
Line 37: Line 41:
 
Orientation 0
 
Orientation 0
 
...}}
 
...}}
 +
 +
==Gestures==
 +
 +
If you want gestures in your window manager, install {{AUR|touchegg}} from the [[Arch User Repository]] and read its [https://code.google.com/p/touchegg/wiki/Main docs].

Latest revision as of 16:12, 29 March 2016

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Multitouch displays#)

Since Linux Kernel 3.2, multitouch devices are handled by the hid-multitouch module, see Kernel modules.

Configuration (USB devices)

Find the vendor ID (VID) and product ID (PID) for your touchscreen using lsusb:

$ lsusb
...
Bus 004 Device 002: ID 0eef:725e D-WAV Scientific Co., Ltd 
...

Here, VID=0eef (eGalax) and PID=725e. Now, get the MT_CLASS_* definitions from [1]. Currently vendor specific classes are available for 3M Cypress and eGalax. If none of this matches your device, you can try to experiment with the other MT_CLS_*. In this example

#define MT_CLS_EGALAX                           0x0103

You need to convert MT_CLS_* to decimal (In this case, 0x0103 is 259 in decimal).

After loading the hid-multitouch, see Kernel modules, you need to pass the devices' options with

# echo BUS VID PID MT_CLASS_* > /sys/module/hid_multitouch/drivers/hid\:hid-multitouch/new_id

In this example, the touchscreen is an USB device, so BUS=3 and the previous command looks like this:

# echo 3 0eef 725e 259 > /sys/module/hid_multitouch/drivers/hid\:hid-multitouch/new_id

Reboot. If the touchscreen is detected you should submit your devices' details (relevant lsusb line) to the linux-input mailing list.

If the touchscreen is not working properly, you may need to install a specific driver for your touchscreen, see #Drivers.

Rotating the touch screen

Store and mark [2] executable (call the script to see its input options).

Drivers

Tango-view-fullscreen.pngThis article or section needs expansion.Tango-view-fullscreen.png

Reason: please use the first argument of the template to provide a brief explanation. (Discuss in Talk:Multitouch displays#)

eGalax

The driver for eGalax touchscreens is available from the eGalax website. Also, it is availbale as xf86-input-egalaxAUR from the Arch User Repository.

Invert Y-axis

If after installing the eGalax driver the Y-axis of the touchscreen is inverted, edit the file /etc/eGTouchd.ini an change the value of Direction from 0 to 2:

/etc/eGtouchd.ini
...
DetectRotation 0
Direction 2
Orientation 0
...

Gestures

If you want gestures in your window manager, install toucheggAUR from the Arch User Repository and read its docs.