MHS-3.5inch Display! Touch Screen does not work

@Ezaul

In “/boot/userconfig.txt” try removing

dtoverlay=ads7846

so you only use

dtoverlay=mhs35:rotate=90

Don’t know if it matters, but maybe you also have to move dtoverlay=mhs35:rotate=90 after
dtparam=spi=on.

Good Night @gvolt

Unfortunately it doesn’t work!
to get rid of conscience I took an old screen that had 3.2inch plugged in Raspberry commented the lines

I added
dtoverlay=tft9341:rotate=90

I added
hdmi_cvt=320 240 60 1 0 0 0

I changed 99-calibration.conf para 3.2inch

/etc/X11/xorg.conf.d/99-calibration.conf
    Section "InputClass"
            Identifier      "calibration"
            MatchProduct    "ADS7846 Touchscreen"
            Option  "Calibration"   "115 3700 3865 155"
            Option  "SwapAxes"      "1"
    EndSection

userconfig.txt

##dtoverlay=mhs35:rotate=90
dtoverlay=tft9341:rotate=90
hdmi_drive=2
hdmi_group=2
hdmi_mode=87
hdmi_cvt=320 240 60 1 0 0 0
##hdmi_cvt=480 320 60 6 0 0 0

#### Touch Display rotation setting below: do not alter ####
display_lcd_rotate=1
display_hdmi_rotate=1

So I restarted with the old 3.2inch screen that I had kept in a shovel and it worked perfectly so I contacted the supplier of the MHS 3.5inch screen, he will send another one because I have tried everything I can think of! I honestly don’t know what else to do!

1 Like

Good luck! :smiley:

1 Like

Hi, does it work yet? I also have an MHS-3.5 and don’t get the touchscreen to work…

i would say try the settings above…

Some more information required: What is your Pi model and the Volumio version?

Are you on a fresh Volumio system or did you already take some steps to get the MHS-3.5 working? From your post I can only assume that you probably have installed the Touch Display plugin and now the display is showing Volumio’s UI but touch is not working. Please describe in detail what you did to get the display working. If you should have experienced error messages: What did they say?

2 Likes

I tried that off course… It’s just the touchscreen that doesn’t work, screen works
I did these steps and 100 of variations of it.

install the TouchScreen plugin

git clone GitHub - goodtft/LCD-show: 2.4" 2.8"3.2" 3.5" 5.0" 7.0" TFT LCD driver for the Raspberry PI 3B+/A/A+/B/B+/PI2/ PI3/ZERO/ZERO W
cd LCD-show/
sudo mkdir /etc/X11/xorg.conf.d
cd usr/
sudo cp mhs35-overlay.dtb /boot/overlays/
sudo cp mhs35-overlay.dtb /boot/overlays/mhs35.dtbo
sudo cp -rf 99-calibration.conf-mhs35-90 /etc/X11/xorg.conf.d/99-calibration.conf
sudo mkdir -p /usr/share/X11/xorg.conf.d/
sudo cp -rf ./99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf

sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
=> add rule ‘Driver “evdev”’ before EndSection

sudo nano /boot/config.txt => or user config
add dtoverlay=mhs35:rotate=270

sudo apt update
sudo apt install lightdm
sudo apt install xserver-xorg-input-evdev
sudo nano /etc/lightdm/lightdm.conf
=>autologin-user=volumio

reboot

best is to wait till @gvolt is here he knows a lot of those settings but some of it is not set yet …
morning gvolt … but light dm is not needed … evdev is not set yet.

Please post the results of

cat /boot/config.txt

cat /boot/userconfig.txt

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

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

and

ls -al /dev/input

P.S. What is the purpose of lightdm? It is not needed to have kiosk mode if you use the Touch Display plugin and should not be installed IMHO.

Hi, I didn’t got an error message. I’m using a RPi4 2GB with version volumio-2.882-2021-04-24-pi

The version volumio-2.773-2020-05-05-pi didn’t work with my RPi4 2GB, something about the bootloader.

I also did these steps with an RPi1B+ (I think) and it didn’t work for now.

If someone can tell me which steps they actually took to get it working, would be nice. Only with an MHS3.5inch screen!

Thx

1 Like

cat /boot/config.txt

initramfs volumio.initrd

gpu_mem=32

max_usb_current=1

dtparam=audio=on

audio_pwm_mode=2

dtparam=i2c_arm=on

disable_splash=1

