Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: Struggling with 5 inch HDMI touch screen
#1
I've been struggling now for a week with my 5 inch touch screen with HDMI. 
I'm using it with the RPi Zero W2

It is the touch screen as described here:
http://www.lcdwiki.com/res/MPI5001/EN/5i...)-V1.1.pdf

Observed behavior with 8.x.x:
Boot: goes to super high resolution. Text is small and unreadable.
When MoOde is active: display is switching on/off, sometimes completely white
When changing config.txt as described above: Boot is in 800x480, but display switches to higher resolution for MoOde GUI. Touch screen and RPi become very slow. 
When running the MPI5001-show script: RPi becomes totally unusable, MoOde doesn't seem to start and the RPi seems to enter a rebooting loop.
I've also tried a whole lot of stuff I found searching for the issue, but to no avail.

I thought it was maybe my charger, or the RPi/display being dodgy, but when I booted with just Vanilla RPi Bookworm (no changes to config.txt, or anything else), everything is fine:
Boot starts in 800x480
Desktop starts and works responsively in 800x480.

So, I was happy to see that MoOde was released this week with Bookworm. However, it still doesn't work for me out of the box:
Boot: starts at very high resolution, than changes to 800x480
SSH and browser work great.
Enabling the display makes the RPi hang -> SSH and browser can't acess the RPi anymore. Rebooting results in same behavior.

I haven't tried changing the config.txt yet or running the MPI5001 script yet on MoOde 9.0.0, but I'm a bit pessimistic it will help. 
Is there maybe anyone else that has MoOde running with this exact display, or has any clues how I best can start solving the issue?
Reply
#2
Hi Wilhelm,

i cannot say i know exactly what your problem is, but i had problems with displays too,
i would try to add these three lines to the config.txt, that worked for me..
I would first try with Moode 8, i stick to Moode 8 too.

hdmi_group=2
hdmi_mode=87
hdmi_cvt=800 480 60 6 0 0 0

please make sure there are no other "hdmi_mode" or "hdmi_Group" lines in the config.txt

Good luck!
Greets, Tom
Reply
#3
Thanks a lot for the suggestions. I have tried them and reverted to MoOde 8, but unfortunately still don't have a notable improvement.
The boot starts with a resolution of 800x480, but then when MoOde starts it becomes slow, first starts a white screen for about 10 seconds, and then very slowly starts to build up the screen with a higher resolution than 800x480. The screen basically functions in this mode, but is very slow. 
When I for example select an internet radio station and press play on the touchscreen, I see it starting on the browser on my laptop, but the screen doesn't react for a minute or so. Then suddenly it shows the internet radio playing, but is like a minute behind. Interestingly it slowly catches up after 5 minutes or so...

Any other suggestions how I can debug this? 
I'm particularly interested to know what overwrites the resolution. When I use the normal Bookworm Raspberry Pi OS distribution the resolution stays 800x480, and it is fast and responsive.
Reply
#4
The resolution is detected in the X11 startup script by the fbset command
/home/pi/.xinitrc

Example:
pi@kef:~ $ fbset -s | awk '$1 == "geometry" { print $2","$3 }'
1366,768
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
Thanks for the pointers, Tim.

I was wrong, the resolution for MoOde is just 800x480, so this is not the problem.
Still, the performance with the suggested additions to the config.txt is pretty poor. Touch delay is about 3 seconds. Screen delay is between 5 and 30 seconds.
For Vanilla RPi OS Bookwork, without any changes to config.txt and not installing any drivers as is suggested on lcdwiki.com, the performance is great.
Reply
#6
(05-29-2024, 08:44 PM)WilhelmT Wrote: Thanks for the pointers, Tim.

I was wrong, the resolution for MoOde is just 800x480, so this is not the problem.
Still, the performance with the suggested additions to the config.txt is pretty poor. Touch delay is about 3 seconds. Screen delay is between 5 and 30 seconds.
For Vanilla RPi OS Bookwork, without any changes to config.txt and not installing any drivers as is suggested on lcdwiki.com, the performance is great.

Post the config.txt from Bookworm in case someone notices something.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#7
Sorry, it has been a while.
Just tried with the last MoOde player but still have the same behavior.

With the last Bookworm, everything runs smoothly out of the box. The config.txt looks the following:

dtparam=audio=on
camera_auto_detect=1
display_auto_detect=1
auto_initramfs=1
dtoverlay=vc4-kms-v3d
max_framebuffers=2
disable_fw_kms_setup=1
arm_64bit=1
disable_overscan=1
arm_boost=1
Reply
#8
Post the complete output from the commands below

Code:
cat /boot/firmware/config.txt

cat /boot/firmware/cmdline.txt

moodeutl -l
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#9
Code:
#########################################
# This file is managed by moOde
#########################################

