Jump to content

ELO touchscreen setup (debian/KDE): Difference between revisions

From Rivendell Wiki
imported>WaybackImport
Imported via HTML fallback (before-primary)
 
imported>ImportBot
Imported from scrape
 
Line 1: Line 1:
Using serial connection only:
'''Using serial connection only:'''
NOTE: If the monitor is USB/serial and an active USB cable is plugged in the serial port is disabled!
'''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 ==
== Connecting the touchscreen with EVDEV and inputattach ==
These seems to be a more elegant way to use the touchscreen today:
These seems to be a more elegant way to use the touchscreen today:


modprobe elo
modprobe elo


inputattach -elo /dev/ttyS0 --daemon
inputattach -elo /dev/ttyS0 --daemon


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


[http://who-t.blogspot.de/2012/07/elographics-touchscreen-setup.html http://who-t.blogspot.de/2012/07/elographics-touchscreen-setup.html]
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 https://wiki.archlinux.org/index.php/Attaching_serial_input_devices_to_the_kernel_input_system]
https://wiki.archlinux.org/index.php/Attaching_serial_input_devices_to_the_kernel_input_system


== Using the X11-elographics driver ==
== Using the X11-elographics driver ==


MaxX, MinX, MaxY & MinY option settings are pretty close but proper calibration is best.
 
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)
Installed debian driver package for elo serial touchscreen (not for USB)
aptitude install xserver-xorg-input-elographics


aptitude install xserver-xorg-input-elographics
Create Input Device entry in /etc/X11/xorg.conf  
 
  Section "InputDevice"
Create Input Device entry in /etc/X11/xorg.conf
        Identifier  "Touchscreen"
 
        Driver     "elographics"
Section "InputDevice"
        Option     "screenno"        "0"  
        Identifier  "Touchscreen"
        Option     "ButtonNumber"    "1"       
        Driver     "elographics"
        Option     "ButtonThreshold" "17"
        Option     "screenno"        "0"  
        Option     "Device"          "/dev/ttyS1"
        Option     "ButtonNumber"    "1"       
        Option     "InputFashion"    "Touchpanel"
        Option     "ButtonThreshold" "17"
        Option     "MaxX"            "4025"
        Option     "Device"          "/dev/ttyS1"
        Option     "MinX"            "22"
        Option     "InputFashion"    "Touchpanel"
        Option      "MaxY"            "3967"  
        Option     "MaxX"            "4025"
        Option     "MinY"            "75"
        Option     "MinX"            "22"
        Option     "Name"            "ELO Touchscreen"
        Option      "MaxY"            "3967"  
        Option     "ReportingMode"  "Scaled"
        Option     "MinY"            "75"
        Option     "SendCoreEvents"  "on"
        Option     "Name"            "ELO Touchscreen"
  EndSection
        Option     "ReportingMode"  "Scaled"
        Option     "SendCoreEvents"  "on"
EndSection


Add Input Device to "ServerLayout" section
Add Input Device to "ServerLayout" section
        InputDevice "Touchscreen" "SendCoreEvents"


      InputDevice "Touchscreen" "SendCoreEvents"


reboot or restart xserver
reboot or restart xserver


== Calibration ==
== Calibration ==
Download [http://touchcal.sourceforge.net Touchcal]. You need to install libncrses5-dev to compile the package so:
Download [http://touchcal.sourceforge.net Touchcal]. You need to install libncrses5-dev to compile the package so:
 
apt-get install libncurses5-dev
apt-get install libncurses5-dev
 
Then extract Touchcal and compile
Then extract Touchcal and compile
 
./configure
./configure
make
make


Stop x11 server:
Stop x11 server:
 
/etc/init.d/kdm stop
/etc/init.d/kdm stop


Run calibration:
Run calibration:
 
./touchcal --elographics /dev/ttyS1
./touchcal --elographics /dev/ttyS1
 
Follow the onscreen prompts and then add the coordinates in /etc/X11/xorg.conf as mentioned above
Follow the onscreen prompts and then add the coordinates in /etc/X11/xorg.conf as mentioned above
Retrieved from "[[ELO_touchscreen_setup_(debian/KDE)|http://wiki.rivendellaudio.org/index.php?title=ELO_touchscreen_setup_(debian/KDE)&oldid=20]]"

Latest revision as of 10:18, 9 May 2026

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