Skip to main content

Ticket dispenser touchscreen settings guide

Content

This document gives guidelines for fixing some of the settings of the ticket dispenser’s touchscreen, like calibration and orientation.

Calibration

To change the touchscreen’s calibration of the ticket dispenser, please follow these steps:

  1. Enter the Raspberry Pi local cmd by pressing Ctrl + Alt + F6.

Since the partitions are read-only, mount them as read-write and, when the ticket dispenser is rebooted, the partitions will be mounted read-only again automatically:

sudo mount -o remount,rw /boot
  1. Get the ticket dispenser’s touchscreen ID using:
DISPLAY=:0 xinput

Look for “Virtual core pointer”.

Example: eGalax Inc. eGalaxTouch EXC3146-2854-07.00.00

Open the calibrations file:

sudo nano /etc/X11/xorg.conf.d/99-calibration.conf

In this file, there should be a line where the "MatchProduct" is the same as your touchscreen ID. Below, there are several "Options", like the Calibration itself, SwapAxes, or Inverting X/Y.

note

Check in the directory below if there’s a file with the name of Product. If it does you should use it instead of the 99-calibration.conf file shown above.

sudo ls /etc/X11/xorg.conf.d
  1. To get the correct calibration for your touchscreen, type:
DISPLAY=:0 xinput_calibrator
  1. Then, look at the touchscreen of the ticket dispenser, and press the "crosshairs". When done, there will be something like this on the screen, at the end:
(...)
--> Making the calibration permanent <--
copy the snippet below into '/etc/X11/xorg.conf.d/99-calibration.conf' (/usr/share/X11/xorg.conf.d/ in some distro's)
Section "InputClass"
Identifier "calibration"
MatchProduct "eGalax Inc. eGalaxTouch EXC3146-2854-07.00.00"
Option "Calibration" "4082 -10 46 4077"
Option "SwapAxes" "1"
EndSection
  1. Open the calibration file again:
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
  1. Delete the "old" configuration for your touchscreen, or just alter the requires parts, to match what was printed on the touchscreen (highlighted in orange on point 4).
  2. Just save the file (on nano, the shortcut is Ctrl + X, then Y, and then Enter).
  3. Reboot the dispenser.

Invert axes for iliyek touchpad 5

Touch pad calibration for ILITEK products is a bit different in some dispensers, especially in 10”Compact models.

To change the calibration in these devices please follow the steps below:

tip

The following chapters describe troubleshooting steps, considering that the required infrastructure is working properly.

  1. Set the partitions to Read/Write, since the default value is read-only we need to alter this setting so we can edit files.
sudo mount -o remount,rw /
sudo mount -o remount,rw /boot
  1. Next, see the name of the display device
DISPLAY=:0 xinput

Output example:

Alt image raspberry pi 4

  1. Open the configuration file
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
  1. Search for the Product "ILITEK Multi-Touch-V3000" .
    Here we can use the option “calibrate” to adjust the coordinates.
Section "InputClass"
Identifier "calibration"
MatchProduct "ILITEK Multi-Touch-V3000"
Option "Calibration" "13316 13123 5134 5196"
EndSection
  1. Insert a new section for the Product "ILITEK ILITEK-TP" .
    Here we use the options such as “SwapAxes” and “InvertY”/”InvertX”.
Section "InputClass"
Identifier "calibration"
MatchProduct "ILITEK ILITEK-TP"
Option "SwapAxes" "1"
Option "InvertX" "true"
EndSection

Orientation

If the image is upside down, you need to rotate it 180º.

  1. Enter the Raspberry Pi local cmd by pressing Ctrl + Alt + F6.

Since the partitions are read-only, mount them as read-write and, when the ticket dispenser is rebooted, the partitions will be mounted read-only again automatically:

sudo mount -o remount,rw /boot
  1. Open and edit the file “/boot/config.txt”.
sudo nano /boot/config.txt

Look for the key ‘display_rotate’ in the file, and if the display_rotate value is:

  • 3, then swap it for 1;
  • 1, then swap it for 3.
  1. Save the file (on nano, the shortcut is Ctrl + X, then Y, and then Enter).
  2. Reboot the dispenser:
sudo reboot