Thank you for your donation!


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


Instruction Guide 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi
Hi Adrian

i see when i rotate 180 degrees with command
sudo mpd_oled_service_edit -o 1 -b 21 -g 1 -f 20 -c alsa,plughw:Loopback,1 -R

sudo mpd_oled_service_edit -o 1 -b 21 -g 1 -f 20 -c alsa,plughw:Loopback,1 -P s does not work any more

thanks
Reply
Hi Jempie

The options you specify with mpd_oled_service_edit are the options that will be used with mpd_oled. Your new command needs to include both '-R' and '-P s'. It could be
Code:
sudo mpd_oled_service_edit -o 1 -b 21 -g 1 -f 20 -c alsa,plughw:Loopback,1 -R -P s

Adrian.
Reply
Adrian,

wow, thanks......

Jem
Reply
Hi Adrian,

after a will playing it give MPD error Failed to open audio output
RPI 3b / Moode 7.4 / dac Audiophonics 9038

what could it be

thanks
Jem
Reply
Hi Jempie

If it works well for a while and then you see the error it doesn't sound like an mpd_oled misconfiguration. It might be worth asking in the Moode support forum (give as many details as possible about your hardware and the steps that produce the error).

Adrian.
Reply
(10-29-2021, 07:08 AM)adrii Wrote: Hi Jempie

If it works well for a while and then you see the error it doesn't sound like an mpd_oled misconfiguration. It might be worth asking in the Moode support forum (give as many details as possible about your hardware and the steps that produce the error).

Adrian.

... or start all over again by installing a fresh new MoOde build with the latest MoOde version... and test JUST the mods required by the installation of the OLED screen...
Reply
Hi Adrian,

I have after playing hours MPD error, Tim told me to set "The DAC may only work in moOde when ALSA output mode is set to "Direct (hw)"
but I cannot set into Direct(hw) and Loopback on

thanks
Jem
Reply
Hi Adrian,

i have done the following (sudo systemctl stop mpd_oled)
and select output mode Direct (hw)

now i have no MPD errors but also no bars in the display

Jem
Reply
Hi Jem

If you cannot set the ALSA loopback to 'on' then a copy of the audio is not being made. However, mpd_oled/cava needs a copy of the audio to calculate the spectrum bars, and so if there is no copy of the audio then there is no spectrum displayed.

If you use the original Moode ALSA setting (not Direct (hw)), is there a series of actions that reliable produce the ALSA error? I am not sure if you have described when the error occurs, e.g. when you restart the machine, or when you play the first song after a restart, or when you play a certain music file, or when you change music sources to MPD (e.g. from playing spotify to playing a music file)... If you provide a clear description of when the error occurs perhaps somebody will be able to suggest something for you to try or investigate further.

Adrian.
Reply
(10-31-2021, 10:48 AM)adrii Wrote: Hi Jem

If you cannot set the ALSA loopback to 'on' then a copy of the audio is not being made. However, mpd_oled/cava needs a copy of the audio to calculate the spectrum bars, and so if there is no copy of the audio then there is no spectrum displayed.

If you use the original Moode ALSA setting (not Direct (hw)), is there a series of actions that reliable produce the ALSA error? I am not sure if you have described when the error occurs, e.g. when you restart the machine, or when you play the first song after a restart, or when you play a certain music file, or when you change music sources to MPD (e.g. from playing spotify to playing a music file)... If you provide a clear description of when the error occurs perhaps somebody will be able to suggest something for you to try or investigate further.

Adrian.

Adrian,

when playing after a while I get an MPD error that was the reason I aks Tim what to do, he told me 

Yesterday, 01:58 PM
The DAC may only work in moOde when ALSA output mode is set to "Direct (hw)"
Enjoy the Music!
moodeaudio.org | Twitter Feed | Git Repo


Jem


Code:
RaspiOS 10.6 | 5.4.77-v7+ #1371 | armv7l (32-bit)
Hardware: Pi-3B 1.2 1GB

                    ____     __        ____
        __ _  ___  / __ \___/ /__     /_  /
       /  ' \/ _ \/ /_/ / _  / -_)     / /
      /_/_/_/\___/\____/\_,_/\__/     /_/

               moOde audio player
            Release 7.4.1 2021-10-02
              (C) 2014 Tim Curtis