hdmi_force_hotplug=1

include userconfig.txt

cat /boot/userconfig.txt
cat /boot/userconfig.txt

Add your custom config.txt options to this file, which will be preserved during updates

dtparam=spi=on

dtoverlay=mhs35:rotate=90

hdmi_drive=2

hdmi_group=2

hdmi_mode=87

hdmi_cvt 480 320 60 6 0 0 0

ls -al /dev/input

total 0

drwxr-xr-x 3 root root 120 Jul 8 21:57 .

drwxr-xr-x 15 root root 3860 Jul 8 21:57

drwxr-xr-x 2 root root 60 Jul 8 21:57 by-path

crw-rw---- 1 root input 13, 64 Jul 8 21:57 event0

crw-rw---- 1 root input 13, 63 Jul 8 21:57 mice

crw-rw---- 1 root input 13, 32 Jul 8 21:57 mouse0

Yes, I didn’t use LightDM at first and you are right, it isn’t necessary, but others got it working with that included… So I tried it. But I will remove it again.

1 Like

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

total 36

drwxr-xr-x 2 root root 4096 Jul 8 21:04 .

drwxr-xr-x 1 root root 4096 Jul 8 21:45

-rw-r–r-- 1 root root 1099 Sep 24 2016 10-evdev.conf

-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 605 Jul 8 21:41 99-fbturbo.conf

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

total 24

drwxr-xr-x 2 root root 4096 Jul 9 06:43 .

drwxr-xr-x 1 root root 4096 Jul 8 21:47

-rw-r–r-- 1 root root 316 Jul 9 06:43 95-touch_display-plugin.conf

-rwxr-xr-x 1 root root 227 Jul 8 21:43 99-calibration.conf

As a next step try executing

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

and reboot.

1 Like

still no improvement

Is the output of

ls -al /dev/input

the same?

1 Like

looks like

ls -al /dev/input

total 0

drwxr-xr-x 3 root root 120 Jul 9 06:55 .

drwxr-xr-x 15 root root 3800 Jul 9 06:55

drwxr-xr-x 2 root root 60 Jul 9 06:55 by-path

crw-rw---- 1 root input 13, 64 Jul 9 06:55 event0

crw-rw---- 1 root input 13, 63 Jul 9 06:55 mice

crw-rw---- 1 root input 13, 32 Jul 9 06:55 mouse0

If you run

cat /dev/input/event0

and then touch the screen, do you get any ouptut?

no events what so ever… it doesn’t detect it, so still the driver isn’t working

1 Like

could you tell me exactly in what order I need to add which rules and if I should try another version of volumio to make it work?
I can do a clean install again if you want

1.install volumio
2. install touchscreen plugin
3. enable ssh

  1. all the cli commands
    git clone GitHub - goodtft/LCD-show: 2.4" 2.8"3.2" 3.5" 5.0" 7.0" TFT LCD driver for the Raspberry PI 3B+/A/A+/B/B+/PI2/ PI3/ZERO/ZERO W
    cd LCD-show/
    sudo mkdir /etc/X11/xorg.conf.d
    cd usr/
    sudo cp mhs35-overlay.dtb /boot/overlays/
    sudo cp mhs35-overlay.dtb /boot/overlays/mhs35.dtbo
    sudo cp -rf 99-calibration.conf-mhs35-90 /etc/X11/xorg.conf.d/99-calibration.conf
    sudo mkdir -p /usr/share/X11/xorg.conf.d/
    sudo cp -rf ./99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf

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

sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
=>Driver “evdev”

sudo nano /boot/userconfig.txt

Add your custom config.txt options to this file, which will be preserved during updates

dtparam=spi=on
dtoverlay=mhs35:rotate=90
hdmi_drive=2
hdmi_group=2
hdmi_mode=87
hdmi_cvt 480 320 60 6 0 0 0

sudo apt update
sudo apt install xserver-xorg-input-evdev
sudo reboot

1 Like

Does all of this need to be in this file? /etc/X11/xorg.conf.d/99-calibration.conf

Section “InputClass”
Identifier “calibration”
MatchProduct “ADS7846 Touchscreen”
Option “Calibration” “3936 227 268 3880”
Option “SwapAxes” “1”
Option “EmulateThirdButton” “1”
Option “EmulateThirdButtonTimeout” “1000”
Option “EmulateThirdButtonMoveThreshold” “300”
Driver “evdev”
EndSection