0€
CarTFT.com: Professional CarPCs and Displays
« Wechseln zu: MiniPC.de – Small, flexible, powerfulChange Language:
English
host:~ # mkdir /root/src host:~ # cd /root/src/ host:~/src/ # tar xzvf evtouch-0.6.1.tar.gzDann Treibermodul ins X11 Verzeichnis kopieren:
host:~/src/ # cd evtouch-0.6.1 # host:~/src/evtouch-0.6.1 # cp evtoch_drv.o /usr/X11R6/lib/modules/input/USB Stecker des Touchscreen stecken,
host:~/src/evtouch-0.6.1 # lsmod | grep touchkitusbFalls nicht:
host:~/src/evtouch-0.6.1 # modprobe touchkitusbPrüfen ob Kernelmodul evdev geladen wurde.
host:~/src/evtouch-0.6.1 # lsmod | grep evdevFalls nicht:
host:~/src/evtouch-0.6.1 # modprobe evdevPrüfen der Daten des Touchscreen:
host:~/src/evtouch-0.6.1 # cat /proc/bus/input/devicesAusgabe etwa:
... I: Bus=0003 Vendor=0eef Product=0001 Version=0100 N: Name="eGalax Inc." P: Phys=usb-0000:00:10.2-2/input0 H: Handlers=mouse1 event3 ...In diesem Fall ist das event3 wichtig.
host:~/src/evtouch-0.6.1 # ls -al /dev/input/event* ... crw-r----- 1 root root 13, 67 Dec 3 2004 /dev/input/event3 ...Zum sicherstellen, das das evdev Modul geladen wird, habe ich folgende Zeile:
alias char-major-13-67 evdevin /etc/modprobe.conf.local eingetragen.
Section "Files"
...
InputDevices "/dev/input/event3" #Zeile hinzufügen falls nicht vorhanden
...
EndSection
Section "InputDevice" # neue Section anlegen
Identifier "touchscreen"
Driver "evtouch"
Option "Device" "/dev/input/event3"
Option "DeviceName" "touchscreen"
#########################################
# ein guter Anfang, wird später editiert:
#########################################
Option "MinX" "0"
Option "MinY" "0"
Option "MaxX" "2000"
Option "MaxY" "2000"
#########################################
Option "ReportingMode" "Raw"
Option "Emulate3Buttons"
Option "Emulate3Timeout" "50"
Option "SendCoreEvents"
Option "Calibrate" "1" # wird nur zur Kalibrierung gebraucht!
EndSection
Section "ServerLayout"
...
InputDevice "touchscreen" "CorePointer" #Zeile hinzufügen
...
EndSection
host:~/src/evtouch-0.6.1 # cp ev_calibrate /usr/X11R6/bin/X-Server beenden
host:~/src/evtouch-0.6.1 # init 3aus dem Verzeichnis evtouch-0.6.1
host:~/bin/evtouch-0.61 # ./calibrate.shaufrufen.
Section "InputDevice"
...
#########################################
# ein guter Anfang, wird später editiert:
#########################################
Option "MinX" "neuer Wert"
Option "MinY" "neuer Wert"
Option "MaxX" "neuer Wert"
Option "MaxY" "neuer Wert"
#########################################
...
EndSection
editieren mit den abgelesenen Werten,# Option "Calibrate" "1"X-Server starten
host:~/bin/evtouch-0.61 # init 5Geschafft! Touchscreen testen, wenn alles OK ist sollte es jetzt funktionieren.
Option "SwapX" "1" # Option "SwapY" "1" Option "Rotate" "cw" # Option "Rotate" "ccw"konnte ich das korrigieren.