New here, tried to post on the older forum but its locked.
I have a XPT2046 touch screen 5 inch…this should work also for 3.5 inch version.
Had problem with making it work correctly or at all, but wanted to post a solution how i did it since there is nowhere one post. I copied from 3 forum posts lower lines and put them together to get it to work. Hope it helps someone …anyway …
Installing SetupHelper and RpiDisplaySetup, does most of the job but the Rpi doesnt want to start the calibration process. Will just write how i made it work:
- Install RpiDisplaySetup thru SetupHelper… (tutorial scroll to 16:30)
If calibration magically works after reset ignore this post and continue your life…if it doesnt like in my case
- SSH into your Rpi
nano /etc/opkg/venus.conf
##change (3x) in all rows from /release/ to /candidate/
##than press ctrl + o and ctrl + x
- continue in SSH with this solution from another forum
##turn off GUI:
touch /etc/venus/headless
reboot
##install opkg update:
Opkg update
##install:
Opkg install tslib-calibrate
reboot
##try to run ts calibrate:
ts_calibrate
##this is where i got ts_calibrate: “ts_setup: No such file or directory”
- hopefully still in SSH (another forum)
##put some valuables into config.txt for screen, numbers really dont matter i noticed because calibration later will fix them. It took me a while to find config.txt since most distros have it in /boot…anyway
nano /u-boot/config.txt
##at the bottom of the text copy
dtparam=i2c_arm=on
dtparam=spi=on
dtoverlay=ads7846,penirq=25,speed=10000,penirq_pull=2,xohms=150
##save and exit or ctrl + o and ctrl + x
reboot
- if headless from before is still on you should end up on terminal screen
#ssh on it and run the calibration
ts_calibrate
##this should give you the screen with the + to press 5x and calibrate it
reboot
##dont forget to erase the headless so you go back to GUI
rm /etc/venus/headless
reboot
##this is it …works for me