11-21-2022, 09:06 PM
(11-21-2022, 08:40 PM)TheOldPresbyope Wrote:(11-21-2022, 07:46 PM)arczar Wrote: I bought this HAT: https://wiki.52pi.com/index.php?title=EP-0077
I used this script: [deleted]
Remote on and off works. Unfortunately, when I use the power off button in the moode interface, the system shuts down, but hat does not turn off the raspberry's power. The LEDs are on. I then have to press the button on the remote control again and only then everything goes out. After that, turning on the remote is OK. What to do to make the effect the same when:
- I press the button on the remote control
- press power off in moode
?
Basically, you can't.
Both the moOde power shutdown button and the script supplied by your board vendor cause the Pi to stop running but only your board actually turns off the DC supply.
You would need some way to communicate back to the board that moOde is shutting down so the board would turn off the power and I don't see an obvious way to do that.
Regards,
Kent
Hi all,
the only thing I was able to see is the following:
shutdown_signal_pin=5
...
shutdown_STATS=[color=var(--color-prettylights-syntax-string)]`gpio [color=var(--color-prettylights-syntax-constant)]read[/color] [color=var(--color-prettylights-syntax-storage-modifier-import)]${shutdown_signal_pin}[/color]`
[/color]
then... what happens? The board is monitoring at HW level if (somehow) the same gpio input goes down again, and then turns the DC off?
Just out of curiosity, cheers, Al.