Categories

  • Get help and support from other RetroPie users

    27k Topics
    183k Posts
    TPRT

    @mitu said in Splashscreen Stopped Working - GPi 2:

    Probably same issue as https://github.com/RetroPie/RetroPie-Setup/issues/4086 - vlc doesn't support the GPI display.

    I did this part:

    Create a file in /etc/systemd/system/omxplayer.service (needs root) and add to it:

    Description=Show custom splashscreen
    DefaultDependencies=no
    After=dbus.service
    ConditionPathExists=/home/pi/RetroPie/splash-omxplayer.sh

    [Service]
    Type=oneshot
    User=pi
    ExecStart=/home/pi/RetroPie/splash-omxplayer.sh
    RemainAfterExit=yes

    [Install]
    WantedBy=sysinit.target

    then run sudo systemctl daemon-reload && sudo systemctl enable omxplayer.service to make it available.

    But this part here is giving me trouble. What exactly do I need to do?

    Create the splashscreen script in /home/pi/RetroPie/splash-omxplayer.sh (no root needed here) from where you can call omxplayer .... to play your splashscreen.

    What script exactly am I creating there?

    I currently have a file called splash-omxplayer.sh in /home/pi/RetroPie that contains the following:

    #!/bin/sh ROOTDIR="" DATADIR="" REGEX_VIDEO="" REGEX_IMAGE="" CMD="vlc --intf dummy --quiet --no-video-title-show --play-and-exit" CMD_OPTS="" # VLC doesn't detect the connected HDMI port, defaulting to output on the 1st port # do the detection ourselves and pass the HDMI port as a parameter case "$CMD_OPTS" in *mmal*) HDMI_PORT="$(tvservice -l | grep -o -P -m1 "HDMI \K(.*)")" [ -n "$HDMI_PORT" ] && CMD_OPTS="$CMD_OPTS --mmal-display hdmi-$(($HDMI_PORT+1))" ;; esac # Load user settings . /opt/retropie/configs/all/splashscreen.cfg do_start () { local config="/etc/splashscreen.list" local line local re="$REGEX_VIDEO\|$REGEX_IMAGE" local cmd="$CMD $CMD_OPTS" case "$RANDOMIZE" in retropie) line="$(find "$ROOTDIR/supplementary/splashscreen" -type f | grep "$re" | shuf -n1)" ;; custom) line="$(find "$DATADIR/splashscreens" -type f | grep "$re" | shuf -n1)" ;; all) line="$(find "$ROOTDIR/supplementary/splashscreen" "$DATADIR/splashscreens" -type f | grep "$re" | shuf -n1)" ;; list) line="$(cat "$config" | shuf -n1)" ;; esac if [ "$RANDOMIZE" = "disabled" ]; then local count=$(wc -l <"$config") else local count=1 fi [ $count -eq 0 ] && count=1 [ $count -gt 12 ] && count=12 # Default duration is 12 seconds, check if configured otherwise [ -z "$DURATION" ] && DURATION=12 local delay=$((DURATION/count)) cmd="$cmd --image-duration $delay" local pid if [ "$RANDOMIZE" = "disabled" ]; then tr "\n" "\0" <"$config" | xargs -0 $cmd & 2>/dev/null # get cmd pid (child of xargs) pid=`pgrep -P $!` else $cmd "$line" & 2>/dev/null pid=$! fi echo "$pid" >/dev/shm/rp-splashscreen.pid exit 0 } case "$1" in start|"") do_start ;; restart|reload|force-reload) echo "Error: argument '$1' not supported" >&2 exit 3 ;; stop) # No-op ;; status) exit 0 ;; *) echo "Usage: asplashscreen [start|stop]" >&2 exit 3 ;; esac

    But nothing still shows up. And yes, I am still on buster.

  • General discussion relating to using RetroPie and gaming. Please do not use for help/support requests.

    3k Topics
    41k Posts
    A

    Playing through Gotham Knights and I just noticed there's an arcade machine that plays Midway's 1983 game Spy Hunter. Wonder if it's emulated or reimplemented. Found nothing skimming through files, and can't check deeper now.

  • Show off your custom builds, themes, and splashscreens

    2k Topics
    36k Posts
    OrionsangelO

    Here's is a realistic Arcade Bezel for the game 1944: The Loop Master using the Mega Bezel Reflective Shader for Retroarch.

    pic.jpg

  • Share your ideas and suggestions for RetroPie. You can also use this area for development discussion.

    2k Topics
    36k Posts
    DTEAMD

    @Folly said in Tutorial: Handheld and Plug & Play systems with MAME:

    Having a ball with paintball ;-)

    😆

  • Get help and support for PetRockBlock's hardware

    391 Topics
    2k Posts
    L

    Hello!

    I have a ControlBlock, and I'm building an arcade cabinet with Sanwa 30mm buttons. These buttons have two prongs on the bottom, and I've noticed that the ControlBlock appears to have only one screw-terminal for each switch.

    Do I put two quick-connect wires on each button, and route both of them to the same screw terminal? Or do I daisy chain one of the prongs to each button and then to ground?

    Please help, and thank you!

  • Announcements regarding our community
    34 Topics
    48 Posts
    BuZzB

    There has been a fair amount of forum spam in recent months.

    I will look to strengthen our anti spam measures, but I just wanted to thank everyone that flags it for us as it does help with deletion. Cheers!

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.