Moode Forum
Help for power off button - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: Help for power off button (/showthread.php?tid=3875)



Help for power off button - topolynx - 05-29-2021

Hi! Please could you help me? I’ve soldered a NO button to pin 11 (gpio 17) and ground, then I’ve enabled the gpio controller on moode player. Then I set up button 1 to pin 11 and I wrote the command “sudo poweroff”, but the button doesn’t work. What have I done wrong?


RE: Help for power off button - Tim Curtis - 05-29-2021

Try just "poweroff" without sudo or if that doesn't work then "sudo,poweroff" with a comma between the two parts.

Note the ( i )help on the GPIO Config page if you need to use commands that have args.

"NOTE: Use a comma to delimit arguments in the CMD field. Example: mpc,load,My Playlist"