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
(05-04-2021, 12:04 PM)adrii Wrote: Hi officialsm

Again, that all seems fine. In which case, I can think of two possibilities to test: 1. the launch test script is failing to wait until mpd has started, 2. mpd has started without the loopback device being loaded.

Could you replace the contents of '/usr/bin/mpd_oled_launch_test' with

Code:
#!/bin/bash

sysname="unknown"

moodeutl_path="/usr/local/bin/moodeutl"
volumio_path="/volumio"
raudio_path="/srv/http/command/rune_shutdown"

if test -f "$moodeutl_path" ; then
   sysname="moode"
   until ps -C mpd > /dev/null; do
      sleep 10
   done
   lsmod | grep snd
   ps ax | grep mpd
   moodeutl -l

elif test -f "$volumio_path" ; then
     sysname="volumio"
     until ps -C mpd > /dev/null; do
        sleep 10
     done
elif test -f "$raudio_path" ; then
     sysname="raudio"
     until ps -C mpd > /dev/null; do
        sleep 10
     done
fi

This will log whether mpd is running, and whether the loopback module is loaded, and whether the Moode log says the loopback device is loaded, all immediately before mpd_oled is started.

After updating the script, next time mpd_oled fails to start, please post the output of the following commands


Code:
systemctl status mpd_oled
journalctl -u mpd_oled.service -b

Adrian.

Here output

pi@Simoode-audio:~ $ systemctl status mpd_oled

● mpd_oled.service - MPD OLED Display
   Loaded: loaded (/etc/systemd/system/mpd_oled.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2021-05-04 14:25:31 CEST; 2h 43min ago
  Process: 373 ExecStartPre=/usr/bin/mpd_oled_launch_test (code=exited, status=0/SUCCESS)
 Main PID: 784 (mpd_oled)
    Tasks: 2 (limit: 4915)
   CGroup: /system.slice/mpd_oled.service
           └─784 /usr/bin/mpd_oled -o 6 -b 10 -g 1 -f 20 -c alsa,hw:Loopback,1

May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: 20210504 142530 worker: Debug lo
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: 20210504 142530 worker: -- Audio
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: 20210504 142530 worker: ALSA car
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: 20210504 142530 worker: MPD conf
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: 20210504 142530 worker: ALSA mix
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: 20210504 142530 worker: ALSA PCM
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: 20210504 142530 worker: -- Syste
May 04 14:25:31 Simoode-audio systemd[1]: Started MPD OLED Display.
May 04 14:25:31 Simoode-audio mpd_oled[784]: Linux kernel module "snd_aloop" does not see
May 04 14:25:31 Simoode-audio mpd_oled[784]: Maybe run "sudo modprobe snd_aloop".

pi@Simoode-audio:~ $ journalctl -u mpd_oled.service -b

-- Logs begin at Tue 2021-05-04 14:25:07 CEST, end at Tue 2021-05-04 17:09:10 CEST. --
May 04 14:25:10 Simoode-audio systemd[1]: Starting MPD OLED Display...
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: snd_usb_audio         217088  1
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: snd_hwdep              16384  1
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: snd_usbmidi_lib        32768  1
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: snd_rawmidi            32768  1
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: snd_seq_device         16384  1
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: snd_soc_bcm2835_i2s    16384  0
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: snd_soc_core          200704  1
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: snd_compress           20480  1
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: snd_bcm2835            28672  2
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: snd_pcm_dmaengine      16384  1
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: snd_pcm                94208  5
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: snd_timer              32768  1
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: snd                    73728  16
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: mc                     40960  7
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]:   373 ?        Ss     0:00 /bin/
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]:   763 ?        S      0:00 sh -c
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]:   764 ?        DL     0:00 mpd -
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]:   771 ?        S      0:00 grep
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: 20210504 142528 worker: -- Start
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: 20210504 142528 worker: Successf
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: 20210504 142529 worker: Integrit
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: 20210504 142529 worker: File che
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: 20210504 142530 worker: Session
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: 20210504 142530 worker: Session
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: 20210504 142530 worker: Debug lo
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: 20210504 142530 worker: -- Audio
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: 20210504 142530 worker: ALSA car
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: 20210504 142530 worker: MPD conf
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: 20210504 142530 worker: ALSA mix
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: 20210504 142530 worker: ALSA PCM
May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: 20210504 142530 worker: -- Syste
May 04 14:25:31 Simoode-audio systemd[1]: Started MPD OLED Display.
May 04 14:25:31 Simoode-audio mpd_oled[784]: Linux kernel module "snd_aloop" does not see
May 04 14:25:31 Simoode-audio mpd_oled[784]: Maybe run "sudo modprobe snd_aloop".

i ran  "sudo modprobe snd_aloop"
Reply


Messages In This Thread
RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - by officialsm - 05-04-2021, 03:11 PM
RE: help me - by ghera78 - 02-28-2020, 08:01 AM
RE: help me - by ghera78 - 02-28-2020, 01:17 PM

Forum Jump: