I recently purchased a 3.2″ Touchscreen for one of my Raspberry Pi 3 Model B boards. I didn’t want to use the manufacturer’s outdated customized Kernel Image, and the information on Amazon was lacking, at best. Here’s what I did to get it running.
This will work with Raspbian and Ubuntu Mate.
- Login to your Pi (SSH recommended.)
- Run “wget http://www.waveshare.com/w/upload/3/3d/LCD-show-160811.tar.gz”
- Extract the file: “tar xvf LCD-show-160811.tar.gz”
- Run “cd LCD-show/”
- Run “sudo ./LCD4-show”
- Your Pi should reboot and the touchscreen should now function.
- Login to your Pi
- Run “sudo apt-get install -y xinput-calibrator”
- Run “sudo DISPLAY=0.0 xinput_calibrator”
- Use your stylus to touch the 4 points for calibration
- Note the information on the line that says “setting new calibration data: 1234 123 123 1234”
- Run “sudo nano /etc/X11/xorg.conf.d/99-calibration.conf”
- Update your calibration data by changing the line below to have the new values:
- Option “Calibration” “1234 123 123 1234”
- Press “CTRL+X” to exit. Choose “Y” to overwrite the file.
- Run “sudo reboot” to reboot your Pi
- Your touchscreen is now functioning and calibrated!!