plpevtch - A Xorg Touchscreen driver for eventdevices by Elmar Hanlhofer

* sampe config
* calibration
* install

Important:

its required that the evdev module is loaded or builtin in your kernel!

---------------------------------------------------------------------

Here is a sample configuration for Xorg 7.x

Section "InputDevice"
    Identifier "touchscreen"
    Driver    "plpevtch"

    Option "Device" "/dev/input/event3"	# <-- use the evdev name
					# see /proc/bus/input/devices for your eventX
    
#    Option "Calibrate" 	# <-- uncomment this line to calibrate
#    Option "Debug" 		# <-- uncomment this line for debug infos 

#    Option "MinX" "67"
#    Option "MaxX" "1984"

#    Option "MinY" "42"
#    Option "MaxY" "1920"

#    Option "InvX"		# <-- uncomment this line to invert X
#    Option "InvY"		# <-- uncomment this line to invert Y

#    Option "RightClick" 	"False"	# <-- uncomment this line to disable right click
					# right click is enabled by default
#    Option "RightClickMS" 	"5000"	# make right click after 5 seconds without moving the cursor
					# default is 3 seconds
#    Option "RightClickSquare"  "10"	# allow moving in a square of 10x10 pixels when waiting for
					# right click
					
#    Option "TouchFilter" 	"False"	# <-- uncomment this line to disable touch filter
					# touch filter is enabled by default
#    Option "TouchFilterMS" 	"20"	# ignore press/release within 20ms, default is 10ms

#    Option "GrabDevice"        "True"  # force  a  grab on the event device. Doing so will ensure that no
	                		# other driver can initialise the same device, default is false
EndSection    


Section "ServerLayout"

    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice "Keyboard1" "CoreKeyboard"
    InputDevice "Mouse1" "CorePointer"

    InputDevice "touchscreen" "Pointer"  # <--- add this to ServerLayout

EndSection

---------------------------------------------------------------------

How to calibrate:

add  Option "Calibrate" to the touchscreen section
restart the X server
move along the borders of your touchscreen multiple times (ignore the mouse pointer)
search /var/log/Xorg.0.log for the last 'Calibrate'. You will see something like

(II) touchscreen: Calibrate  | MinX: 67 | MaxX: 1984 | MinY: 42 | MaxY: 1920

use this values in the touchscreen section of your xorg.conf
remove the Calibrate Option in the touchscreen section
restart the X server

---------------------------------------------------------------------

Install:

if your Xorg is installed in /usr/X11R7 then run
./configure --prefix=/usr/X11R7 && make && make install

if your Xorg is installed in /usr then run
./configure --prefix=/usr && make && make install


