![]() |
Rpi power on/off button on GPIO - 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: Rpi power on/off button on GPIO (/showthread.php?tid=6521) |
Rpi power on/off button on GPIO - ftw64 - 05-26-2024 I have installed MoOde 9.0.0 (coming from 8.3.9). I used to have this in my /boot/config.txt file to enable a Rpi power-on/power-off button at the front of my media player: Code: dtoverlay=gpio-shutdown,gpio_pin=3,active_low=1,gpio_pull=up This allows me to physically shutdown and power-up my RPi inside my media player. Apparently, this file moved to /boot/firmware/config.txt, but at the top of this file is tells me the file is managed by MoOde. Am I 'allowed' to add the above configuration to the new config.txt file? Or is there a better way to do this? -Frank RE: Rpi power on/off button on GPIO - TheOldPresbyope - 05-26-2024 (05-26-2024, 12:41 PM)ftw64 Wrote: I have installed MoOde 9.0.0 (coming from 8.3.9). The wholesale move of files from /boot to /boot/firmware was done by the RPF folks in developing the Bookworm release.. Without careful examination of the moOde 9.0.0 code, I can only offer an unsubstantiated opinion that you should be able to add your line in config.txt under the # General settings heading. Note: there is a shadow copy of the config.txt found at /usr/share/moode-player/boot/firmware/config.txt which I believe should be amended too. Some folks have encountered a rare circumstance where a hard reboot resulted in moOde either losing or corrupting the file in /boot/firmware; in such case this shadow copy is copied over and the system rebooted. Or something like that. Regards, Kent RE: Rpi power on/off button on GPIO - Tim Curtis - 05-26-2024 Yes, add customizations to the General sessions section The config.txt backup/restore logic was removed from 9 |