Volumio with 3.5" TFT Touch Screen (GPIO) RPi 3B+

excuse me. I get an error when I run the following command: sudo cp tft35a-overlay.dtb / boot / overlays / Error code cp: missing destination file operand after’tft35a-overlay.dtb / boot / overlays /’ Referenced URL 3.5_inch_Volumio.pdf - Google Drive

IMHO you just need to run

sudo cp tft35a-overlay.dtb /boot/overlays/tft35a.dtbo

If you do that, you will get the following error: cp: cannot stat’tft35a-overlay.dtb’: No such file or directory

Did you download “tft35a-overlay.dtb” succesfully? If so, you need to change into the directory where “tft35a-overlay.dtb” has been saved to before you execute the provided command - or you have to give the full path to “tft35a-overlay.dtb” like:

sudo cp /path/to/tft35a-overlay.dtb /boot/overlays/tft35a.dtbo

1 Like

Before that I get the following error (sorry for linux beginners) sudo: mkdir / etc / X11 / xorg.conf.d: command not found

Command has to be:

sudo mkdir /etc/X11/xorg.conf.d

=> No blanks/spaces.

Hm, I thought you were following the instructions you have linked above… then you should have a directory called “LCD-show” with a subdirectory “usr” where you should find the file “tft35a-overlay.dtb”.

If you don’t have/find the directory “LCD-show”, you could do a step-by-step installation:

  1. Install the Touch Display plugin.

  2. Download the display specific overlay:

wget https://github.com/goodtft/LCD-show/raw/master/usr/tft35a-overlay.dtb

  1. Copy the overlay to “/boot/overlays/tft35a.dtbo”:

sudo cp tft35a-overlay.dtb /boot/overlays/tft35a.dtbo

  1. Open “boot/userconfig.txt”:

nano /boot/userconfig.txt

  1. Add the following lines:
dtparam=spi=on
dtoverlay=tft35a

It could be necessary to add a rotation value to the overlay later on.

  1. Save “/boot/userconfig.txt” by typing Ctrl+x then y and Enter.

  2. Download “99-calibration.conf-35-0” as it might be necessary to calibrate the screen:

wget https://raw.githubusercontent.com/goodtft/LCD-show/master/usr/99-calibration.conf-35-0

  1. Create “/etc/X11/xorg.conf.d” in case it’s missing and copy “99-calibration.conf-35-0” to “/etc/X11/xorg.conf.d/99-calibration.conf”:

sudo mkdir -p /etc/X11/xorg.conf.d
sudo cp 99-calibration.conf-35-0 /etc/X11/xorg.conf.d/99-calibration.conf

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

  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=tft35a: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. Then head over to the Touch Display’s configuration page and set this value in the rotation setting.

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

Edit: Corrected command in step 3.

1 Like

Hi, I Have tried everything and is impossible. Linux is going to kill me (I am a nob)
When I type “sudo cp tft35a.dtb /boot/overlays/tft35a.dtbo” I get "cp: cannot stat ‘tft35a.dtb’: No such file or directory, What Can I do?
Thx

See this post and the post above yours, please :slight_smile:

I followed all the commands on the reference page but it still has a black screen.

It’s hard to say what has gone wrong. Sometimes it’s easier to start with a fresh Volumio system and then follow the single steps I have outlined above (without cloning the goodtft repo from github.

It is also necessary to know what the brand and exact model of your screen is. Without this information you might use the wrong overlay.

BTW: Did you install (and enable) the Touch Display plugin?

display

raspberry pi 4 model b 8gb

Thx. I will try

I get an error when I enable the touch display

The same problem…

So, what’s the error message? :wink:

1 Like

I always start with a clean installation, so I don´t know where is the error.

This indicates the Touch Display plugin has not been installed correctly. This can happen when the download of software packages (which happens in the background during plugin installation) fails.

I suggest to uninstall the plugin and re-install it.

For your Kuman screen the tft35a-overlay should be correct.

1 Like