Waveshare 3.5 LCD (A) rev 4.0

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:

  1. Install the Touch Display plugin.

  2. Connect to Volumio via SSH.

  3. 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
  1. Reboot.

  2. 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.

  1. Reboot once again.

  2. 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.

1 Like