Difference between revisions of "Multitouch displays"

From ArchWiki
Jump to: navigation, search
(Configuration)
(Configuration)
Line 3: Line 3:
 
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==
+
==Configuration (USB devices) ==
 
Find the vendor ID (VID) and product ID for your touchscreen using {{ic|lsusb}}:
 
Find the vendor ID (VID) and product ID for your touchscreen using {{ic|lsusb}}:
 
{{hc|$ lsusb|
 
{{hc|$ lsusb|
Line 15: Line 15:
  
 
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 3 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,
+
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
 
  # echo 3 0eef 725e 259 > /sys/module/hid_multitouch/drivers/hid\:hid-multitouch/new_id
 
Reboot. If the touchscreen is not working properly, you may need to install a specific driver for your touchscreen, see [[#Drivers]].
 
Reboot. If the touchscreen is not working properly, you may need to install a specific driver for your touchscreen, see [[#Drivers]].

Revision as of 07:42, 23 January 2012

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 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 for the VID from [1]. In this example

#define MT_CLS_EGALAX                           0x0103

an convert it to decimal (0x0103 is 259 in decimal in this case).

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 not working properly, you may need to install a specific driver for your touchscreen, see #Drivers.

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 tocushcreens is available from the eGalax website. Also, it is availbale as xf86-input-egalax-linux3AUR 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
...