Raspberry Pi Shutdown ?
Hello guys,
I just wanted to know how you guys are shutting down your Raspberry Pi's when you shut off the PC?
I want to power the PI with a 4" Touchdisplay from my main PC PSU 5V Rail, but if I do so, the Power of the PI will just get cut off when the PC switches off…
Is there any solution to power down the PI first or isn't it even a problem when the PI looses Power over and over again?
Thanks Daniel
Btw. Sorry for my bad english, but I am from Austria :D
Hi @Lochfrass
we've been doing it exactly the way you describe, so essentially just cutting off the power of the Pi whenever the PC shuts down.
Of course this isn't 100% save and it could lead to data corruption on the sd card. But we haven't seen that happening so far and if it does you would just have to flash the Raspberry pi image again to fix it.
We've already discussed a few options like how we could automatically shut down the Pi before the PC cuts power or even more complex solutions that would essentially prevent data corruption on power loss (https://github.com/ModBros/mobro-raspberrypi/issues/5 for example if you're interested)
But we have not yet implemented any of that as it's not really on our priority list right now.
Our Raspberry Pi image also exposes a simple Rest interface that already allows to trigger a shutdown via simple request as described here: https://github.com/ModBros/mobro-raspberrypi#developer-documentation
So you could write yourself a short script or something to shut down the pi if you want to
Oh and greetings back to Austria from Austria ;)