Moode Forum

Full Version: gpio shutdown command
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
(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
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
(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