Home of the Squeezebox™ & Transporter® network music players.
Page 19 of 32 FirstFirst ... 9171819202129 ... LastLast
Results 181 to 190 of 315
  1. #181
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Location
    Nottingham, UK
    Posts
    2,094
    Quote Originally Posted by carsten_h View Post
    Maybe it' a possible way to have an option when calling the script with "install" eg. "nostop" to don't create the second line in the rule file.
    Yes, that would be easy enough to do.

  2. #182
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Location
    Nottingham, UK
    Posts
    2,094
    Here's a version that has a '--nostop' option when installing. Run it with
    Code:
    sudo ./SQLITE-control.sh install --nostop
    That will create a rules file that doesn't have the 'remove' rule, so the script would not then need to be edited to comment out the 'stop' function.
    @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!
    Attached Files Attached Files

  3. #183
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Location
    Nottingham, UK
    Posts
    2,094
    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.
    Attached Files Attached Files

  4. #184
    Senior Member
    Join Date
    Nov 2009
    Location
    Seattle, WA USA
    Posts
    882
    Hi Chill,

    So, just to clarify, I can just edit/replace the old script with the new script in post 183. Once that's done, I just type 'sudo ./SQLITE-control.sh install --nostop' to install it. Then the usual 'Backup Changes' in pCP....

    Cheers

    Quote Originally Posted by chill View Post
    Here's a version that has a '--nostop' option when installing. Run it with
    Code:
    sudo ./SQLITE-control.sh install --nostop
    That will create a rules file that doesn't have the 'remove' rule, so the script would not then need to be edited to comment out the 'stop' function.
    @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!
    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.

  5. #185
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Location
    Nottingham, UK
    Posts
    2,094
    Quote Originally Posted by rgro View Post
    Hi Chill,

    So, just to clarify, I can just edit/replace the old script with the new script in post 183. Once that's done, I just type 'sudo ./SQLITE-control.sh install --nostop' to install it. Then the usual 'Backup Changes' in pCP....

    Cheers
    Yes, that's correct. Make sure your DAC is connected when you issue the 'install' command.

  6. #186
    Senior Member
    Join Date
    Nov 2009
    Location
    Seattle, WA USA
    Posts
    882
    Quote Originally Posted by chill View Post
    Yes, that's correct. Make sure your DAC is connected when you issue the 'install' command.
    Ah, thanks for that. I would have forgotten to do that....not connected the dots, so to speak, that the dac needed to be on in order to create the new rules file...
    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.

  7. #187
    Senior Member
    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.

  8. #188
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Location
    Nottingham, UK
    Posts
    2,094
    Thanks rgro - good to know.

  9. #189

    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.

  10. #190
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Location
    Nottingham, UK
    Posts
    2,094
    Quote Originally Posted by Bogg View Post
    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.
    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
    2) Try restarting Squeezelite from the command line, to see if you get any more feedback:
    Code:
    sudo /usr/local/etc/init.d/squeezelite restart
    3) Try restarting Squeezelite from the pCP interface (Main page, first button).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •