[ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

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?

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

Originally Posted by meq123

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:

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?