RPI Power off

Support for Air Player desktop on ARM devices, like the Raspberry Pi.

Moderators: russ, Ralph

Post Reply
Message
Author
Deltasierra
Posts: 26
Joined: Wed Jan 06, 2021 7:12 pm

RPI Power off

#1 Post 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.

User avatar
Ralph
Posts: 7867
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: RPI Power off

#2 Post by Ralph »

You can either turn it off from Air Manager or use this:
http://siminnovations.com/wiki/index.ph ... =Shut_down

Deltasierra
Posts: 26
Joined: Wed Jan 06, 2021 7:12 pm

Re: RPI Power off

#3 Post 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.

User avatar
Sling
Posts: 5237
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

Re: RPI Power off

#4 Post 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.

User avatar
Ralph
Posts: 7867
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: RPI Power off

#5 Post 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.

Deltasierra
Posts: 26
Joined: Wed Jan 06, 2021 7:12 pm

Re: RPI Power off

#6 Post 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.

Post Reply