# Device filters
[cm4]
otg_mode=1
[pi4]
hdmi_force_hotplug:0=1
hdmi_force_hotplug:1=1
hdmi_enable_4kp60=0
[all]
dtoverlay=vc4-kms-v3d
max_framebuffers=2
display_auto_detect=1
disable_fw_kms_setup=1
arm_64bit=1

# General settings
arm_boost=0
disable_splash=1
disable_overscan=1
hdmi_drive=2
hdmi_blanking=1
hdmi_force_edid_audio=1
hdmi_force_hotplug=1
hdmi_group=0
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=audio=on

# Do not alter this section
# Integrated adapters
#dtoverlay=disable-bt
#dtoverlay=disable-wifi
# Audio overlays
#dtoverlay=none
#dtoverlay=force_eeprom_read=0
# PCI Express
#dtparam=pciex1
#dtparam=pciex1_gen=3
# Pi Touch
dtoverlay=rpi-backlight
#dtoverlay=vc4-kms-dsi-7inch,invx,invy
Code:
moode@moode:~ $ cat /boot/firmware/cmdline.txt
console=serial0,115200 console=tty1 root=PARTUUID=8524208e-02 rootfstype=ext4 fsck.repair=yes rootwait cfg80211.ieee80211_regdom=GB

Code:
moode@moode:~ $ moodeutl -l
20240818 162454 worker: --
20240818 162454 worker: -- Start moOde 9 series
20240818 162454 worker: --
20240818 162454 worker: Successfully daemonized
20240818 162454 worker: Wait for Linux startup
20240818 162500 worker: Linux startup complete
20240818 162500 worker: Boot config is ok
20240818 162501 worker: Session loaded
20240818 162514 worker: Package locks applied
20240818 162530 worker: File check complete
20240818 162530 worker: Debug logging off
20240818 162530 worker: --
20240818 162530 worker: -- System
20240818 162530 worker: --
20240818 162534 worker: Host name:     moode
20240818 162534 worker: RPi model:     Pi-Zero 2 W 1.0 512MB
20240818 162535 worker: moOde release: 9.0.6 2024-08-03
20240818 162535 worker: RaspiOS:       12.6 Bookworm 64-bit
20240818 162535 worker: Linux Kernel:  6.6.31 64-bit
20240818 162535 worker: MPD version:   0.23.14
20240818 162535 worker: User id:       moode
20240818 162535 worker: Home folder:   /home/moode
20240818 162535 worker: Time zone:     Europe/Zurich
20240818 162535 worker: Kbd layout:    us
20240818 162535 worker: HDMI ports(s): on
20240818 162535 worker: HDMI-CEC:      off
20240818 162535 worker: Sys LED0:      on
20240818 162535 worker: Sys LED1:      sysclass does not exist
20240818 162535 worker: Reduce power:  n/a
20240818 162535 worker: CPU governor:  ondemand
20240818 162535 worker: Integ audio:   vc4-kms-v3d
20240818 162535 worker: --
20240818 162535 worker: -- Network
20240818 162535 worker: --
20240818 162535 worker: Eth0
20240818 162535 worker: Ethernet: adapter does not exist
20240818 162535 worker: Wlan0
20240818 162535 worker: Wireless: adapter exists
20240818 162535 worker: Wireless: country CH
20240818 162535 worker: Wireless: SSID    BBBox
20240818 162535 worker: Wireless: other   None
20240818 162535 worker: Wireless: timeout up to 90 secs
20240818 162535 worker: Wireless: connect to BBBox
20240818 162535 worker: Wireless: method  dhcp
20240818 162535 worker: Wireless: address 192.168.178.68
20240818 162536 worker: Wireless: netmask 255.255.255.0
20240818 162536 worker: Wireless: gateway 192.168.178.1
20240818 162536 worker: Wireless: pri DNS 192.168.178.1
20240818 162536 worker: Wireless: domain  fritz.box
20240818 162536 worker: --
20240818 162536 worker: -- File sharing
20240818 162536 worker: --
20240818 162536 worker: SMB file sharing:  off
20240818 162536 worker: NFS file sharing:  off
20240818 162536 worker: DLNA file sharing: off
20240818 162536 worker: --
20240818 162536 worker: -- Special configs
20240818 162536 worker: --
20240818 162536 worker: Plexamp:          not installed
20240818 162536 worker: RoonBridge:       not installed
20240818 162536 worker: Allo Piano 2.1:   not detected
20240818 162536 worker: Allo Boss 2:      not detected, OLED script ok
20240818 162536 worker: IQaudIO AMP*:     not detected
20240818 162536 worker: --
20240818 162536 worker: -- ALSA debug
20240818 162536 worker: --
20240818 162536 worker: Cards:  0:vc4hdmi         1:empty           2:empty           3:empty          
20240818 162536 worker:         4:empty           5:empty           6:empty           7:empty          
20240818 162536 worker: Mixers: 0:none            1:none            2:none            3:none            
20240818 162536 worker:         4:none            5:none            6:none            7:none            
20240818 162536 worker: --
20240818 162536 worker: -- Audio configuration
20240818 162536 worker: --
20240818 162536 worker: Audio device:  0:Pi HDMI 1
20240818 162536 worker: ALSA card:     has not been reassigned
20240818 162538 worker: MPD config:    updated (iec958 device)
20240818 162539 worker: ALSA output:   HDMI
20240818 162539 worker: ALSA mode:     IEC958 (iec958)
20240818 162539 worker: ALSA mixer     PCM
20240818 162542 worker: ALSA volume:   controller not detected
20240818 162542 worker: ALSA maxvol:   100%
20240818 162542 worker: ALSA loopback: off
20240818 162542 worker: MPD mixer      Hardware
20240818 162542 worker: Audio formats: IEC958_SUBFRAME_LE
20240818 162542 worker: CamillaDSP:    off
20240818 162542 worker: CDSP volume:   0dB
20240818 162542 worker: CDSP volrange: 60dB
20240818 162542 worker: --
20240818 162542 worker: -- MPD startup
20240818 162542 worker: --
20240818 162542 worker: MPD service:        started
20240818 162542 worker: MPD port 6600:      accepting connections
20240818 162543 worker: MPD ALSA Default:   on
20240818 162543 worker: MPD ALSA Bluetooth: off
20240818 162543 worker: MPD HTTP Server:    off
20240818 162543 worker: MPD volume:         0
20240818 162543 worker: Saved MPD vol:      -1
20240818 162543 worker: Saved SRC vol:      0
20240818 162543 worker: MPD crossfade:      off
20240818 162543 worker: MPD ignore CUE:     no
20240818 162543 worker: MPD first boot:     SDCARD scanned
20240818 162544 worker: MPD first boot:     default playlist loaded
20240818 162544 worker: MPD CDSP volsync:   off
20240818 162544 worker: --
20240818 162544 worker: -- Music sources
20240818 162544 worker: --
20240818 162544 worker: USB drives:     none
20240818 162544 worker: NVMe drives:    none
20240818 162544 worker: NAS sources:    none
20240818 162544 worker: --
20240818 162544 worker: -- Feature availability
20240818 162544 worker: --
20240818 162544 worker: Input select:    available, Source: MPD, Output: Pi HDMI 1
20240818 162544 worker: Bluetooth:       available, PIN: None, ALSA/CDSP maxvol: 100%/0dB, ALSA outmode: Standard
20240818 162544 worker: AirPlay:         available
20240818 162544 worker: Spotify Connect: available
20240818 162544 worker: Squeezelite:     available
20240818 162544 worker: UPnP client:     available
20240818 162544 worker: Plexamp:         not installed, ALSA maxvol: 100%
20240818 162544 worker: RoonBridge:      not installed
20240818 162544 worker: Multiroom:       available
20240818 162544 worker: GPIO buttons:    available
20240818 162544 worker: HTTPS mode:      available
20240818 162544 worker: Stream recorder: n/a
20240818 162544 worker: --
20240818 162544 worker: -- Peripherals
20240818 162544 worker: --
20240818 162549 worker: Local display:   on
20240818 162549 worker: HDMI 4K 60Hz:    off
20240818 162549 worker: On-screen kbd:   off
20240818 162549 worker: Rotary encoder:  off
20240818 162549 worker: USB volume knob: off
20240818 162549 worker: LCD updater:     off
20240818 162549 worker: --
20240818 162549 worker: -- Miscellaneous
20240818 162549 worker: --
20240818 162549 worker: Software update:   Automatic check off
20240818 162549 worker: Auto-CoverView:    off
20240818 162549 worker: CoverView timeout: Never
20240818 162549 worker: Auto-shuffle:      off
20240818 162549 worker: Auto-play:         off
20240818 162549 worker: Web SSH server:    off
20240818 162549 worker: Maintenance task:  360 mins
20240818 162549 worker: Current view:      reset to Playback
20240818 162549 worker: Active flags:      all false
20240818 162549 worker: Reset flags:       skipped
20240818 162549 worker: Session check:     ok
20240818 162549 worker: --
20240818 162549 worker: -- Startup complete
20240818 162549 worker: --
20240818 162549 worker: Mount monitor:    started
20240818 162549 worker: Radio monitor:    off
20240818 162549 worker: Watchdog monitor: started
20240818 162549 worker: Responsiveness:   Default
20240818 162549 worker: Ready
20240818 162553 worker: Job touchscn

I also ran a 'fresh' MoOde on a RPi 4 with the same display. Works fine, I only needed to change the audio output from HDMI 0 to 2.
I've also been suspecting my cables to be dodgy, or the RPi Zero W 2 just not being powerful enough to run it, but since the W 2 runs Bookworm relatively well, I guess it is something in the settings.
Thanks.
Reply


Forum Jump: