Moode Forum
gpio shutdown command - Printable Version

+- Moode Forum (http://moodeaudio.org/forum)
+-- Forum: moOde audio player (http://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (http://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: gpio shutdown command (/showthread.php?tid=2830)



gpio shutdown command - Ikke4 - 07-28-2020

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


RE: gpio shutdown command - Ikke4 - 07-29-2020

(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


RE: gpio shutdown command - Baisey - 07-29-2020

Hello

I've had success with this script - https://howchoo.com/g/mwnlytk3zmm/how-to-add-a-power-button-to-your-raspberry-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


RE: gpio shutdown command - philrandal - 07-29-2020

(07-29-2020, 11:45 AM)Baisey Wrote: Hello

I've had success with this script - https://howchoo.com/g/mwnlytk3zmm/how-to-add-a-power-button-to-your-raspberry-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