RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Splashscreen Audio through Headphone Jack Problems

    Scheduled Pinned Locked Moved Help and Support
    splashscreenaudioheadphone jack
    3 Posts 3 Posters 1.6k 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.
    • A
      aubie11
      last edited by aubie11

      I built a pi arcade and it uses headphone jack to external speakers. I am using a pi3 board. I have updated to retropie 3.7 using binaries. I built a custom splash screen on my mac using imovie and saved as mp4. It will run when I enable custom splashscreens but sound goes to HDMI not headphone jack. I altered the /etc/init.d/asplashscreen and added -o local to omxplayer command. I rebooted and the movie would not even play.

      I found this old guide http://blog.sheasilverman.com/2013/09/adding-a-startup-movie-to-your-raspberry-pi/#comment-31607 I then did
      sudo chmod a+x /etc/init.d/asplashscreen
      sudo insserv /etc/init.d/asplashscreen
      It worked once. I was excited but when I rebooted again the movie does not even show. The video will not even load unless I remove -o local. Then it will load but the sound goes to HDMI. Very confusing

      I tried to go into audio settings and say only use headphone jack. This works but only after it boots, so the splashscreen sound still goes through HDMI. Here is what my asplashscreen currently looks like. Any help appreciated. This is a gift for my daughter and this is the last step.

      #!/bin/sh
      
      
      ### BEGIN INIT INFO
      # Provides:          asplashscreen
      # Required-Start:    mountdevsubfs
      # Required-Stop:
      # Default-Start:     S
      # X-Start-Before:    checkroot
      # Default-Stop:
      # Short-Description: Show custom splashscreen
      # Description:       Show custom splashscreen
      ### END INIT INFO
      
      do_start () {
          local config="/etc/splashscreen.list"
          local line="$(head -1 "$config")"
          if $(echo "$line" | grep -q ".avi\|.mov\|.mp4\|.mkv\|.3gp\|.mpg\|.mp3\|.wav\|.m4a\|.aac\|.ogg\|.flac"); then
               wait for /tmp to become writable
              while ! touch /tmp/writable 2>/dev/null; do
                  sleep 1
              done
              rm -f /tmp/writable
              omxplayer -b --layer 10000 -o local "$line"
          else
              local count=$(wc -l <"$config")
              [ $count -eq 0 ] && count=1
              [ $count -gt 20 ] && count=20
              local delay=$((20/count))
              fbi -T 2 -once -t $delay -noverbose -a -l "$config" >/dev/null 2>&1
          fi
          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
      
      :
      
      1 Reply Last reply Reply Quote 0
      • BuZzB
        BuZz administrators
        last edited by

        Please place code in a code block - http://commonmark.org/help/ for large logs use an external site like pastebin.com or similar. thanks.

        To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

        1 Reply Last reply Reply Quote 0
        • C
          cowanh00
          last edited by cowanh00

          Did you ever solve this problem in the end? I had the opposite problem. My splashscreen sound was going through the headphone jack and I had to force it through HDMI. I think you got the order of the line wrong. Try using this:

          omxplayer -b -o local --layer 10000 "$line"
          
          1 Reply Last reply Reply Quote 0
          • 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.