paul- wrote: 
> LMS is the problem......you need to halt the system first.  You can
> build or buy power relays.  To drop power after the kernel shuts down.

I've been trying to understand the foregoing discussion so that I can
shutdown my pCP LMS server(s) safely.  I'd appreciate guidance on
whether I've got it straight.

>From the 'gpio-shutdown' section 'here'
(https://github.com/raspberrypi/linux/blob/f70d3cee7ea9e6411559cc75e3882d4703752dfe/arch/arm/boot/dts/overlays/README#L728):

> The default
> configuration uses GPIO3 with a pullup, so if you connect a
> button between GPIO3 and GND (pin 5 and 6 on the 40-pin
> header),
> you get a shutdown and power-up button.

So I believe I need to enable the gpio-shutdown overlay on the tweaks
page, and specify a pin number - I assume this replaces the default
GPIO3 mentioned above.

With a button connected between the specified pin and GND, a press of
that button will call the pcp-powerbutton.sh script in /home/tc.  That
script will safely shut down pCP, issuing a 'halt' command to prevent
corruption of the SD card caused if prefs or cache are being written
when the power is cut.

If I'm on the right lines, should that button be a momentary button or a
latching button?  Does pCP restart when the pin is grounded a *second*
time, or when the connection to ground is broken?  If a momentary button
is required, that button should presumably *not* be configured as part
of an sbpd setup.

Jeff07971 wrote: 
> 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

Jeff - did you get this resolved?


------------------------------------------------------------------------
chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=107001

_______________________________________________
diy mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/diy

Reply via email to