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

Please give some more details:

What is the exact model name of the display?

Did you install other software / modify files in order to use the display? If so, please describe in detail what you installed or modified.

only used touchscreen plug in. the display works but only 2/3rd

1 Like

Connect to Volumio via SSH.

Open the file “/boot/userconfig.txt”:

sudo nano /boot/userconfig.txt

Add the following lines:

dtparam=spi=on
hdmi_drive=1
hdmi_group=2
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0
dtoverlay=ads7846
dtparam=cs=1
dtparam=penirq=25
dtparam=penirq_pull=2
dtparam=speed=50000
dtparam=swapxy=0
dtparam=pmax=255
dtparam=xohms=150
dtparam=xmin=200
dtparam=xmax=3900
dtparam=ymin=200
dtparam=ymax=3900

To close nano and save “/boot/userconfig.txt” type Ctrl+x, y and Enter.

Reboot.

1 Like

thanks the display is working

1 Like

the touch not working though

Please post the results of

cat /boot/config.txt

and

cat /boot/userconfig.txt

1 Like

“/boot/config.txt” and “/boot/userconfig.txt” look ok. In “/boot/userconfig.txt” there should be a line break after dtparam=ymax=3900. Although I don’t expect this to be causing the problem please try adding the mentioned line break to be on the safe side.

Apart from that the triple repetition of the last entries in both files appears strange to me. Do you have an idea what could have caused this?

To investigate further please post the results of

ls -al /dev/input

ls -al /usr/share/X11/xorg.conf.d

and

ls -al /etc/X11/xorg.conf.d

P.S. If possible don’t post images of the output of such commands but try to copy and paste the output as plain text and format it with code tags here. It’s easier read on mobile devices and can be searched through, too.

ls -al /dev/input
total 0
drwxr-xr-x 4 root root 240 Nov 5 14:31 .
drwxr-xr-x 16 root root 3720 Nov 5 14:31 …
drwxr-xr-x 2 root root 120 Nov 5 14:31 by-id
drwxr-xr-x 2 root root 140 Nov 5 14:31 by-path
crw-rw---- 1 root input 13, 64 Nov 5 14:31 event0
crw-rw---- 1 root input 13, 65 Nov 5 14:31 event1
crw-rw---- 1 root input 13, 66 Nov 5 14:31 event2
crw-rw---- 1 root input 13, 67 Nov 5 14:31 event3
crw-rw---- 1 root input 13, 68 Nov 5 14:31 event4
crw-rw---- 1 root input 13, 63 Nov 5 14:31 mice
crw-rw---- 1 root input 13, 32 Nov 5 14:31 mouse0
crw-rw---- 1 root input 13, 33 Nov 5 14:31 mouse1

[quote=“gvolt, post:69, topic:11265”]
ls -al /usr/share/X11/xorg.conf.d

/total 24
drwxr-xr-x 2 root root 4096 Nov 4 00:11 .
drwxr-xr-x 1 root root 4096 Nov 4 00:12 …
-rw-r–r-- 1 root root 1350 Nov 11 2016 10-quirks.conf
-rw-r–r-- 1 root root 788 Sep 30 2016 40-libinput.conf
-rw-r–r-- 1 root root 2747 Oct 28 2016 70-wacom.conf
-rw-r–r-- 1 root root 607 Dec 7 2016 99-fbturbo.conf

ls -al /etc/X11/xorg.conf.d
/total 12
drwxr-xr-x 2 root root 4096 Nov 5 14:32 .
drwxr-xr-x 1 root root 4096 Nov 4 00:18 …
-rw-r–r-- 1 root root 316 Nov 5 14:32 95-touch_display-plugin.conf

Looks normal.

Please execute

cat /dev/input/event*

and touch the screen. Do you see cryptic signs then in the terminal window?

You can exit the running “cat” command with Ctrl+c.

nothing happens

Hm, according to this in a thread that covers the same screen as yours nothing more should need to be adjusted than “/boot/userconfig.txt”.

BTW did you add the line break in “/boot/userconfig.txt” I mentioned above and reboot? If not, try that first. If touch still should not work maybe you need to install xserver-xorg-input-evdev

sudo apt-get install xserver-xorg-input-evdev

After that execute

sudo cp /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf

and reboot.

gvolt, thanks. Touch is working fine now. My son is enjoying Volumio in his toolshed

Ben

1 Like

:+1: Have fun!

@bluswier Did you have to install “xserver-xorg-input-evdev”?

yes i did

Touch still is not working I assume. (?)

Are you referring to the line break in “/boot/userconfig.txt” or installing "xserver-xorg-input-evdev”?

Do you have any other hardware connected that possibly uses the Raspberry’s pin 22 (GPIO25)? This might interfere with the touch panel which also uses this pin to detect / signal touches (penirq=25).

no not unless innomaker dac uses the pin 22.

Doesn’t seem like that.

Is your display an original Waveshare or a clone?