05-04-2021, 12:04 PM
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
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
Adrian.
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.