Page 1 of 1

RPI Power off

Posted: Sat Mar 27, 2021 7:25 pm
by Deltasierra
Hi to all,
I'm completing my C172 homebuilt cockpit drived by an RPI and just prior to finish cable routing I've a doubt... :?:
In many web page articles I've read that is dangerous for internal RPI SD card, interrupt power by pulling or pushing the plug for shutdown!
My RPI power cable has a switch that I using for powering on/off. Now my question is: is this a correct way to handle RPI shutdown or is it necessary to use GPIO pins with a proper Python code to deal with a switch ?
Thanks.

Re: RPI Power off

Posted: Sat Mar 27, 2021 7:40 pm
by Ralph
You can either turn it off from Air Manager or use this:
http://siminnovations.com/wiki/index.ph ... =Shut_down

Re: RPI Power off

Posted: Sat Mar 27, 2021 8:12 pm
by Deltasierra
Ralph wrote: Sat Mar 27, 2021 7:40 pm You can either turn it off from Air Manager or use this:
http://siminnovations.com/wiki/index.ph ... =Shut_down
Yes Ralph, I know this option, my question is oriented to know if the switch that is present on the power cable that now I'm using for powering on/off could be dangerous for RPI SD card.

Re: RPI Power off

Posted: Sun Mar 28, 2021 12:07 am
by Sling
Deltasierra wrote: Sat Mar 27, 2021 8:12 pm
Ralph wrote: Sat Mar 27, 2021 7:40 pm You can either turn it off from Air Manager or use this:
http://siminnovations.com/wiki/index.ph ... =Shut_down
Yes Ralph, I know this option, my question is oriented to know if the switch that is present on the power cable that now I'm using for powering on/off could be dangerous for RPI SD card.
It’s been discussed on the forums a few times. Search is your friend.

Re: RPI Power off

Posted: Sun Mar 28, 2021 8:43 am
by Ralph
That's my point :) It's not the proper way to shut down the Pi. It'll probably be alright for most of the time, but you'll always have the risk of corrupting the SD card.

Re: RPI Power off

Posted: Sun Mar 28, 2021 3:12 pm
by Deltasierra
Ralph wrote: Sun Mar 28, 2021 8:43 am That's my point :) It's not the proper way to shut down the Pi. It'll probably be alright for most of the time, but you'll always have the risk of corrupting the SD card.
Ok, I'll follow your suggestion Ralph, and will try to add a dedicated hardware switch for shutting down RPI from Air Manager.
Thanks.