Miuzei 4 inch IPS Touch Screen LCD Display

Thanks for the great procedure. I tried the procedure for 3.5" LCD but could never get it to work. I have the same Miuzei display and the installation procedure works the first time I tried on my RPi 4. The problem I have is with the touch. When I touch the screen with the pen, the display does not respond to the touch. I tried to enable the show mouse cursor setting in the Touch Screen plugin. There is no cursor showing on the screen. Any help to find out the problem will be much appreciated.

1 Like

So you also have the Miuzei 4 inch LCD?

Please post the results of

cat /boot/config.txt

cat /boot/userconfig.txt

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

ls -al /dev/input

cat /var/log/Xorg.0.log

P.S. What is your Volumio version and what version of the Touch Display plugin are you using?

Edit: Corrected typo in “cat /var/log/Xorg.0.log”

Yes, it is a Miuzei 4 inch IPS Touch Screen LCD Display.
The Volumio version is 3.179-2021-12-20pi.img
The Touch Display plugin is 3.3.1

The debug info:
volumio@jukebox:~$ 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
force_eeprom_read=0

include userconfig.txt

volumio@jukebox:~$ cat /boot/userconfig.txt

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

dtparam=i2c_arm=on
dtparam=spi=on
config_hdmi_boost=7
hdmi_group=2
hdmi_mode=87
hdmi_drive=2
hdmi_cvt 480 800 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

Touch Display rotation setting below: do not alter

display_lcd_rotate=3
display_hdmi_rotate=3

volumio@jukebox:~$ ls -al /usr/share/X11/xorg.conf.d
total 13
drwxr-xr-x 2 root root 1024 Jan 19 03:10 .
drwxr-xr-x 1 root root 1024 Jan 19 03:10 …
-rw-r–r-- 1 root root 92 Feb 7 2019 10-amdgpu.conf
-rw-r–r-- 1 root root 1350 Jan 4 10:05 10-quirks.conf
-rw-r–r-- 1 root root 92 Apr 6 2019 10-radeon.conf
-rw-r–r-- 1 root root 1429 Mar 31 2019 40-libinput.conf
-rw-r–r-- 1 root root 2747 Jun 26 2017 70-wacom.conf

volumio@jukebox:~$ ls -al /dev/input*
total 0
drwxr-xr-x 3 root root 120 Jan 19 17:02 .
drwxr-xr-x 16 root root 3760 Jan 19 17:02 …
drwxr-xr-x 2 root root 60 Jan 19 17:02 by-path
crw-rw---- 1 root input 13, 64 Jan 19 17:02 event0
crw-rw---- 1 root input 13, 63 Jan 19 17:02 mice
crw-rw---- 1 root input 13, 32 Jan 19 17:02 mouse0cat

volumio@jukebox:~$ volumio@jukebox:~$ cat /var/log/xorg.0.log
r/log/xorg.0.log: No such file or directory-bash: volumio@jukebox:~$: command not found

Thank you for the information. Unfortunately I had a typo in the command to get the log from Xorg.

Please post the result of

cat /var/log/Xorg.0.log

For future readers I have corrected my post above accordingly.

The log contains many links and I am not able to paste the log or upload it here.

It should be possible to copy the text of the log and paste it here as others have done this already (e.g. here). :wink:

After pasting the text into the box where you create posts the text should still be selected / highlighted. At this point format the text with code tags (using the “</>” symbol). If necessary post screenshots.

