eGalax Touchscreen Configuration Ubuntu 14.04LTS, 16.04LTS, 18.04LTS
In order to configure the eGalax Touchscreen in Ubuntu 14.04LTS you need to perform the following steps:
the newest driver has a setup.sh file. just run it and it does all the work for you. For Ubuntu 16.04 & 18.04 see Page 6 below.
Modify the file /etc/modules to add the modules usbtouchscreen and usbhid. These must come after lp and before rtc.
=== /etc/modules ===
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
loop
lp
usbtouchscreen
usbhid
rtc
=================
Then load the modules by hand the 1st time (or reboot)
sudo modprobe usbtouchscreen usbhid
http://www.eeti.com.tw/LinuxDriverDownload.html
gunzip /home/$USER/Downloads/eGalax*.zip
Move al the files in the folder /home/user/Downloads/eGalax/eGTouch_v2.5.4330.L-x/eGTouch64/eGTouch64withX to
/usr/local/bin/
*Note the following command is one line
sudo rsync -avz /home/$USER/Downloads/eGalax/eGTouch_v2.5.4330.L-x/eGTouch64/eGTouch64withX /usr/local/bin/
place the following Upstart job in /etc/init
=== /etc/init/egalaxtouch.conf ===
#!/bin/bash
description "Start the egalax touchscreen daemon on boot"
author "globeone Damiön la Bagh"
start on runlevel 2
exec /usr/local/bin/eGTouchD
=========================
Reload the Upstart configuration files
initctl reload
Start the touchscreen daemon with the following command
sudo service egalaxtouch start
Calibrate the Touchscreen with eGTouchU
sudo /usr/local/bin/eGTouchU
Follow the onscreen prompts of the config program for dual screen setup choose Left or Right mode!
l
Ubuntu 16.04
Ubuntu 16.04 has moved from Upstart to SystemD.
This changes how to install the eGalax touchscreens so they keep running even if the service crashes.
Run the setup.sh file provided by eGalax
sudo systemctl edit --force --full eGTouch.service
Overwrite the file with the code here below:
############################################
# eGalax Touchscreen service file RestartSec=5 |
########################################
Remove the SystemV init script from /etc/init.d/eGTouch.sh
sudo rm /etc/init.d/eGTouch.sh
sudo systemctl enable eGTouch.service
sudo systemctl daemon-reload
sudo systemctl restart eGTouch.service
sudo systemctl status eGTouch.service
user@hostname:~$ sudo systemctl status eGTouch.service |
If you kill the service
sudo kill 906
You will see the touchscreen restarting.
Download the latest touchscreen driver from eGalax
Untar the files
tar xvzf eGTouch_v2.5.5814.L-x
Run setup
sudo ./setup.sh
sudo systemctl edit --force --full eGTouch.service
Paste the following unit file modification
#######################################################
#### eGalax Touch Unit File for auto start on boot ####
#######################################################
[Unit]
Documentation=man:systemd-sysv-generator(8)
SourcePath=/usr/bin/eGTouchD
DefaultDependencies=no
Before=sysinit.target
After=apparmor.service
[Service]
Type=forking
Restart=always
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3
TimeoutSec=0
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=no
User=root
Group=root
ExecStart=/usr/bin/eGTouchD start
ExecReload=/usr/bin/eGTouchD restart
ExecStop=/usr/bin/eGTouchD stop
[Install]
WantedBy=multi-user.target
################################################
Then enable it
sudo systemctl enable eGTouch.service
Then restart it
sudo systemctl restart eGTouch.service
Then reboot
sudo reboot