Calibrating the touch screen before changing back the boot config of the pi let us calibrate the touch screen monitor first.
Rpi touch screen calibration.
Finish the touch calibration following the prompts.
Turn your raspberry pi into a touch screen tablet infotainment system or standalone device.
Or select menu preferences calibrate touchscreen.
Click the points one by one to finish the touch calibration.
Drag your finger or stylus around the screen to test the accuracy of the calibration.
Click the men button on the task bar choose preference calibrate touchscreen.
Please get these data for future use.
Go at the bottom of the file and paste these settings.
You need to click 4 points step by step to calibrate.
Press ctrl c to stop the test.
Power off and connect your raspberry pi to your new 7 inch touch screen display.
We need to install xinput calibrator to calibrate the gen4 4dpi.
Power on your raspberry pi and open terminal run this command.
Raspberry pi 7 inch touch screen calibration.
Using a stylus is suggested so you get a precise touch.
On the terminal enter.
Sudo tslib fbdevice dev fb1 tslib tsdevice dev input touchscreen ts calibrate.
After running these commands there will be a prompt for four point calibration shown in the lcd screen.
Then the new calibration data will be displayed in the terminal as shows below.
After calibration you will get the following.
Open terminal and input.
Maybe rebooting is required to make calibration active.
We ll begin by calibrating on the command line by running.
Touchscreen drivers with support for 10 finger touch and an on screen keyboard will be integrated into the latest raspberry pi os for full functionality without a physical keyboard or mouse.
Sudo dpkg i b xinput calibrator deb.
You can create a 99 calibration conf file to save the touch parameters not necessary if file exists.
Install the software on the terminal enter.
You will want to calibrate the screen once but shouldn t have to do it more than that.
If necessary run ts calibrate again to improve the calibration.
Follow the directions on the screen touching each point.
Sudo su display 0 0 xinput calibrator then the sreen will show 4 points.
Download the xinput calibration software copy it to your raspbery pi.