I have tried following the instructions several times, all of the different ones but with no success. All I managed was to change it from a white to a black screen.
Finally today I got it working with some minor additional steps.
First of all I had problems runnint apt-get upgrade due to the clock not matching the current time. ntp is no longer used by default in Buster it seems. So I had to manually set the clock for upgrades to work. Before that I got an issue that the repos are not yet valid. (The date and time was set at a month back, probably from when the image was created). After manually setting the time I no longer got any errors when upgrading.
After that I ran in to some issues with fbturbo, looking at the output in Xorg.0.log I could see errors saying “Failed to load module ‘fbturbo’”. After some googling I found thats not included in Buster as well. So following these instructions I was able to compile and install fbturbo and after another reboot I now have a working screen!
I hope this can be of help to anyone that stumbles upon this thread with the same issues.
Hi,
I also have XPT2046 and it works fine after reading @gvolt tuto.
Only one request : I don’t want the screen to stay on even in screensaver mode. I would like it to turn off electrically after a timeout.
Is it possible ?
Thanks a lot.
Hi gvolt! thanks to you i manage to work with the display using this tut.unfortunately , it couldnt work with the the touch function even i tried to on the mouse pointer.
is there something i missed or didnt put some line in userconfig?
After boot
Change the timezone from where am i located.
Then execute sudo apt update then install touch display from plug-in store.
After these
Do this introduction from Volumio with 3.5" TFT Touch Screen (GPIO) RPi 3B+ - #345 by gvolt
3.5inch userconfig has these line dtparam=spi=on
dtoverlay=tft35a
While,
4inch has
dtparam=i2c_arm=on
dtparam=spi=on
config_hdmi_boost=7
hdmi_group=2
hdmi_mode=87
hdmi_drive=2
hdmi_cvt 480 800 60 6 0 0 0
dtoverlay=ads7846
dtparam=cs=1
dtparam=penirq=25
dtparam=penirq_pull=2
dtparam=speed=50000
dtparam=swapxy=0
dtparam=pmax=255
dtparam=xohms=150
dtparam=xmin=200
dtparam=xmax=3900
dtparam=ymin=200
dtparam=ymax=3900
display_rotate=3
for 3.5 inch "volumio@volumio:~$ cat /boot/userconfig.txt
Add your custom config.txt options to this file, which will be preserved during updates
dtparam=spi=on
dtoverlay=tft35a
"
for 4 inch " volumio@volumio:~$ cat /boot/userconfig.txt
Add your custom config.txt options to this file, which will be preserved during updates
Hi gvolt! i just want to tell you that 4 inch is working now using this tut Miuzei 4 inch IPS Touch Screen LCD Display , however, the touch function not working. and the mouse pointer is at the middle of display and i run these command.
cat /dev/input/event*
nothing happens
while,
volumio@volumio:~$ udevadm info -q all -n /dev/input/event*
P: /devices/platform/soc/3f204000.spi/spi_master/spi0/spi0.1/input/input0/event0
N: input/event0
L: 0
S: input/by-path/platform-3f204000.spi-event
E: DEVPATH=/devices/platform/soc/3f204000.spi/spi_master/spi0/spi0.1/input/input0/event0
E: DEVNAME=/dev/input/event0
E: MAJOR=13
E: MINOR=64
E: SUBSYSTEM=input
E: USEC_INITIALIZED=23482598
E: ID_INPUT=1
E: ID_INPUT_TOUCHSCREEN=1
E: ID_PATH=platform-3f204000.spi
E: ID_PATH_TAG=platform-3f204000_spi
E: LIBINPUT_DEVICE_GROUP=1c/0/1ea6:spi0
E: DEVLINKS=/dev/input/by-path/platform-3f204000.spi-event
And i did this also, sudo apt-get -y install xserver-xorg-input-evdev