Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


gpio shutdown command
#1
hi There, 

maybe it's already being told several times, but i didn't find it on the forum.....

Can you use a button on the gpio pins to give moode a shutdown command on the gpio setting page ?  if the answer is YES, what is the command  Huh
Reply
#2
(07-28-2020, 02:48 PM)Ikke4 Wrote: hi There, 

maybe it's already being told several times, but i didn't find it on the forum.....

Can you use a button on the gpio pins to give moode a shutdown command on the gpio setting page ?  if the answer is YES, what is the command  Huh


found the answer: sudo,poweroff

was looking with the wrong search words: gpio shutdown  Dodgy
Reply
#3
Hello

I've had success with this script - https://howchoo.com/g/mwnlytk3zmm/how-to...spberry-pi
If you use physical pin 5 & 6, you can turn the pi on and off with the same button.
There is also a dtoverlay you could use (edit -boot/config.txt) but i've only had that working once and couldn't work out why it stopped.
Cheers
Paul
Reply
#4
(07-29-2020, 11:45 AM)Baisey Wrote: Hello

I've had success with this script - https://howchoo.com/g/mwnlytk3zmm/how-to...spberry-pi
If you use physical pin 5 & 6, you can turn the pi on and off with the same button.
There is also a dtoverlay you could use (edit -boot/config.txt) but i've only had that working once and couldn't work out why it stopped.
Cheers
Paul

This sort of thing would be nice in the UI, with a config option for the GPIO pins.

Phil

Reply


Forum Jump: