Thank you for your donation!


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


Help for power off button
#1
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?
Reply
#2
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"
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: