Hello,
I have a waveshare 3.5 LCD (A) with XPT2046 touch controller.
I cannot at all get this screen to work at all. I’ve followed numerous guides from this site and the internet all with no joy at all. The screen works fine with a fresh raspberry pi os install and the guide on waveshares site. Works fine with picoreplayer and a guide i found online.
Everytime i retry is with a new fresh copy of volumio 3.301.
Could anyone help me please with a guide before i finally accept defeat and use picoreplayer
you just missing some settings and the touch display plugin @gvolt can help you with this.
I may have made some errors on the guides i have followed due to some of the git repositories being updated since the guide was written and some file names within the repository changing name.
just wait when gvolt is there he will give you instructions in how to set it up.
he has done many screens in the past and the best guy to ask it.
Since I don’t know in what state your Volumio installation is now, I recommend to start with a fresh Volumio system, i.e. start from scratch. Make sure to wait some minutes after the first boot of Volumio so the data partition can fully expand. Otherwise you will not be able to install the Touch Display plugin because of too less space.
Try the following steps:
-
Install the Touch Display plugin.
-
Execute
sudo apt-get -y install xserver-xorg-video-fbturbo
sudo apt-get -y install xserver-xorg-input-evdev
sudo cp /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
sudo curl -L https://github.com/waveshare/LCD-show/raw/master/waveshare35a-overlay.dtb -o /boot/overlays/waveshare35a.dtbo
sudo curl -L https://raw.githubusercontent.com/waveshare/LCD-show/master/etc/X11/xorg.conf.d/99-calibration.conf-35 -o /etc/X11/xorg.conf.d/99-calibration.conf
sudo curl -L https://raw.githubusercontent.com/waveshare/LCD-show/master/usr/share/X11/xorg.conf.d/99-fbturbo.conf -o /usr/share/X11/xorg.conf.d/99-fbturbo.conf
cat >> /boot/userconfig.txt <<EOL
dtparam=spi=on
dtoverlay=waveshare35a
EOL
-
Reboot.
-
If the display should not have the orientation you are looking for, add a rotation parameter to the overlay in “/boot/userconfig.txt” so it looks something like this:
dtoverlay=waveshare35a:rotate=90
This would rotate the display (not touch) by 90 degrees clockwise.
-
Reboot once again.
-
If the display rotation appears to be correct now, check if the touch function is already properly aligned to the display. If this should not the be case try to find out by what amount touch has to be rotated, so we can have a look how to correct that.
Thank you very much for this guide gvolt it worked perfectly. The git repositories were very different from the ones i’d used in the other guides that I followed.
The only small issue although it doesn’t make any difference to me was the last part to rotate the screen 180 degrees didn’t work, but as i’m hoping to make myself a small media streamer it won’t matter what way round i mount the display.
The touch also works fine
Thanks again for taking the time to help me on this
Hi gvolt! Does this tuts still working with the latest version? Also including the touch function?
Thanks.