Instructions

www.joy-it.net
Pascalstr. 8 47506 Neukirchen-Vluyn
Create now the file in which the setting will be saved in.
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
The listing should look like the following (The values aer
Calibration
can
be dier from yours):
Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "171 3720 3899 196"
Option "SwapAxes" "0"
EndSection
Calibration of the 3.5" display:
If a calibration of the touchscreen should be necessary, it can be done with
the following steps. First, you have to download the calibration tool. For
that, open the terminal and enter the following command:
sudo apt-get install -y xinput-calibrator
Restart the Raspberry Pi to identify the touch display properly:
sudo reboot
Then, you can start the calibration with the following command:
DISPLAY=:0.0 xinput_calibrator
Now, four points will light up aer another which have to be pressed to
calibrate the display. Aer that, the terminal will issue four values from the
calibration which have to be written in the file
99-calibration.conf
.
Therefore, open the file:
sudo nano /usr/share/X11/xorg.conf.d/99-calibration.conf
Enter the values in the following line:
Option "Calibration" "215 3947 3901 244"
Thereby, the first value complies with MinX, the second value with MaxX,
the third with MinY and the fourth with MaxY. Aer saving the file and restar-
ting the device, the new calibration values will be set.