Posts: 1
Threads: 1
Joined: May 2021
Reputation:
0
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?
Posts: 13,422
Threads: 304
Joined: Mar 2018
Reputation:
545
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"