Touchscreen Calibration - TARS-AI-Community/TARS-AI GitHub Wiki

Touchscreen Calibration

To calibrate the touchscreen, follow these steps:

Step 1: Install the Calibration Tool

sudo apt-get update sudo apt-get install xinput-calibrator

Step 2: Run the Calibration Tool

xinput_calibrator Touch the targets as instructed. The tool will generate calibration offsets.

Step 3: Save the Calibration Data

Save the output data to a configuration file:

sudo nano /usr/share/X11/xorg.conf.d/99-calibration.conf Paste the calibration data and save the file.

Step 4: Reboot

sudo reboot

Step 5: Verify Calibration

Interact with the desktop to ensure accurate touch. If needed, rerun the calibration tool or manually adjust the values in 99-calibration.conf.

Additional Notes

  • Enable SPI and I2S interfaces via sudo raspi-config under Interfacing Options.
  • Refer to the Adafruit MAX98357 guide for detailed amplifier setup.
  • Test the audio and touchscreen thoroughly after setup.