Moode Forum
Support for power button - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Feature requests (https://moodeaudio.org/forum/forumdisplay.php?fid=8)
+--- Thread: Support for power button (/showthread.php?tid=252)



Support for power button - Qawala - 06-24-2018

It could be nice to have support for a power button that would run Moode through the shutdown process.
Sometimes, the browse hangs, and makes access to the shutdown menu impossible. such a button will prevent a corrupted system due to an untimely power cycle. I have had to reinstall moode twice due to such a problem Smile
Furthermore, it could come in handy when installing the rpi as part of system that is usually powered down using one button.


RE: Support for power button - rikardo1979 - 06-24-2018

Should be possible to use reboot script like here http://moodeaudio.org/forum/showthread.php?tid=148
or similar and wire a button to GPIO pins to triggers it


RE: Support for power button - Tim Curtis - 06-24-2018

(06-24-2018, 01:52 PM)Qawala Wrote: It could be nice to have support for a power button that would run Moode through the shutdown process.
Sometimes, the browse hangs, and makes access to the shutdown menu impossible. such a button will prevent a corrupted system due to an untimely power cycle. I have had to reinstall moode twice due to such a problem Smile
Furthermore, it could come in handy when installing the rpi as part of system that is usually powered down using one button.

Hi,

I sometimes just pul the plug on my systems due to laziness and have never had an issue with SDCard corruption or file system corruption.

I've been using only Sandisk Ultra Class 10 SDCard's for over 4 years and have experienced only 2 bad cards during that time period. Some of my SDCards experience full image reloads or whole Builds almost every day that I'm working on moOde and no issues.

What brand SD Card are u using?

-Tim


RE: Support for power button - hifix - 02-10-2019

I came across this and have found it to work with 3.81.

https://scribles.net/adding-power-switch-on-raspberry-pi/

Heres something similar:
https://howchoo.com/g/mwnlytk3zmm/how-to-add-a-power-button-to-your-raspberry-pi

Getting a LED going might help too (i've not tested this).
https://howchoo.com/g/ytzjyzy4m2e/build-a-simple-raspberry-pi-led-power-status-indicator


RE: Support for power button - imi11 - 02-18-2019

"On the HiFiBerry Digi+ Pro GPIOs 5 and 6 are also use and cannot be used for anything else."

"1-2. Connect the wires with GPIO pin 5 & 6."

So my I use GPIOs 5 and 6 for resetting with HiFiBerry Digi+ Pro?


RE: Support for power button - CallMeMike - 02-19-2019

(02-18-2019, 05:31 PM)imi11 Wrote: "On the HiFiBerry Digi+ Pro GPIOs 5 and 6 are also use and cannot be used for anything else."

"1-2. Connect the wires with GPIO pin 5 & 6."

So my I use GPIOs 5 and 6 for resetting with HiFiBerry Digi+ Pro?

You should probably better ask HiFiBerry directly... Angel


RE: Support for power button - Tenbagger - 05-31-2019

(02-18-2019, 05:31 PM)imi11 Wrote: "On the HiFiBerry Digi+ Pro GPIOs 5 and 6 are also use and cannot be used for anything else."

"1-2. Connect the wires with GPIO pin 5 & 6."

So my I use GPIOs 5 and 6 for resetting with HiFiBerry Digi+ Pro?

I have a HiFiBerry Digi+ Pro and a HiFiBerry DAC+ Pro, both with Off-buttons on RPi3B+.

I did quite a lot of research (I thought, anyway) before going for a solution where I soldered three wires to the same pins (11, 8, ground-6) on each HiFiBerry board. This gave me illuminated Off-buttons that go dark when a Python script has been completed and it's safe to disconnect power. 

In practical use, this has proven near-perfect for me, as all other aspects of daily music playback are managed from an app on iPhone or iPad. 

The only thing I did not accomplish, was waking up the RPis with a button (the same) because the pin in question (5) is already in use by the I2S interface to the HiFiBerry cards. When I tried it, the RPis would boot as expected but the HiFiBerry cards were left unresponsive (until a complete power disconnect). 

As I use a linear PSU that continously dissipates the energy not used by RPi/HiFiBerry, my habit is to shut down the PSU separately anyway. If you plan to use a PSU with a separate power switch, you may perhaps be happy with a similar setup.


RE: Support for power button - fedormil - 06-05-2019

(05-31-2019, 03:51 PM)Tenbagger Wrote:
(02-18-2019, 05:31 PM)imi11 Wrote: "On the HiFiBerry Digi+ Pro GPIOs 5 and 6 are also use and cannot be used for anything else."

"1-2. Connect the wires with GPIO pin 5 & 6."

So my I use GPIOs 5 and 6 for resetting with HiFiBerry Digi+ Pro?

I have a HiFiBerry Digi+ Pro and a HiFiBerry DAC+ Pro, both with Off-buttons on RPi3B+.

I did quite a lot of research (I thought, anyway) before going for a solution where I soldered three wires to the same pins (11, 8, ground-6) on each HiFiBerry board. This gave me illuminated Off-buttons that go dark when a Python script has been completed and it's safe to disconnect power. 

In practical use, this has proven near-perfect for me, as all other aspects of daily music playback are managed from an app on iPhone or iPad. 

The only thing I did not accomplish, was waking up the RPis with a button (the same) because the pin in question (5) is already in use by the I2S interface to the HiFiBerry cards. When I tried it, the RPis would boot as expected but the HiFiBerry cards were left unresponsive (until a complete power disconnect). 

As I use a linear PSU that continously dissipates the energy not used by RPi/HiFiBerry, my habit is to shut down the PSU separately anyway. If you plan to use a PSU with a separate power switch, you may perhaps be happy with a similar setup.
I wrote in this post
Link