Results 181 to 190 of 315
-
2021-02-19, 10:11 #181
-
2021-02-20, 03:32 #182
Here's a version that has a '--nostop' option when installing. Run it with
Code:sudo ./SQLITE-control.sh install --nostop
@rgro - this can be run without having to manually clear up the previous installation - it should simply write a new rules file for you.
While I was at it, I also added a '--nostart' option, in case someone only wants the 'stop' functionality for some reason. You can even specify both options on the same command line, but in that case the rules file will not exist and the script will then do nothing!
-
2021-02-20, 08:24 #183
Sorry - another update. I noticed that on some occasions the script would be triggered because the DAC was reconnected, and although the separate 'SQLITErestart' function was called, the 'while' loop was exiting immediately without calling the command that actually restarted Squeezelite. I think this was because there may have been an old Squeezelite process still running.
So I've changed the loop so that the restart command is called at least once.
No other changes, so this can replace the previous script. Hopefully this will just make the restarts more reliable.
-
2021-02-20, 09:37 #184
- Join Date
- Nov 2009
- Location
- Seattle, WA USA
- Posts
- 882
Rg
System information
------------------------
Main: RPI4B/PiCorePlayer/LMS> RPI4B/piCoreplayer/Squeezelite > USB>RME ADI-2 DAC > Benchmark AHB2 > Revel Performa F208 speakers, 2X REL R-305 subs.
Home Theatre: RPI4 B/HifiBerry Dac+ Pro>Pioneer VSX 919 > Energy Take 5 Classic 5.1.
LMS 8.1.2 - 1612773843 on RPI4B with 1tb Samsung T5 SSD.
-
2021-02-20, 09:42 #185
-
2021-02-20, 10:00 #186
- Join Date
- Nov 2009
- Location
- Seattle, WA USA
- Posts
- 882
Rg
System information
------------------------
Main: RPI4B/PiCorePlayer/LMS> RPI4B/piCoreplayer/Squeezelite > USB>RME ADI-2 DAC > Benchmark AHB2 > Revel Performa F208 speakers, 2X REL R-305 subs.
Home Theatre: RPI4 B/HifiBerry Dac+ Pro>Pioneer VSX 919 > Energy Take 5 Classic 5.1.
LMS 8.1.2 - 1612773843 on RPI4B with 1tb Samsung T5 SSD.
-
2021-02-20, 11:32 #187
- Join Date
- Nov 2009
- Location
- Seattle, WA USA
- Posts
- 882
Hi Chill,
I can confirm that the install using the script in post #183 was successful (appropriate messages displayed) and that the functionality that is my use case was preserved. With my dac in standby mode, I rebooted pCP. Upon reboot, Squeezelite was, as expected, not restarted. Upon dac power-up, Squeezelite auto-started and stayed on when dac was put back into standby mode. So, 100% success across the board.
Thanks!Rg
System information
------------------------
Main: RPI4B/PiCorePlayer/LMS> RPI4B/piCoreplayer/Squeezelite > USB>RME ADI-2 DAC > Benchmark AHB2 > Revel Performa F208 speakers, 2X REL R-305 subs.
Home Theatre: RPI4 B/HifiBerry Dac+ Pro>Pioneer VSX 919 > Energy Take 5 Classic 5.1.
LMS 8.1.2 - 1612773843 on RPI4B with 1tb Samsung T5 SSD.
-
2021-02-20, 11:38 #188
-
2021-03-05, 11:13 #189
- Join Date
- Oct 2011
- Posts
- 51
Shuts down, but doesn't restart
Hi, I installed the script from post 183. it seems to have installed ok, it finds my M6 dac and shuts squeezelite down as expected.
Unfortunately it doesn't restart squeezelite when I turn on the dac.
This is on a fresh install of pcp 7.0.0.
Where am I going wrong?
Code:[ 18.12] Script parameters: find M6 [ 18.17] Searching for M6 with idVendor=0d8c and idProduct=0004 in dmesg [ 18.23] M6 detected on 1-1.2 [ 18.25] Restoring alsa settings for M6 [ 90.36] Script parameters: stop M6 1-1.2:1.0 [ 90.36] Script parameters: stop M6 1-1.2:1.1 [ 90.49] Script parameters: stop M6 1-1.2:1.2 [ 90.52] Script parameters: stop M6 1-1.2 [ 90.54] M6 on 1-1.2 removed [ 90.58] Stopping Squeezelite player: Squeezelite... [ 90.60] /tmp/M6.kername deleted [ 185.60] Script parameters: restart M6 1-1.2 [ 185.61] M6 detected on 1-1.2 [ 186.72] Restarting Squeezelite player... Stopping Squeezelite player: Squeezelite... Starting Squeezelite player: Squeezelite... [ 187.76] Squeezelite not running. [ 188.84] Restarting Squeezelite player... Squeezelite is not running. Starting Squeezelite player: Squeezelite... [ 189.88] Squeezelite not running. [ 190.94] Restarting Squeezelite player... Squeezelite is not running. Starting Squeezelite player: Squeezelite... [ 191.98] Squeezelite not running. [ 193.04] Restarting Squeezelite player... Squeezelite is not running. Starting Squeezelite player: Squeezelite... [ 194.07] Squeezelite not running. [ 195.14] Restarting Squeezelite player... Squeezelite is not running. Starting Squeezelite player: Squeezelite... [ 196.17] Squeezelite not running. [ 196.18] Squeezelite failed to initialize within 5 attempts. [ 220.15] Script parameters: stop M6 1-1.2:1.0 [ 220.16] Script parameters: stop M6 1-1.2:1.1 [ 220.25] Script parameters: stop M6 1-1.2:1.2 [ 220.27] Script parameters: stop M6 1-1.2 [ 220.28] M6 on 1-1.2 removed [ 220.30] Squeezelite is not running. [ 220.31] /tmp/M6.kername deleted [ 244.23] Script parameters: restart M6 1-1.2 [ 244.24] M6 detected on 1-1.2 [ 245.33] Restarting Squeezelite player... Squeezelite is not running. Starting Squeezelite player: Squeezelite... [ 246.37] Squeezelite not running. [ 247.45] Restarting Squeezelite player... Squeezelite is not running. Starting Squeezelite player: Squeezelite... [ 248.49] Squeezelite not running. [ 249.55] Restarting Squeezelite player... Squeezelite is not running. Starting Squeezelite player: Squeezelite... [ 250.58] Squeezelite not running. [ 251.65] Restarting Squeezelite player... Squeezelite is not running. Starting Squeezelite player: Squeezelite... [ 252.68] Squeezelite not running. [ 253.74] Restarting Squeezelite player... Squeezelite is not running. Starting Squeezelite player: Squeezelite... [ 254.78] Squeezelite not running. [ 254.79] Squeezelite failed to initialize within 5 attempts.
-
2021-03-05, 11:37 #190
I'm not sure. A few things you can try, to help understand what's going on:
1) When Squeezelite is stopped (i.e. you've removed the DAC), try checking whether the process has actually been stopped:
Code:ps | grep squeezelite
Code:sudo /usr/local/etc/init.d/squeezelite restart