I assume you have this display - if not provide a valid link please.
If you cannot exclude the possibility that your system could be messed up by earlier attempts to make the display work, I recommend to start with a fresh Volumio system, i.e. start from scratch. In that case 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.
-
Install the Touch Display plugin. I recommend to install version 3.3.5beta. Unlike 3.3.1 the beta version detects download errors and cancels the installation of the plugin if such an error occurs. In this case, the plugin would not appear in the list of installed plugins, giving the impression that the installation was successful.
In order to be able to install beta versions of plugins at first you need to enable “Plugins Test Mode” on
http://volumio.local/dev
; maybe you have to use the IP address of your Volumio system instead of “volumio.local”.After that head over to the plugin store and click on the “Details” button for the Touch Display plugin and choose “Install v3.3.5(beta)”.
Be aware that updating the plugin from a beta version to a newer beta version of the same plugin is not possible in the proper sense, but requires to uninstall the older version and install the newer one. Uninstalling a plugin erases the settings you may have made on the plugin’s config page.
I also suspect, that it is not possible to update from the beta version of a plugin to a newer stable version, but I haven’t had a chance to try it out yet. So if you want to change to the stable branch of a plugin you would probably have to uninstall the beta version first.
-
Execute
sudo curl -L https://github.com/goodtft/LCD-show/raw/master/usr/mhs35-overlay.dtb -o /boot/overlays/mhs35.dtbo
sudo curl -L https://raw.githubusercontent.com/goodtft/LCD-show/master/usr/99-calibration.conf-mhs35-0 -o /etc/X11/xorg.conf.d/99-calibration.conf
sudo curl -L https://raw.githubusercontent.com/goodtft/LCD-show/master/usr/99-fbturbo.conf -o /usr/share/X11/xorg.conf.d/99-fbturbo.conf
sudo sed 's/"fbturbo"/"fbdev"/' -i /usr/share/X11/xorg.conf.d/99-fbturbo.conf
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
cat >> /boot/userconfig.txt <<EOL
dtparam=spi=on
dtoverlay=mhs35
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=mhs35: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. Then head over to the Touch Display’s configuration page and set this value in the rotation setting.
-
Reboot and check if touch is properly aligned to the display now. It is possible that setting the rotation in the prior step does not suffice. This would be the case if the screen’s touch axes are inverted or swapped which is not uncommon on these kind of screens… Then you would have to find out how the axes are inverted or swapped to be able to find a correction.