Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Power on/off button? #8

Open
DarumasLegs opened this issue Feb 27, 2021 · 1 comment
Open

Power on/off button? #8

DarumasLegs opened this issue Feb 27, 2021 · 1 comment

Comments

@DarumasLegs
Copy link

Is it possible to program a button to turn on and off the pi on demand? When I stack an LCD on top of the UPS, the momentary button is no longer reachable. It would be good if this could be assigned to a GPIO pin so I could have a separate on/off button. Please let me know what it would take to do this.

@Martin-HiPi
Copy link

Hi @DarumasLegs

I'm Martin from the HiPi.io / BuyaPi.ca / Pishop.us technical support team and I'm sorry for the delay in replying, I've been swamped with emails and yours got stuck in the pile!

The button is not needed under normal operation if the script is properly running, it is included for the edge case where the power returns once the Pi has started shutting down. It is not an ON/OFF button to shut down the Pi.

Still, it is on our suggestions list to add solder pads to displace the switch and LED on future board revisions.

As for shutting down the Pi on-demand from a button, it can be done easily. I believe there already is a dtoverlay you can use for this in the regular Raspberry Pi OS distribution. Check the README in /boot/overlays for more information.

Let me know if this answers your question! Remember you can always contact us through our official channels on ByuaPi.ca and Pishop.us!

Martin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants