RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Powerblock proper ES shutdown

    Scheduled Pinned Locked Moved ControlBlock, PowerBlock & Co.
    powerblockmausberrshutdownswitch
    24 Posts 6 Posters 14.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • lostlessL
      lostless @SaturnX
      last edited by

      @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

      SaturnXS 1 Reply Last reply Reply Quote 0
      • SaturnXS
        SaturnX @lostless
        last edited by

        @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.

        lostlessL 1 Reply Last reply Reply Quote 0
        • lostlessL
          lostless @SaturnX
          last edited by lostless

          @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.

          SaturnXS 1 Reply Last reply Reply Quote 1
          • SaturnXS
            SaturnX @lostless
            last edited by

            @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.

            1 Reply Last reply Reply Quote 1
            • First post
              Last post

            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.