When I run the script with --nostop I get quite different results.
When I stop the dac the sqlite stays listed on material / apps
the pcp web says not running
Code:
--------------------
tc@pCP:~$ ps | grep squeezelite
4226 root 0:10 /usr/local/bin/squeezelite -n piCorePlayer -o
hw:CARD=M6,DEV=0 -a -v
10568 tc 0:00 grep squeezelite
--------------------
and when I turn the dac back on it reconnects fine and works as
expected.
except the pcp web says it's not running - clearly not a problem.
Code:
--------------------
tc@pCP:~$ ps | grep squeezelite
4226 root 0:14 /usr/local/bin/squeezelite -n piCorePlayer -o
hw:CARD=M6,DEV=0 -a -v
11445 tc 0:00 grep squeezelite
--------------------
The problem is that unless I power off the sqlite through the web app
etc then the rest of the sync group pauses for about 20 seconds every
minute or so. And the sync ends up miles off when I do reconnect the
dac.
If I could change your script to just soft off (is that the phrase) the
sqlite when the dac disconnects and soft on when it reconnects I think
it would work for me. Is that odd or normal behaviour?
Here's the log - the dac reconnected and sqlite never stopped playing
Code:
--------------------
[ 16.98] Script parameters: find M6
[ 17.04] Searching for M6 with idVendor=0d8c and idProduct=0004 in dmesg
[ 17.09] M6 detected on 1-1.2
[ 17.11] Restoring alsa settings for M6
[ 285.73] Script parameters: restart M6 1-1.2
[ 285.74] M6 detected on 1-1.2
[ 286.81] Restarting Squeezelite player...
Stopping Squeezelite player: Squeezelite...
Starting Squeezelite player: Squeezelite...
[ 287.85] Squeezelite not running.
[ 288.90] Restarting Squeezelite player...
Squeezelite is not running.
Starting Squeezelite player: Squeezelite...
[ 289.94] Squeezelite not running.
[ 291.00] Restarting Squeezelite player...
Squeezelite is not running.
Starting Squeezelite player: Squeezelite...
[ 292.03] Squeezelite not running.
[ 293.09] Restarting Squeezelite player...
Squeezelite is not running.
Starting Squeezelite player: Squeezelite...
[ 294.13] Squeezelite not running.
[ 295.19] Restarting Squeezelite player...
Squeezelite is not running.
Starting Squeezelite player: Squeezelite...
[ 296.23] Squeezelite not running.
[ 296.24] Squeezelite failed to initialize within 5 attempts.
[ 683.06] Script parameters: restart M6 1-1.2
[ 683.07] M6 detected on 1-1.2
[ 684.14] Restarting Squeezelite player...
Squeezelite is not running.
Starting Squeezelite player: Squeezelite...
[ 685.17] Squeezelite not running.
[ 686.23] Restarting Squeezelite player...
Squeezelite is not running.
Starting Squeezelite player: Squeezelite...
[ 687.26] Squeezelite not running.
[ 688.33] Restarting Squeezelite player...
Squeezelite is not running.
Starting Squeezelite player: Squeezelite...
[ 689.36] Squeezelite not running.
[ 690.41] Restarting Squeezelite player...
Squeezelite is not running.
Starting Squeezelite player: Squeezelite...
[ 691.44] Squeezelite nots.
running.
[ 692.51] Restarting Squeezelite player...
Squeezelite is not running.
Starting Squeezelite player: Squeezelite...
[ 693.54] Squeezelite not running.
[ 693.55] Squeezelite failed to initialize within 5 attempt
--------------------
------------------------------------------------------------------------
Bogg's Profile: http://forums.slimdevices.com/member.php?userid=50888
View this thread: http://forums.slimdevices.com/showthread.php?t=113661
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix