Assuming you are starting with a fresh Volumio system:
-
Install the Touch Display plugin.
-
Download the display specific overlay:
wget https://raw.githubusercontent.com/waveshare/LCD-show/master/waveshare35b-v2-overlay.dtb
- Copy the overlay to “/boot/overlays/waveshare35b-v2.dtbo”:
sudo cp waveshare35b-v2.dtb /boot/overlays/waveshare35b-v2.dtbo
- Open “/boot/userconfig.txt”:
nano /boot/userconfig.txt
- Add the following lines:
dtparam=spi=on
dtoverlay=waveshare35b-v2
-
Save “/boot/userconfig.txt” by typing Ctrl+x then y and Enter.
-
Download “99-calibration.conf-35b” as it might be necessary to calibrate the screen:
wget https://raw.githubusercontent.com/waveshare/LCD-show/master/etc/X11/xorg.conf.d/99-calibration.conf-35b
- Create “/etc/X11/xorg.conf.d” in case it’s missing and copy “99-calibration.conf-35b” to “/etc/X11/xorg.conf.d/99-calibration.conf”:
sudo mkdir -p /etc/X11/xorg.conf.d
sudo cp 99-calibration.conf-35b /etc/X11/xorg.conf.d/99-calibration.conf
- Open “/usr/share/X11/xorg.conf.d/99-fbturbo.conf” with
sudo nano /usr/share/X11/xorg.conf.d/99-fbturbo.conf
and change
Option "fbdev" "/dev/fb0"
to
Option "fbdev" "/dev/fb1"
Save the file hitting Ctrl-x, y and Enter.
- For touch function you probably need to install “xserver-xorg-input-evdev” running
sudo apt-get install xserver-xorg-input-evdev
and then execute
sudo cp /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
- After all that reboot.
Check if touch works and if display and touch orientation are aligned and report back.