Thank you for your donation!


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


Rpi power on/off button on GPIO
#1
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
Reply
#2
(05-26-2024, 12:41 PM)ftw64 Wrote: 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

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
Reply
#3
Yes, add customizations to the General sessions section
The config.txt backup/restore logic was removed from 9
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: