RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    1. Home
    2. Tags
    3. shutdown script
    Log in to post
    • All categories
    • R

      Safe One Button Shutdown for Retropie/Retroarch/Raspberry Pi

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support shutdown script one button metadata issues
      4
      0 Votes
      4 Posts
      888 Views
      WeirdHW

      @ExarKunIv said in Safe One Button Shutdown for Retropie/Retroarch/Raspberry Pi:

      @robertm this is the one i have used and i have not come across any problems with it

      https://github.com/crcerror/ES-generic-shutdown

      Seconded. Once you configure it, it works like a charm. I can even shutdown safely while a game is still running.

    • J

      Help with systemd service to save mame 2003 plus metadata at shutdown

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support shutdown script systemd metadata issues mame 2003 plus
      4
      0 Votes
      4 Posts
      320 Views
      J

      @cyperghost , I have installed your multi_switch.sh script on my setup but it's not working. I've set it up for onoffshim as I'm using a Pimoroni PicadeX hat. If I run the script from the command line, it works as expected, but if I press the power button to shutdown, it doesn't save hi-scores etc. I have just double checked everything and now the Pi has went into a loop of shutting down straight after it executes the script in the first line of autostart.sh. I must be making a mistake somewhere, just darned if I know what I've done wrong!

      I've used another SD card to boot up and get access to my setup. Here is my autostart.sh file. I load the script, then use Runcommand to run my chosen emulator and ROM, then finally if I quit out of the emulator, it loads emulationstation.

      sudo /home/pi/RetroPie/scripts/multi_switch.sh --onoffshim & /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ "arcade" "/home/pi/RetroPie/roms/arcade/starwars.zip" wait $1 emulationstation --no-splash #auto

      I've removed the sudo command from the first line and I can get back in again. Any ideas on what's going wrong?

    • K

      Shutdown circuit advice

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support mausberry shutdown script
      3
      0 Votes
      3 Posts
      397 Views
      K

      @Ashpool thanks for the pointer :)

      Got it working using that script.

      If it helps anyone else my /opt/retropie/configs/all/autostart.sh file looks like:

      sudo /home/pi/RetroPie/scripts/multi_switch.sh --mausberry & emulationstation #auto

      (All on one line in the file)

      I suspect my missing piece with the 'stock' mausberry install script was adding it to the autostart file, but this alternative script works so will stick with it. 👍

    • C

      powerblockswitchoff.sh commands not working

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support shutdown script
      2
      0 Votes
      2 Posts
      279 Views
      BuZzB

      @clarke-baxter give the full path to the MP3 to the play command. Eg

      play /path/to/file.mp3

    • S

      Pi 4 in a Nespi+ case?

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support pi 4 pi3 b+ nespi shutdown script upgrade
      3
      0 Votes
      3 Posts
      480 Views
      S

      @G30FF Thank you :)

    • Z

      Shutdown retropie via CEC when TV goes into standby

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support hdmi cec tvservice shutdown script shutdown
      1
      0 Votes
      1 Posts
      372 Views
      No one has replied
    • cnotoC

      Power off fan

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support fan control shutdown script powerswitch
      7
      0 Votes
      7 Posts
      853 Views
      cyperghostC

      @cnoto For the ONOFFSHIM I used the default setup, proposed by Pimoroni. For the complete powercut you either need a systemd file or you set a dtoverlay to /boot/config.txt

      You can take a look here to this tutorial

    • D

      Advice: Emulation Station Safe Shutdown via GPIO input

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support gpio pin safe shutdown shutdown shutdown script
      1
      0 Votes
      1 Posts
      400 Views
      No one has replied
    • R

      Help with Nespi4 shutdown script

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support nespi4 shutdown script crashing
      2
      0 Votes
      2 Posts
      406 Views
      R

      @rtarroyo BTW

      The internal switch is turned on to safe shutdown and im running the latest version of Retropie, installed it today

    • cnotoC

      Remove text from safe shutdown with Retroflag case

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support shutdown script shutdown text
      17
      0 Votes
      17 Posts
      2k Views
      T

      @cnoto Cool! Glad it worked for you. It's always nice when you can keep plugging away at those pesky little buggers.

    • D

      Run shutdown script via Amazon Alexa?

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support alexa retropie shutdown script
      6
      0 Votes
      6 Posts
      532 Views
      B

      @Dinsdale ah got it! Well glad it works now sounds like a really neat set up. On the other hand I would have never thought to use an Alexa powered outlet so I guess teamwork!

    • R

      Is there a definitive shutdown script for Mausberry switch?

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support mausberry shutdown script
      2
      0 Votes
      2 Posts
      341 Views
      mituM

      @robertybob Check out @cyperghost's shutdown script - https://retropie.org.uk/forum/topic/17415/ - it supports multiple switches and can be adapted to work like you want w.r.t the reset switch.

    • P

      Issues with safe shutdown for Superpi UCase

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support retroflag superpi shutdown script shutdown switch
      11
      0 Votes
      11 Posts
      1k Views
      P

      @mitu @cyperghost

      I sent an e-mail to RetroFlag the other day describing the issue and from looking at the photo of the wires I sent, they said the colored wires were in the wrong position. They apologized then gave some directions on how to take the wires out and what the proper color order is.

      I tried taking them out of the black plug but it seemed a bit of a hassle. Fortunately a replacement case arrived from Amazon today and the colored wires in the replacement case are in the correct position. I rebuilt my RetroPie and the shutdown and reset worked right away :). Thanks again for the help.

      tldr: Original case wires were messed up, replacement worked.

    • M

      retropie shutting down after splash screen after installing a shut down script for nespi case +

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support nespi case + shutdown script not working
      2
      0 Votes
      2 Posts
      422 Views
      P

      I am having the exact same issue with my Kintaro Kuma 9000. I'm using a retropie image that I downloaded from arcade punks. I had originally used another image which did not have these power issues and booted up fine with the power buttons and showed the red LED light. But then I switched to another image and now have this exact same problem. It starts up and then right when the splash screen ends, it shuts down. Did you ever get a fix for this issue?

    • MisterMintsM

      Pi overheating and scripts not working

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support overheating shutdown script shutdown switch heatsink
      12
      0 Votes
      12 Posts
      1k Views
      MisterMintsM

      @mitu said in Pi overheating and scripts not working:

      @MisterMints Most likely something hardware, try to return it and get another.

      Wish it was that simple! My Pi3 is over a year old and was a gift - I treated myself to a new 3B+ and was going to donate the broken one (obviously before it was broken!) to a retro gaming present for my little brother.

      At least now he gets the same present but with a brand new 3B+ instead

    • D

      Change/Disable F4 hotkey for terminal access

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support terminal hotkey keyboard shutdown script triggerhappy
      17
      0 Votes
      17 Posts
      3k Views
      ClydeC

      @de_jean125 Something like that, yes. :)

      My first guess was that it was for your kid(s), by the way.

      You could even let it get nastier … "Stop or I'll hack into your bank account and send all of your money to homes for retired game programmers!"

    • L

      Help on removing and reinstalling a shutdown script

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support help command line shutdown script reinstall
      3
      0 Votes
      3 Posts
      753 Views
      L

      @mitu
      Ho right, 3rd party! Yes that sound fair.
      Ok thanks!

    • B

      Starting retropie stops with RuntimeWarning: A physical pull up resistor is fitted on this channel!

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support shutdown script shutdown switch runtimewarning
      3
      0 Votes
      3 Posts
      789 Views
      B

      @sano Bingo!, just never saw the runtime error before. I went into raspi-config and set it to autologin to console and it boots normally into Retropie, thanks!

    • R

      Gpio shutdown button will boot but won't shut down?

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support shutdown script motion blue emulatiostation
      4
      0 Votes
      4 Posts
      591 Views
      S

      I had the same issues using my Mausberry switch I had the blue and white cable mixed up.

    • cyperghostC

      Multi Switch Shutdown Script!

      Watching Ignoring Scheduled Pinned Locked Moved Ideas and Development shutdown script shutdown switch cyperghost
      272
      4 Votes
      272 Posts
      114k Views
      P

      @cyperghost Hi, Thank you for your great work with this script, but I have the Issue with the Raspberry Pi Zero 2 W.
      I have installed you script and I have Connectet to Pin 5 (GPIO3) and GND a momentary switch. I also preformed the comamnd:

      raspi-gpio set PIN3 ip pu

      The shut down sequenze works fine but the zero dosn't power up again.
      Is this a zero related issue?

      raspi-gpio get

      returns:
      GPIO 3: level=1 fsel=0 func=INPUT

      Best Regards
      Predator2k4