`

volumio@jukebox:~$ cat /var/log/Xorg.0.log
[    41.077]
X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
[    41.077] Build Operating System: Linux 5.4.0-72-generic armv8l Raspbian
[    41.078] Current Operating System: Linux jukebox 5.4.83-v7l+ #1379 SMP Mon Dec 14 13:11:54 GMT 2020 armv7l
[    41.078] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=800 bcm2708_fb.fbheight=480 bcm2708_fb.fbswap=1 smsc95xx.macaddr=DC:A6:32:01:F1:02 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  splash plymouth.ignore-serial-consoles dwc_otg.fiq_enable=1 dwc_otg.fiq_fsm_enable=1 dwc_otg.fiq_fsm_mask=0xF dwc_otg.nak_holdoff=1 quiet console=ttyS0,115200 console=tty1 imgpart=/dev/mmcblk0p2 imgfile=/volumio_current.sqsh rootwait bootdelay=5 elevator=noop logo.nologo vt.global_cursor_default=0 net.ifnames=0 snd-bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 loglevel=0
[    41.079] Build Date: 04 January 2022  10:05:34AM
[    41.079] xorg-server 2:1.20.4-1+rpt4+deb10u4 (https://www.debian.org/support)
[    41.080] Current version of pixman: 0.36.0
[    41.080]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[    41.080] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    41.082] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Jan 19 17:17:27 2022
[    41.090] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    41.090] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    41.095] (==) No Layout section.  Using the first Screen section.
[    41.095] (==) No screen section available. Using defaults.
[    41.095] (**) |-->Screen "Default Screen Section" (0)
[    41.095] (**) |   |-->Monitor "<default monitor>"
[    41.100] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[    41.100] (==) Automatically adding devices
[    41.100] (==) Automatically enabling devices
[    41.100] (==) Automatically adding GPU devices
[    41.104] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    41.105] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    41.105]    Entry deleted from font path.
[    41.107] (==) FontPath set to:
        /usr/share/fonts/X11/misc,
        /usr/share/fonts/X11/100dpi/:unscaled,
        /usr/share/fonts/X11/75dpi/:unscaled,
        /usr/share/fonts/X11/Type1,
        /usr/share/fonts/X11/100dpi,
        /usr/share/fonts/X11/75dpi,
        built-ins
[    41.107] (==) ModulePath set to "/usr/lib/xorg/modules"
[    41.107] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[    41.107] (II) Loader magic: 0x1fdf80
[    41.107] (II) Module ABI versions:
[    41.107]    X.Org ANSI C Emulation: 0.4
[    41.107]    X.Org Video Driver: 24.0
[    41.107]    X.Org XInput driver : 24.1
[    41.107]    X.Org Server Extension : 10.0
[    41.108] (--) using VT number 2

[    41.108] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    41.109] (II) no primary bus or device found
[    41.109] (II) LoadModule: "glx"
[    41.112] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    41.159] (II) Module glx: vendor="X.Org Foundation"
[    41.159]    compiled for 1.20.4, module version = 1.0.0
[    41.159]    ABI class: X.Org Server Extension, version 10.0
[    41.159] (==) Matched modesetting as autoconfigured driver 0
[    41.159] (==) Matched fbdev as autoconfigured driver 1
[    41.159] (==) Assigned the driver to the xf86ConfigLayout
[    41.159] (II) LoadModule: "modesetting"
[    41.160] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    41.165] (II) Module modesetting: vendor="X.Org Foundation"
[    41.165]    compiled for 1.20.4, module version = 1.20.4
[    41.165]    Module class: X.Org Video Driver
[    41.165]    ABI class: X.Org Video Driver, version 24.0
[    41.165] (II) LoadModule: "fbdev"
[    41.165] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[    41.167] (II) Module fbdev: vendor="X.Org Foundation"
[    41.167]    compiled for 1.20.3, module version = 0.5.0
[    41.167]    Module class: X.Org Video Driver
[    41.167]    ABI class: X.Org Video Driver, version 24.0
[    41.167] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    41.167] (II) FBDEV: driver for framebuffer: fbdev
[    41.170] (WW) Falling back to old probe method for modesetting
[    41.170] (EE) open /dev/dri/card0: No such file or directory
[    41.170] (WW) Falling back to old probe method for fbdev
[    41.170] (II) Loading sub module "fbdevhw"
[    41.170] (II) LoadModule: "fbdevhw"
[    41.170] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[    41.173] (II) Module fbdevhw: vendor="X.Org Foundation"
[    41.173]    compiled for 1.20.4, module version = 0.0.2
[    41.173]    ABI class: X.Org Video Driver, version 24.0
[    41.173] (II) FBDEV(0): using default device
[    41.173] (II) FBDEV(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
[    41.173] (==) FBDEV(0): Depth 24, (==) framebuffer bpp 32
[    41.173] (==) FBDEV(0): RGB weight 888
[    41.173] (==) FBDEV(0): Default visual is TrueColor
[    41.173] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[    41.173] (II) FBDEV(0): hardware: BCM2708 FB (video memory: 1500kB)
[    41.173] (DB) xf86MergeOutputClassOptions unsupported bus type 0
[    41.173] (II) FBDEV(0): checking modes against framebuffer device...
[    41.173] (II) FBDEV(0): checking modes against monitor...
[    41.173] (II) FBDEV(0): Virtual size is 800x480 (pitch 800)
[    41.173] (**) FBDEV(0):  Built-in mode "current"
[    41.173] (==) FBDEV(0): DPI set to (96, 96)
[    41.173] (II) Loading sub module "fb"
[    41.173] (II) LoadModule: "fb"
[    41.173] (II) Loading /usr/lib/xorg/modules/libfb.so
[    41.178] (II) Module fb: vendor="X.Org Foundation"
[    41.178]    compiled for 1.20.4, module version = 1.0.0
[    41.178]    ABI class: X.Org ANSI C Emulation, version 0.4
[    41.178] (**) FBDEV(0): using shadow framebuffer
[    41.178] (II) Loading sub module "shadow"
[    41.178] (II) LoadModule: "shadow"
[    41.178] (II) Loading /usr/lib/xorg/modules/libshadow.so
[    41.181] (II) Module shadow: vendor="X.Org Foundation"
[    41.181]    compiled for 1.20.4, module version = 1.1.0
[    41.181]    ABI class: X.Org ANSI C Emulation, version 0.4
[    41.182] (II) UnloadModule: "modesetting"
[    41.182] (II) Unloading modesetting
[    41.201] (==) FBDEV(0): Backing store enabled
[    41.205] (==) FBDEV(0): DPMS enabled
[    41.206] (II) Initializing extension Generic Event Extension
[    41.207] (II) Initializing extension SHAPE
[    41.208] (II) Initializing extension MIT-SHM
[    41.208] (II) Initializing extension XInputExtension
[    41.212] (II) Initializing extension XTEST
[    41.212] (II) Initializing extension BIG-REQUESTS
[    41.213] (II) Initializing extension SYNC
[    41.214] (II) Initializing extension XKEYBOARD
[    41.214] (II) Initializing extension XC-MISC
[    41.215] (II) Initializing extension SECURITY
[    41.216] (II) Initializing extension XFIXES
[    41.216] (II) Initializing extension RENDER
[    41.217] (II) Initializing extension RANDR
[    41.218] (II) Initializing extension COMPOSITE
[    41.220] (II) Initializing extension DAMAGE
[    41.221] (II) Initializing extension MIT-SCREEN-SAVER
[    41.222] (II) Initializing extension DOUBLE-BUFFER
[    41.222] (II) Initializing extension RECORD
[    41.223] (II) Initializing extension DPMS
[    41.223] (II) Initializing extension Present
[    41.224] (II) Initializing extension DRI3
[    41.224] (II) Initializing extension X-Resource
[    41.225] (II) Initializing extension XVideo
[    41.225] (II) Initializing extension XVideo-MotionCompensation
[    41.225] (II) Initializing extension SELinux
[    41.225] (II) SELinux: Disabled on system
[    41.225] (II) Initializing extension GLX
[    41.226] (II) AIGLX: Screen 0 is not DRI2 capable
[    42.154] (II) IGLX: Loaded and initialized swrast
[    42.154] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[    42.154] (II) Initializing extension XFree86-VidModeExtension
[    42.154] (II) Initializing extension XFree86-DGA
[    42.155] (II) Initializing extension XFree86-DRI
[    42.157] (II) Initializing extension DRI2
[    42.373] (II) config/udev: Adding input device ADS7846 Touchscreen (/dev/input/event0)
[    42.373] (**) ADS7846 Touchscreen: Applying InputClass "libinput touchscreen catchall"
[    42.373] (**) ADS7846 Touchscreen: Applying InputClass "Touch rotation"
[    42.373] (II) LoadModule: "libinput"
[    42.374] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[    42.397] (II) Module libinput: vendor="X.Org Foundation"
[    42.397]    compiled for 1.20.3, module version = 0.28.2
[    42.397]    Module class: X.Org XInput Driver
[    42.397]    ABI class: X.Org XInput driver, version 24.1
[    42.397] (II) Using input driver 'libinput' for 'ADS7846 Touchscreen'
[    42.397] (**) ADS7846 Touchscreen: always reports core events
[    42.397] (**) Option "Device" "/dev/input/event0"
[    42.397] (**) Option "_source" "server/udev"
[    42.427] (II) event0  - ADS7846 Touchscreen: is tagged by udev as: Touchscreen
[    42.428] (II) event0  - ADS7846 Touchscreen: device is a touch device
[    42.429] (II) event0  - ADS7846 Touchscreen: device removed
[    42.490] (**) Option "config_info" "udev:/sys/devices/platform/soc/fe204000.spi/spi_master/spi0/spi0.1/input/input0/event0"
[    42.490] (II) XINPUT: Adding extended input device "ADS7846 Touchscreen" (type: TOUCHSCREEN, id 6)
[    42.491] (**) Option "AccelerationScheme" "none"
[    42.491] (**) ADS7846 Touchscreen: (accel) selected scheme none/0
[    42.491] (**) ADS7846 Touchscreen: (accel) acceleration factor: 2.000
[    42.491] (**) ADS7846 Touchscreen: (accel) acceleration threshold: 4
[    42.496] (II) event0  - ADS7846 Touchscreen: is tagged by udev as: Touchscreen
[    42.497] (II) event0  - ADS7846 Touchscreen: device is a touch device
[    42.499] (II) config/udev: Adding input device ADS7846 Touchscreen (/dev/input/mouse0)
[    42.499] (II) No input driver specified, ignoring this device.
[    42.499] (II) This device may have been added with another device file.
volumio@jukebox:~$
``
type or paste code here

Thank you for your instruction.

Please check if running

cat /dev/input/event*

and touching the screen shows some reaction (weird characters). You can exit this test by hitting Ctrl+c

Also please post the output of

udevadm info -q all -n /dev/input/event*

Nothing shows on the screen after typing ca /dev/input/event* from a ssh terminal.
output from udevadm:
volumio@jukebox:~$ udevadm info -q all -n /dev/input/event*
P: /devices/platform/soc/fe204000.spi/spi_master/spi0/spi0.1/input/input0/event0
N: input/event0
L: 0
S: input/by-path/platform-fe204000.spi-event
E: DEVPATH=/devices/platform/soc/fe204000.spi/spi_master/spi0/spi0.1/input/input0/event0
E: DEVNAME=/dev/input/event0
E: MAJOR=13
E: MINOR=64
E: SUBSYSTEM=input
E: USEC_INITIALIZED=15782813
E: ID_INPUT=1
E: ID_INPUT_TOUCHSCREEN=1
E: ID_PATH=platform-fe204000.spi
E: ID_PATH_TAG=platform-fe204000_spi
E: LIBINPUT_DEVICE_GROUP=0/0/0:spi0
E: DEVLINKS=/dev/input/by-path/platform-fe204000.spi-event

The other thing that I found strange is that I could never get another SD card to work. After installing the Touch Screen plugin and apply the userconfig.txt change, the screen always display “not support”. Volumio is actually running on these SD cards, the Web UI works fine with these cards.

1 Like

You could try if the touchscreen works using evdev instead of libinput: Install xserver-xorg-input-evdev running

sudo apt-get -y 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.

I have no imagination how and where that message would appear. Could you post a picture?

This is the display on the screen.

Does this appear when you enable the Touch Display plugin?

How does the screen look when the plugin is disabled?

What HDMI output of the Pi is the display connected to?

I will try that. I saw this message when I booted up the unit with the touch screen problem. Hope this shed some light on why the touch does not work.

1 Like

Did you change the Volumio password?

Yes. It won’t let me change back to volumio.

Don’t do that! For more see Change Volumio account password?

I suggest you start from scratch…

I changed the password back to volumio and the touch is working now. However, I am still puzzled why I could not get another SD cards to work using the same procedure. Strange! Anyway, you have been very helpful…Really appreciate you spending the time helping me.