Way to shutdown secondary pi when quit emulationstation?
-
I have just set up my retropie on an ubuntu pc and have configured a secondary rpi4 to run my digital marquee. The secondary marquee runs on simpleServer from Visual-RetroPie-Control-Maps and LCDMarqueeUpdate. I got it working and everything looks good there.
My issue is having a nice way to properly shut down both computers without using a hard power off (which is my current setup). I was thinking there is probably a way to use a similar service to control the rpi4 - where ubuntu would shut down using emulationsstation option but then send a signal to the rpi to shut down.
Has anyone got something like this to work, or any ideas on how to do it. I imagine it would be pretty simple if one knew what they were doing (as I do not).
-
Immediate shutdown
sudo shutdown -h now
Shutdown in 20 minutes
sudo shutdown -h 20
Shutdown at 5:30 pm
sudo shutdown -h 17:30
Cancel shutdown
sudo shutdown -c
-
@addison said in Way to shutdown secondary pi when quit emulationstation?:
Immediate shutdown
sudo shutdown -h now
Shutdown in 20 minutes
sudo shutdown -h 20
Shutdown at 5:30 pm
sudo shutdown -h 17:30
Cancel shutdown
sudo shutdown -c
Thanks, Addison. This shows me how to shut it down through the cmd line or ssh. What I really would like to do is have no interaction with the rpi that runs the marquee. I would like to have a signal sent to it from the main computer (Ubuntu) which makes it shut down, and I want this automatically sent when I shut down the main computer through emulation station.
Do you have any thoughts on how to do this?
-
You can run a command via
ssh
from your Ubuntu system on the pissh user@<pi> sudo shutdown -h now
You'll have to setup a passwordless
ssh
login from the Ubuntu to the Pi, you can use a key-based login (as shown here). This way you can run commands on the Pi without providing a user/pass tossh
.The command to shutdown your Pi can be hooked up to the EmulationStation
shutdown
event, in a script - see https://retropie.org.uk/docs/EmulationStation/#scripting. -
@mitu Thanks...this just might work. I'll give it a go and let you know.
I appreciate the support.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.