Jump to content

ELO touchscreen setup (debian/KDE)

From Rivendell Wiki
Revision as of 10:45, 28 February 2024 by imported>WaybackImport (Imported via HTML fallback (before-primary))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Using serial connection only: NOTE: If the monitor is USB/serial and an active USB cable is plugged in the serial port is disabled!

Connecting the touchscreen with EVDEV and inputattach

These seems to be a more elegant way to use the touchscreen today:

modprobe elo

inputattach -elo /dev/ttyS0 --daemon

You can create a udev-rules, to load inputattach automatically

http://who-t.blogspot.de/2012/07/elographics-touchscreen-setup.html

https://wiki.archlinux.org/index.php/Attaching_serial_input_devices_to_the_kernel_input_system

Using the X11-elographics driver

MaxX, MinX, MaxY & MinY option settings are pretty close but proper calibration is best.

Installed debian driver package for elo serial touchscreen (not for USB)

aptitude install xserver-xorg-input-elographics

Create Input Device entry in /etc/X11/xorg.conf

Section "InputDevice"
       Identifier   "Touchscreen"
       Driver	     "elographics"
       Option	     "screenno"        "0" 
       Option	     "ButtonNumber"    "1"       
       Option	     "ButtonThreshold" "17"
       Option	     "Device"          "/dev/ttyS1"
       Option	     "InputFashion"    "Touchpanel"
       Option	     "MaxX"            "4025"
       Option	     "MinX"            "22"
       Option       "MaxY"            "3967" 
       Option	     "MinY"            "75"
       Option	     "Name"            "ELO Touchscreen"
       Option	     "ReportingMode"   "Scaled"
       Option	     "SendCoreEvents"  "on"
EndSection

Add Input Device to "ServerLayout" section

      InputDevice	"Touchscreen" "SendCoreEvents"

reboot or restart xserver

Calibration

Download Touchcal. You need to install libncrses5-dev to compile the package so:

apt-get install libncurses5-dev

Then extract Touchcal and compile

./configure make

Stop x11 server:

/etc/init.d/kdm stop

Run calibration:

./touchcal --elographics /dev/ttyS1

Follow the onscreen prompts and then add the coordinates in /etc/X11/xorg.conf as mentioned above

Retrieved from "http://wiki.rivendellaudio.org/index.php?title=ELO_touchscreen_setup_(debian/KDE)&oldid=20"