Powerblock proper ES shutdown
-
@saturnx
@cyperghost has released a full power, exit script that works for many power options a while ago. It’s generic and just have to run certain tags from it to get the result you want.
https://github.com/crcerror/ES-generic-shutdown -
@lostless Thanks!
I've seen that, but when using the PowerBlock, that script would be overkill since the PowerBlock driver already handles monitoring of the status of the switch and simply calls etc/powerblockswitchoff.sh
So really all that's necessary is ensuring the proper shutdown calls are made within that script to ensure the safe shutdown of ES, etc..
I'll dig through the generic script and compare - just wanted to check in to see there had been any updates/improvements or other best practices for shutting down ES gracefully.
-
@saturnx all you really have to do is, I think, is point to a Different file in that call. No need to edit the powerblockswitchoff.sh file.
Change the main script to be the SHUTDOWNSCRIPT= to
/home/pi/RetroPie/scripts/multi_switch.sh --es-poweroff
After you install the generic multi switch script. You don’t have to start it as boot up. Just install it where it says to install according to the get hub page and you can use it. No need to use the the scripts ability to sense a switch
Test it out and see if it works. -
@lostless thanks!
Took a slightly different approach and called the multi-switch shutdown script from
etc/powerblockswitchoff.sh
So that I’d keep the main driver intact.Thanks again! This was something so simple that I overlooked. Totally missed that the script could issue the necessary ES shutdown without tying it to a physical switch.
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.