Home of the Squeezebox™ & Transporter® network music players.
Page 14 of 28 FirstFirst ... 4121314151624 ... LastLast
Results 131 to 140 of 275
  1. #131
    Junior Member
    Join Date
    Apr 2019
    Posts
    13
    Sorry to seem impatient, but does anyone have any insights?

    Especially my question...

    Quote Originally Posted by meq123 View Post
    1) If/when the POWR function works, does the same button allow restart after a power-down?
    I'm in the end stages of making the case & front panel and want to know if I can use a single (simple) switch to do the power down/restart, or if I need to a double-pole type to both use the power GPIO line AND use GPIO3 to restart again?

  2. #132
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,301
    SqueezebuttonPi only interfaces with the LMS server, or with scripts as you are using.

    You can use overlays.....take a look at

    https://github.com/raspberrypi/linux...ys/README#L728

    PCP also has a shut down monitor too that works with these overlays.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  3. #133
    Senior Member Jeff07971's Avatar
    Join Date
    Aug 2011
    Location
    London, England
    Posts
    1,383
    Quote Originally Posted by paul- View Post
    SqueezebuttonPi only interfaces with the LMS server, or with scripts as you are using.

    You can use overlays.....take a look at

    https://github.com/raspberrypi/linux...ys/README#L728

    PCP also has a shut down monitor too that works with these overlays.
    I just tried "gpio-shutdown" but it does not shutdown the pi as the readme suggests it only does "Player power off"

    the next button push does "Player power on"

    Jeff
    Players: SliMP3,Squeezebox3 x3,Receiver,SqueezeLite-X,PiCorePlayer x3
    Server: LMS Version: Latest Nightly on Centos 8.0 VM on ESXi 6.5.0U3 on Dell T320
    Plugins: AutoRescan/BBCiPlayer/PowerSave/PowerSwitchIII/Squeezecloud/Spotty/Player Groups
    Remotes: iPeng9/Orangesqueeze/PC/Jivelite/SqueezeLite-X
    Music: 522GB,1.5K albums with 25K songs by 5K artists mostly FLACs

    Want a webapp ? See http://forums.slimdevices.com/showth...Webapp-for-LMS

  4. #134
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,301
    The shutdown is driven by monitoring the key events.......since pCP does not run systemd. The shutdown monitor extension does this function.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  5. #135
    Junior Member
    Join Date
    Apr 2019
    Posts
    13

    Found the issue with the POWR command - bug in .cfg file

    Quote Originally Posted by meq123 View Post
    So I have the basic buttons working (though yet to try/test a rotary encoder) except the POWR function doesn't work. Now I can get around it using a one line 'shutdown' script, with the "SCRIPT:" command, but this doesn't seem right. Has the POWR command been depreciated? Or must I be doing something wrong, like missing a step(s)?
    After much playing around, I found the reason why the POWR command doesn't work. It's a bug in the sbpd_commands.cfg file... there's an extra double-quote at the end of the POWR cfg line:
    Code:
    #
    #   sbpd_commands.cfg  -  Custom commands definition
    #
    #   <CODE>=<JSON Formatted lms cli command>
    #
    #       CODE - MUST be a 4 character code, to be reference on command line when defining buttons
    #
    #       For commands reference the LMS cli documentation, commands are to be JSON formatted.
    #
    # Default commands
    PLAY=["pause"]
    VOL-=["button","voldown"]
    VOL+=["button","volup"]
    PREV=["button","rew"]
    NEXT=["button","fwd"]
    POWR=["button","power"]"
    MIX+=["mixer","volume","+5"]
    MIX-=["mixer","volume","-5"]
    But having corrected it (and now that it works) I'm not sure what the use of the POWR command really is :-/ I can see that it stops playback and extinguishes the LED on my HifiBerry DAC+, but otherwise, it just acts like a pause/play button.

    Does anyone know if this might be a safety-net prior to hard powering-off a self-contained piCorePlayer (with LMS on board)? And anyway, what *IS* the problem with hard powering-off a piCorePlayer with LMS on board?

  6. #136
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,301
    That is all it does. However you can set squeezelite to act upon it, look at the option.... Power On/Off GPIO (-G) Most use the signal to turn an amp on or off.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  7. #137
    Senior Member
    Join Date
    May 2017
    Posts
    587
    Hard powering off the pcp with running lms can cause sd card corruption (happened me twice, now running on a Ups)
    SqueezeBoxes: 1x Transporter (Living room) 1x SB2 (shed), 1x Radio (Kitchen), 1x Boom (Dining room), 1x piCorePlayer (jacuzzi), 1x piCorePlayer (Garden) 1x OSMC + Squeezelite (Movie room), 1x Touch (Study 2), few spare unit's
    Server: LMS on Pi3 7.9.1. on PcP 3.21
    Network: AVM Fritzbox, Netgear Smart Switch 24p, 3x Ubiquity

  8. #138
    Junior Member
    Join Date
    Apr 2019
    Posts
    13
    Quote Originally Posted by edwin2006 View Post
    Hard powering off the pcp with running lms can cause sd card corruption (happened me twice, now running on a Ups)
    Ouch. Is this with the music files source on the same device? Or across a network to a NAS (which is my case)?

    I assume it was the piCore SDcard that was corrupted?

  9. #139
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    1,846
    I expect that it would be due to writing being in progress ... so location of LMS logs likely to have been the issue.
    Paul Webster
    http://dabdig.blogspot.com
    Author Radio France (FIP etc) plugin

  10. #140
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,301
    If you are using pCP as your LMS server, then you need to be careful as to how you shut down. If pCP is just a player, then pull the plug is fine.

    If you use the shutdown monitor that I have setup for this, then a halt command is issued before dropping power.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

Posting Permissions

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