Today we are going to solve problem of 5-inch TFT LCD from waveshare. When we plug the LCD and install raspberrian it takes only 3.5 inch space by default. If we want to set the resolution 800×480 so that the screen will be able to take whole space on LCD then follow the steps provided below.
We had drived our today’s Artical from following instructable and for the Touchscreen to work properly and response your touch input we need to install the TouchScreen Driver which is provided in following article about 5-inch TFT LCD. So let’s get started
Changing the config.txt file
To setup the whole display we need to modify HDMI settings from config.txt file. This file could be modified within raspberry pi via terminal or you could also change it from your windows text editor if you unplug memory card from raspberry pi and put that into your laptop or computer. Which ever method you prefer, just open that file
sudo nano config.txt
now just find the line where it says following
#Uncomment to force a specific HDMI Mode
Then place the following lines
hdmi_cvt=800 480 60 6 0 0 0
Now press control+x and then press y and press Enter to exit
You need to reboot raspberry PI so that changes could effect. Once you reboot you will see the screen is now taking full LCD space. Congratulations
Making Touch Screen Work
Still you are not able to provide touch inputs to your PI. To do that you have to install drivers for your LCD. Here is a link with full instructions we had provided short summary for doing this
Just clone the github repository via following command in terminal
and after that move to specific cloned directory and run the executeable like this
After everything is finished just restart the raspberry Pi and everything should be working this time.
Calibrate Touch Screen
If you face problem in your touch inputs, then you may be need to calibrate your touch screen. If you want to calibrate then you have to install some specific calibration package. One package you could install via raspberry pi’s terminal using following command
sudo apt-get install -y xinput-calibrator
This will install calibrator program which you can found in your menu and then preference menu where raspi-config screen resides. Just open this program and follow the steps.