I’ve installed Volumio in my Raspberry Pi 2 Model B with a non-branded 3.5 inch GPIO display (XPT2046) . After first boot, initial config and Touch Display installed and enabled, I’ve followed the steps here and alternatively here. In that process apparently there’s no errors but when I reboot and Volumio starts the display keeps in black (white initially and black when it starts).
The Volumio web shows this errors:
Error connecting to the Xserver
Error modifying /etc/X11/xorg.conf.d/95-touch_display-plugin.conf: Error: Command failed: /bin/echo volumio | /usr/bin/sudo -S /bin/sed -i -e ‘/Option “TransformationMatrix”/d’ /etc/X11/xorg.conf.d/95-touch_display-plugin.conf [sudo] password for volumio: /bin/sed: can’t read /etc/X11/xorg.conf.d/95-touch_display-plugin.conf: No such file or directory
I’ve tried the same process with various Volumio versions (latest, lower than 1.55,…) and the same weird final. In some of the attempts, I connect the RPI to an external monitor via HDMI and I can see the Volumio interface (even with the tactile feedback when I touch the GPIO screen).
The screen works perfectly with other OS (Raspbian) but I can’t get it to work with Volumio.
If you followed the instructions you have linked to, you probably have installed lightdm which is not only unneeded but probably the cause of the error messages you described.
I suggest to start from scratch with a fresh Volumio install. Then try the following steps:
Again the data in these kind of files depends on the particular screen and without having more details of your display the values might fit your screen… or not
Copy “99-calibration.conf-35-0” to “/etc/X11/xorg.conf.d/99-calibration.conf”:
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=tft35a: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 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 inverted or swapped. Report back with your findings so we could try to find the right values to correct that.
After a lot of testing I finally managed to get it to work. Apparently the solution was to uninstall and reinstall the Touch Display plugin at the end of the whole process.
However, it seems that the RPi 2+ isn’t powerful enough to handle Volumio smoothly so it’s not very operational…
Starting all over again with the steps mentioned in the april '21 post based on Volumio-3.179 image.
Step 4 brings error: cp: cannot stat ‘tft35a.dtb’: No such file or directory
changed it to sudo cp tft35a-overlay.dtb /boot/overlays/tft35a.dtbo and looked OK now.
Uptill step 10 no problems so far.
Touch Display disabled.
After reboot screen starts white, turns to black and that’s it.
Swapping axes can be done in “/etc/X11/xorg.conf.d/99-calibration.conf” if evdev is installed. From what I have seen from your Xorg.0.log this is currently not the case. If my first suggestion shouldn’t work this would be the next option.