Preparation:
▶ Touch screen driver: pmLinux-Ubuntu
(Download: https://drive.google.com/drive/folders/1TGudp_3wAlM0JpXzeOMj7DjXhejip4s0?usp=drive_link)
▶ Install the touch screen calibration tool: xinput-calibrator
▶ System version: Ubuntu20.04
▶ The industrial flat panel is in the networked state
Steps:
- Update the package list, Ctrl+Alt+T to open the terminal
In the terminal, type: sudo apt update

In the terminal, type: sudo apt install git

In the terminal, type: sudo apt upgrade to upgrade the installed packages.

In the terminal, type: sudo apt dist-upgrade to upgrade the kernel.
In the terminal, type: reboot to reboot your computer.
2. Download and extract pmLinux-Ubuntu, copy pmLinux-Ubuntu to the Downloads directory, and open a terminal in the Downloads directory.

In the terminal, type: cd pmLinux-Ubuntu

In the terminal, type: chmod +x install.sh
In the terminal, type: sudo . /install.sh

Wait for the driver installation to complete. After installation, type reboot to reboot the computer;

3. reboot into the desktop, press Ctrl + Alt + T to open the terminal to install the calibration tool
xinput-calibrator tool: sudo apt-get install xinput-calibrator
xinput tool: sudo apt-get insatll xinput


Calibration example:
View touch device id: xinput_calibrator -list

Above: device name: "DIALOGUE INC PenMount USB" id=10
Calibrate touch devices: xinput_calibrator -v --device
Here is: xinput_calibrator -v --device 10 Terminal enter the command will enter the calibration page, according to the prompts to calibrate 4 points.

4. in the display of the screen touch calibration page for page calibration, the terminal will output the screen calibration data;

Copy the screen calibration data to /usr/share/X11/xorg.conf.d/ according to the prompts. If there is no 99-touchscreen-evdev.conf file you can create one manually.
◆ Manual creation method:
A. Open a terminal window by pressing the Ctrl + Alt + T key combination.
B. Type: cd /usr/share/X11/xorg.conf.d in the terminal.

C. Use a text editor to create the 99-touchscreen-evdev.conf file. You can create the 99-touchscreen-evdev.conf file using a command line text editor such as nano.
In a terminal, type: sudo nano 99-touchscreen-evdev.conf
D. Paste the output screen calibration data in the editor. Note: The original data in the illustration needs to be deleted completely!

After finishing editing in the editor, save the file using the editor's commands. In nano, press Ctrl + O to save, then press Enter to confirm, and finally press Ctrl + X to exit the editor.
After completing the above steps, the 99-touchscreen-evdev.conf file should have been created and located in the /usr/share/X11/xorg.conf.d directory. Please remember to backup the original file before modifying the configuration file to prevent configuration errors.