The programs included with moOde are free software; the
exact distribution terms for each program are described
in the individual files in /usr/share/doc/*/copyright.
Moode comes with absolutely no warranties expressed or
implied, or any other guarantees.

pi@moode:~ $ moodeutl -l
20211030 072705 worker: -- Start
20211030 072705 worker: Successfully daemonized
20211030 072706 worker: Integrity check (passed)
20211030 072706 worker: File check (OK)
20211030 072707 worker: Session vacuumed
20211030 072707 worker: Session loaded
20211030 072707 worker: Debug logging (OFF)
20211030 072707 worker: -- Audio debug
20211030 072707 worker: ALSA cards: (0:DAC | 1:empty | 2:empty | 3:empty
20211030 072707 worker: MPD config: (0:Audiophonics ES9028/9038 DAC (Pre 2019) | mixer:(Digital) | card:0)
20211030 072707 worker: ALSA mixer actual (Digital)
20211030 072707 worker: ALSA Digital volume set to (0%)
20211030 072707 worker: -- System
20211030 072710 worker: Host     (moode)
20211030 072710 worker: moOde    (7.4.1 2021-10-02)
20211030 072710 worker: RaspiOS  (10.6)
20211030 072710 worker: Kernel   (5.4.77-v7+ #1371)
20211030 072710 worker: Platform (Pi-3B 1.2 1GB)
20211030 072710 worker: ARM arch (armv7l, 32-bit kernel)
20211030 072710 worker: MPD ver  (0.22.11_p0x3)
20211030 072710 worker: CPU gov  (ondemand)
20211030 072710 worker: USB boot not enabled yet
20211030 072710 worker: File system not expanded yet
20211030 072710 worker: HDMI port on
20211030 072710 worker: -- Network
20211030 072710 worker: eth0 exists
20211030 072710 worker: IP addr (192.168.2.2)
20211030 072710 worker: Netmask (255.255.255.0)
20211030 072710 worker: Gateway (192.168.2.254)
20211030 072710 worker: Pri DNS (192.168.2.254)
20211030 072710 worker: Domain  (home)
20211030 072710 worker: wlan0 exists
20211030 072710 worker: wifi country (US)
20211030 072710 worker: wlan0 SSID is blank
20211030 072710 worker: eth0 addr exists, AP mode not started
20211030 072710 worker: wlan0 address not assigned
20211030 072710 worker: Pi integrated wlan0 power save disabled
20211030 072710 worker: -- Audio config
20211030 072711 worker: MPD conf updated
20211030 072711 worker: ALSA card number (0)
20211030 072711 worker: MPD audio output (Audiophonics ES9028/9038 DAC (Pre 2019))
20211030 072711 worker: Audio formats (S16_LE, S32_LE)
20211030 072711 worker: ALSA mixer name (Digital)
20211030 072711 worker: MPD mixer type (fixed 0dB)
20211030 072711 worker: Hdwr volume controller exists
20211030 072711 worker: Max ALSA volume (100%)
20211030 072711 worker: ALSA output mode (Default: plughw)
20211030 072711 worker: ALSA loopback (On)
20211030 072711 worker: Reset renderer active flags
20211030 072711 worker: CamillaDSP (off)
20211030 072711 worker: -- MPD startup
20211030 072711 worker: MPD started
20211030 072712 worker: MPD accepting connections
20211030 072712 worker: MPD output 1 ALSA Default (on)
20211030 072712 worker: MPD output 2 ALSA Bluetooth (off)
20211030 072712 worker: MPD output 3 HTTP Server (off)
20211030 072712 worker: MPD crossfade (off)
20211030 072712 worker: MPD ignore CUE files (yes)
20211030 072712 worker: -- Feature availability
20211030 072712 worker: Source select (available)
20211030 072712 worker: Source select (source: MPD)
20211030 072712 worker: Source select (output: Audiophonics ES9028/9038 DAC (Pre 2019))
20211030 072712 worker: Bluetooth (available)
20211030 072712 worker: Airplay renderer (available)
20211030 072712 worker: Spotify renderer (available: started)
20211030 072712 worker: Squeezelite (available)
20211030 072712 worker: RoonBridge renderer (not installed)
20211030 072712 worker: Multiroom sender (available)
20211030 072712 worker: Multiroom receiver (available)
20211030 072712 worker: UPnP renderer (available)
20211030 072712 worker: DLNA server (available)
20211030 072712 worker: UPnP browser (available)
20211030 072712 worker: GPIO button handler (available)
20211030 072712 worker: Stream recorder (n/a)
20211030 072712 worker: -- Music sources
20211030 072712 worker: USB source (MI_harddisk)
20211030 072712 worker: NAS and UPnP sources (none configured)
20211030 072712 worker: -- Other
20211030 072712 worker: USB volume knob (Off)
20211030 072712 worker: USB auto-mounter (udisks-glue)
20211030 072712 worker: LED0 (On)
20211030 072712 worker: LED1 (On)
20211030 072712 worker: Saved MPD vol level (0)
20211030 072712 worker: Preamp volume level (0)
20211030 072712 worker: MPD volume level (0) restored
20211030 072712 worker: ALSA Digital volume (100%)
20211030 072712 worker: Auto-play (Off)
20211030 072712 worker: Maintenance interval (3 hours)
20211030 072712 worker: Screen saver activation (Never)
20211030 072712 worker: Session permissions (OK)
20211030 072713 worker: Watchdog started
20211030 072713 worker: Ready
20211030 073512 worker: Job upnpsvc
20211030 073524 worker: Job minidlna
pi@moode:~ $
Reply


Forum Jump: