
– if you want to switch back to the HDMI display, just change it back to fb0 5. Here we will change the default output display from HDMI to Tontec Screen Set Tontec 3.5 Screen as the default display instead of HDMI sudo nano /usr/share/X11//nf Open /boot/config.txt sudo nano /boot/config.txtĪnd add these lines to the bottom dtparam=spi=on Enable SPI and set overlay for Tontec MZ61581 Screen We now need to update the dtb file to the newest version to support Tontec screen. Then we need “update” and “upgrade” sudo apt-get update Initial Config of New Raspberry Pi InstallĪfter booting your Raspberry Pi for the first time on Raspbian-Wheezy, we will need to perform the normal tasks of setting up our Raspberry Pi. This guide was written for Raspbian wheezy, specifically -raspbian-wheezy.img, though the guide should work on later versions as well. Notices: In case of inaccurate touch, please perform screen calibration again and reboot the system.This is taken from information last updated on īelow you will find instructions for installing the appropriate drivers for the Tontec 3.5 inch screen on your Raspberry Pi (including Pi 2). Enter the following command for system reboot: sudo reboot The modification will be valid after rebooting the system. Press the keys Ctrl+X, and select the option Y to save the modification. Modify the calibration data to the new calibration data displayed above): Section "InputClass" Then, the old calibration data will be displayed in the terminal: Section "InputClass" Setting new calibration data: 3919, 208, 236, 3913Įnter the following command to edit nf: sudo nano /etc/X11//nf Then, the new calibration data will be displayed in the terminal, as shows below. Click the points one by one to finish the touch calibration. Or select Menu -> Preferences -> Calibrate Touchscreen.Īfter running these commands, there will be a prompt for four-point calibration shown in the LCD screen.

So in this case, you should get and install the program manually with sudo apt-get install -y xinput-calibratorĮnter the following commands for touch screen calibration: sudo DISPLAY=:0.0 xinput_calibrator However, it was not pre-installed on original Raspbian OS. The LCD can be calibrated using a program called xinput calibrator which is pre-installed on the LCD image. A lot of people who install a 3.5 TFT LCD Screen to their Raspberry Pi using my previous instruction is asking to how they can calibrate the touch functionality of the LCD so here it is.
