Short version:
Add a delay of 1 second to your autostart script
(before lmsserver will be started).
Long Version:
At my test setup (PCP 6.1, LMS 7.9.1, pi 3b+, no DA board) has
been a reproducible problem: When cold started after more then 6 minutes
off-time, screen shows white "snow". After some fiddeling and testing i
found a workaround: Add a delay of 1 second to your autostart
script.
my test script:
Code:
--------------------
#!/bin/sh
# Kill lmsmonitor if running, wait til its gone
if pid=$(pidof lmsmonitor); then
echo "Kill running LMSMonitor"
sudo killall lmsmonitor > /dev/null 2>&1
# Wait for end of kill, up to 700ms @ pi 3b+ :
while pid=$(pidof lmsmonitor); do
echo "Killing of LMSMonitor is ongoing ..."
sleep 0.1
done # Wait for end of kill
fi # lmsmonitor is running
# Start lmsmonitor, if not already running
if ! pids=$(pidof lmsmonitor); then
# wait for squeeze to come online
until pids=$(pidof squeezelite squeezelite-dsd); do
echo "Waiting for squeezelite ..."
sleep 1
done # squeeze is running
echo "Start LMS"
PNAME=`cat /usr/local/sbin/config.cfg | grep "^NAME=" | cut -d'"' -f2`
# On startup of player after switched off (powerless) for >= 6 minutes
# some runtime or timing condition leads to white snow on screen.
# This delay fixed it for me:
sleep 1
sudo /mnt/mmcblk0p2/tce/lmsmonitor -n ${PNAME} -c -z -f7 > /dev/null 2>&1 &
fi # lmsmonitor is not running, start lmsmonitor
exit
--------------------
------------------------------------------------------------------------
Aki7's Profile: http://forums.slimdevices.com/member.php?userid=67596
View this thread: http://forums.slimdevices.com/showthread.php?t=111790
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix