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

      Backup & Restore bash script with option to syncronize on google drive account

      Watching Ignoring Scheduled Pinned Locked Moved Ideas and Development bash script backup recovery google drive
      12
      0 Votes
      12 Posts
      1k Views
      Q

      Next days I'll translate to english the pdf with the instructions of the script, and included the file on gitlab too.

      EDITED (2019-08-23): Now instructions are translated to english.

    • ClydeC

      [Script] One-liner to backup or disable the gamelists in all rom directories

      Watching Ignoring Scheduled Pinned Locked Moved Projects and Themes gamelist gamelist.xml backup script how-to
      1
      2 Votes
      1 Posts
      678 Views
      No one has replied
    • T

      Open Program from Python script

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support kodi python popen script github
      5
      0 Votes
      5 Posts
      637 Views
      T

      @mitu Ah, that scuppers those plans then. I think I'll give this up as a failed experiment. I did manage to get Kodi to launch from my green button by importing psutil and check_output and changing the code to

      espid = int(check_output(["pidof","-s","emulationstation"])) es = psutil.Process(espid) es.suspend() Kodi = subprocess.Popen("/home/pi/RetroPie/roms/ports/Kodi.sh") Kodi.wait es.resume()

      But then the script would no longer start from my crontab on boot so not really usable.

    • K

      bash command for this code need help

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support bash command script
      4
      0 Votes
      4 Posts
      383 Views
      cyperghostC

      @kok00 cmp does not care of file names, it compares content

    • K

      how do i make a script for this code

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support script ssh fdupes
      4
      0 Votes
      4 Posts
      205 Views
      HalvhjearneH

      tbh i really dont see the point, but ofc its possible to make a shell script call it whatever and execute.

      ./myscript
    • K

      remove duplicated roms : Please read this simple script

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support script scripts command roms duplicated
      3
      0 Votes
      3 Posts
      1k Views
      mituM

      MODERATION NOTE: I merged the 2 topics you opened. If you find your posts flagged as spam, try removing the code blocks first when posting.

    • muldjordM

      Auto USB copy, how does it work? [solved]

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support usb sdcard udev script
      3
      0 Votes
      3 Posts
      481 Views
      muldjordM

      Thanks @mitu, that'll get me started :D

    • langestL

      ScummVM games not launching from menu

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support scummvm script menu
      9
      0 Votes
      9 Posts
      833 Views
      langestL

      Is there anyone else who has ScummVm set up? What do you have in your <game>.svm?

    • KimDbK

      [SCRIPT] Plug'n'Play RetroPie/ES script (with installer)

      Watching Ignoring Scheduled Pinned Locked Moved Ideas and Development script github retropie showhidesystems development
      1
      0 Votes
      1 Posts
      463 Views
      No one has replied
    • K

      Updated the script to 4.4.12 and I lost video screen saver suport?

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support screensaver 4.4.12 script
      5
      0 Votes
      5 Posts
      433 Views
      K

      @mitu I never tried playing them with omxplayer from command line i am sorry still new to all of this. I been working on this image from scratch for a few months now and just when i thought i was done i went and updated the script and this is what happened. The videos do play in the gamelist previews just fine. its when the screen saver kicks in is when i get the issue. This image is for an arcade1up cab and i use the screensaver option so that in can just run when i am not using it.

    • O

      {SOLVED} How to make a momentary push button that exit games and take me back to game menu ?

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support push button retropie psx script newbie
      56
      0 Votes
      56 Posts
      7k Views
      O

      @mitu sure bro, again thank you very much

    • Sage FrekeS

      Does the RetroFlag MEGAPi work with the Raspberry Pi 1?

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support help retroflag case script
      19
      0 Votes
      19 Posts
      1k Views
      Sage FrekeS

      @cyperghost The output of my raspi-gpio get 3 was "level=0 fsel=0 func=INPUT", but if I put it in line 322 the Pi always turns off as soon as emulationstation loads, even if completely disconnected from the case.

      However, I just realised something... the power socket on the MEGAPi case it's not just a cutout, like the HDMI port, but it has its own little board, I didn't notice until now, I just mindlessly plugged the power directly to the Pi, and that was the problem, the multi_switch.sh now works perfectly. Sorry for wasting your time :( (however, the fact that multiswitch086.sh almost worked without using the power board was in itself impressive).

      As a partial way to make amends I'll correct an error on the installation instructions of the script:

      Here you have to add a sudo before chmod, otherwise it gives you "permission denied"

      wget https://raw.githubusercontent.com/crcerror/ES-generic-shutdown/master/multi_switch.sh && chmod +x multi_switch.sh
    • George SpiggottG

      Script to Mirror SD Card to USB Stick?

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support script retropie usb stick
      2
      1 Votes
      2 Posts
      394 Views
      mituM

      @George-Spiggott said in Script to Mirror SD Card to USB Stick?:

      Currently RetroPie automatically copies files (roms and configs) from a USB stick to the Pi. Is it possible to disable this process so that it happens on command rather than automatically?

      Yes, disable the usbmount service and the synchronization will not happen automatically.

      Also is it possible to reverse the process so that the USB stick can be used to mirror the contents of the Pi, or at least select folders from it, either automatically or ideally on command?

      Yes, it's possible, but there's no provision in the RetroPie scripts for this kind of scenario.

      When you want to keep your ROMs on an external drive, you create a retropie-mount folder on it and RetroPie would sync the ROMs from the SDCard to the disc, then it will mount the disc so you can use it.

      If dont' want to use the external disc for the ROMs, but just synch to it, then you'll have to create a script to do it. Both synchronization methods (USB to card and vice-versa) use the rsync command, you can easily create 2 scripts to do this synchronization and add them under the retropiemenu system so you can call them directly from Emulationstation.

    • AirleA

      Garbled characters on "Retropie-Setup Script"

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support font characters encoding script
      3
      0 Votes
      3 Posts
      637 Views
      mituM

      @jerryfudd It's a raspi-config configuration error. Modify the
      /etc/systemd/system/getty@tty1.service.d/autologin.conf
      file and replace its contents with

      [Service] ExecStart= ExecStart=-/sbin/agetty --autologin pi --noclear %I $TERM

      then restart your system.

    • Z

      Trying to make script module for my application please help

      Watching Ignoring Scheduled Pinned Locked Moved Ideas and Development development script modules scriptmodules
      16
      1 Votes
      16 Posts
      2k Views
      Z

      @mitu I got it working with the runcommand now. Only a small visual issue (no progress bar while downloading a game).

      But I found a bug in downloadAndExtract, and I opened a pull request :D
      https://github.com/RetroPie/RetroPie-Setup/pull/2628

    • D

      emulationstation running as a service

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support service script python
      3
      0 Votes
      3 Posts
      1k Views
      K

      I want to start emulationstation on-demand, this is what I've come up with:

      Emulationstation heavily depends on a terminal being allocated for it to work. It switches a lot between graphical and text-mode. So in "/etc/systemd/system/my-emulationstation.service":

      [Unit] Description=my emulationstation [Service] User=pi ExecStart=/usr/local/bin/run-emulationstation Type=simple StandardInput=tty-force TTYVHangup=yes TTYPath=/dev/tty20 TTYReset=yes

      Also, there's a bug that requires emulationstation to be started inside /home/pi, so in "/usr/local/bin/run-emulationstation":

      #! /bin/bash # switch to same tty allocated in .service chvt 20 # cd to home cd /home/pi # run emulationstation in foreground process /opt/retropie/supplementary/emulationstation/emulationstation.sh

      And for the curious: I want it to start when specific hardware is attached, specifically an 8Bitdo Zero Bluetooth Gamepad. So in "/etc/udev/rules.d/50-my-emulationstation.rules":

      ACTION=="add", SUBSYSTEM=="input", ATTR{name}=="8Bitdo Zero GamePad", TAG+="systemd", ENV{SYSTEMD_WANTS}="my-emulationstation"
    • F

      Run roms directly from your desktop with a python script !

      Watching Ignoring Scheduled Pinned Locked Moved Ideas and Development script github testing
      3
      0 Votes
      3 Posts
      1k Views
      F

      I have made a verbose version of retropieXstation called retropieXstation-verbose.

      It is created to find problems if roms or emulators do not work.

      Beware : It only works with retroarch libretro cores and zipped rom files do not always work !

      You can download it with 'wget' in your terminal and then puts it on your desktop :

      wget https://raw.githubusercontent.com/FollyMaddy/retropieXstation/master/retropieXstation-verbose.py -P $HOME/Desktop

      Instructions on how to run the script are in the script itself.
      Just load it in a text editor and read the text.

      Hope you all find this verbose script usefull.

    • A

      calling another script from within runcommand-onstart.sh?

      Watching Ignoring Scheduled Pinned Locked Moved Ideas and Development runcommand bash script
      2
      0 Votes
      2 Posts
      498 Views
      mituM

      Just add the full path to the script in the .sh file and make sure it's executable.

    • T

      Installing Picase script

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support help please script
      2
      0 Votes
      2 Posts
      321 Views
      mituM

      @tyler513 The commands and steps to follow are on the page you mentioned, make sure you're typing the download command correctly. Is your internet working ?

    • S

      Display running game on LED Matrix - Help

      Watching Ignoring Scheduled Pinned Locked Moved Projects and Themes pi 3 b+ led matrix marquee script
      3
      0 Votes
      3 Posts
      1k Views
      alinkeA

      you could try this project http://pixelcade.org , includes artwork for 128x32 too. Disclosure, I'm the creator of this one and sell them as kits.

      alt text

      alt text