User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Omxplayer waiting for dbus address to appear

Sun Jan 25, 2015 10:37 pm

Hi i updated my raspberry pi with

Code: Select all

sudo rpi-update
.And now i am getting an error that says

Code: Select all

waiting for dbus address to appear
I have a script in /etc/init.d that says

Code: Select all

#! /bin/sh
### BEGIN INIT INFO
# Provides:          asplashscreen
# Required-Start:
# Required-Stop:
# Should-Start:      
# Default-Start:     S
# Default-Stop:
# Short-Description: Show custom splashscreen
# Description:       Show custom splashscreen
### END INIT INFO

do_start () {

    omxplayer /home/pi/video.mov &  
    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

:
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Omxplayer waiting for dbus address to appear

Mon Jan 26, 2015 12:21 am

Any Help?
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Omxplayer waiting for dbus address to appear

Mon Jan 26, 2015 7:29 am

Can you try forcefully downgrading with an old
build form here :

http://omxplayer.sconde.net

Code: Select all

sudo dpkg -i packagename.deb
to install.


ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Omxplayer waiting for dbus address to appear

Mon Jan 26, 2015 1:46 pm

Hi i tried that and thanks for the reply. I think the new firmware mess it up because it start saying

Code: Select all

waiting for dbus address to appear when i recently did rpi-update
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Omxplayer waiting for dbus address to appear

Tue Jan 27, 2015 7:56 am

Yes , try to downgrade your omxplayer forcefully with an
older version available through the link i posted.

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

gkreidl
Posts: 6219
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Omxplayer waiting for dbus address to appear

Tue Jan 27, 2015 9:01 am

ghans wrote:Yes , try to downgrade your omxplayer forcefully with an
older version available through the link i posted.

ghans
That must be a really old version, because dbus support was added about a year ago.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Omxplayer waiting for dbus address to appear

Tue Jan 27, 2015 3:09 pm

gkreidl wrote:
ghans wrote:Yes , try to downgrade your omxplayer forcefully with an
older version available through the link i posted.

ghans
That must be a really old version, because dbus support was added about a year ago.
Hi same version from http://omxplayer.sconde.net/

Code: Select all

Build date: 24/10/2014 00:55 UTC
Git version: 98982df
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

gkreidl
Posts: 6219
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Omxplayer waiting for dbus address to appear

Tue Jan 27, 2015 3:16 pm

There's also a list of older versions.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Omxplayer waiting for dbus address to appear

Tue Jan 27, 2015 3:51 pm

gkreidl wrote:There's also a list of older versions.
Hi I tried many old builds omxplayer still says

Code: Select all

waiting for dbus address to appear
If i move the script to rc.local or cron @reboot omxplayers plays the video at boot but if i run the script from /etc/init.d i get the message waiting for dbus address to appear.
It used to work fine before the recent rpi-update.
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

User avatar
Douglas6
Posts: 4826
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Omxplayer waiting for dbus address to appear

Tue Jan 27, 2015 4:53 pm

You might want to try changing the Required-Start: line in your init script to:

Code: Select all

# Required-Start: dbus

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Omxplayer waiting for dbus address to appear

Tue Jan 27, 2015 5:36 pm

Douglas6 wrote:You might want to try changing the Required-Start: line in your init script to:

Code: Select all

# Required-Start: dbus
Hi thanks for your reply but that still doesn't work :( :cry:
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Omxplayer waiting for dbus address to appear

Tue Jan 27, 2015 6:10 pm

Run

Code: Select all

sudo update-rc.d
to apply the change.


ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Omxplayer waiting for dbus address to appear

Tue Jan 27, 2015 6:35 pm

ghans wrote:Run

Code: Select all

sudo update-rc.d
to apply the change.


ghans
That does not work i get this

Code: Select all

sudo update-rc.d 
update-rc.d: using dependency based boot sequencing
update-rc.d: error: not enough arguments
usage: update-rc.d [-n] [-f] <basename> remove
       update-rc.d [-n] <basename> defaults [NN | SS KK]
       update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] .
       update-rc.d [-n] <basename> disable|enable [S|2|3|4|5]
                -n: not really
                -f: force
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Omxplayer waiting for dbus address to appear

Tue Jan 27, 2015 7:06 pm

Try

Code: Select all

sudo dpkg-reconfigure insserv sysv-rc

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Omxplayer waiting for dbus address to appear

Tue Jan 27, 2015 7:13 pm

ghans wrote:Try

Code: Select all

sudo dpkg-reconfigure insserv sysv-rc

ghans
Thanks for the reply but that still doesn't work
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

Ian57
Posts: 3
Joined: Tue Aug 12, 2014 4:09 pm

Re: Omxplayer waiting for dbus address to appear

Thu Jan 29, 2015 1:15 pm

Hi,

I had the same problem on raspicade... when updating today.

It comes from omxplayer. The asplashscreen script starts too early and some useful programs miss omxplayer.

The solution is to delay asplashscreen at boot :

desactivate asplashscreen

Code: Select all

sudo insserv -r /etc/init.d/asplashscreen
copy it with a new name starting with a letter after A in the ABC ;-) (n is working for me but you can try previous letter after d, like f,

Code: Select all

sudo cp /etc/init.d/asplashscreen /etc/init.d/nasplashscreen
we change in the nasplashscreen file the Provides variable

Code: Select all

#!/bin/bash
### BEGIN INIT INFO
# Provides:          nasplashscreen
# Required-Start:
# Required-Stop:
activate the new script on startup

Code: Select all

sudo insserv /etc/init.d/nasplashscreen
reboot it should work

The backward is that the video will appear later after powering up... because lots of things are loaded before the video ran by nasplashscreen

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Omxplayer waiting for dbus address to appear

Thu Jan 29, 2015 3:04 pm

Hi thanks that works :D
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

Ian57
Posts: 3
Joined: Tue Aug 12, 2014 4:09 pm

Re: Omxplayer waiting for dbus address to appear

Thu Jan 29, 2015 3:08 pm

Of course that works I've done it :D

User avatar
Douglas6
Posts: 4826
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Omxplayer waiting for dbus address to appear

Thu Jan 29, 2015 3:24 pm

This implies the init system in Wheezy ignores the Required-Start prerequisites, and loads things in alphabetical order? That seems nuts to me.

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Omxplayer waiting for dbus address to appear

Thu Jan 29, 2015 4:18 pm

Douglas6 wrote:This implies the init system in Wheezy ignores the Required-Start prerequisites, and loads things in alphabetical order? That seems nuts to me.
I guess they modified the new firmware. It sucks to wait 15+ seconds for video to load instead of 5.
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

xpeace
Posts: 8
Joined: Fri Sep 05, 2014 11:19 am

Re: Omxplayer waiting for dbus address to appear

Sat Jan 31, 2015 9:58 pm

Same problem here, it does even crash the A+ I have here.
First thing is waiting for dbus address to appear, then the pi crashes on the line
... Checking if shift key is held down: Error opening dev/input/event.* no such file or directory ...
boom graphic gets crippled -> game over, seems a problem in the latest firmware release...

Jame_s
Posts: 27
Joined: Thu Jun 07, 2012 12:18 pm

Re: Omxplayer waiting for dbus address to appear

Wed Feb 04, 2015 4:51 pm

i have played a bit with this and it seems that if you put dbus as a requirement in the init info header it will fire the video as quickly as it can. you still have to give it a letter higher than d from what i can tell. i stuck with n.

#! /bin/sh
### BEGIN INIT INFO
# Provides: nsplashscreen
# Required-Start: dbus
# Required-Stop:
# Should-Start:
# Default-Start: S
# Default-Stop:
# Short-Description: Show custom splashscreen
# Description: Show custom splashscreen
### END INIT INFO

Jame_s
Posts: 27
Joined: Thu Jun 07, 2012 12:18 pm

Re: Omxplayer waiting for dbus address to appear

Wed Feb 04, 2015 6:42 pm

scratch that, after further investigation it doesnt seem to make a whole lot of difference.
the lowest letter i got to successfully run was j on my setup

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Omxplayer waiting for dbus address to appear

Tue Feb 24, 2015 10:20 pm

I just got the raspberry pi 2 and doing this method my pi will not boot fully :cry: :shock:
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

rafaelmaeuer
Posts: 1
Joined: Thu Mar 05, 2015 3:26 pm

Re: Omxplayer waiting for dbus address to appear

Thu Mar 05, 2015 3:32 pm

I got it working with my Raspberry Pi 2!
I followed this Tutorial: https://www.youtube.com/watch?v=IX4f3BWOwAc

nasplashscreen:

Code: Select all

#! /bin/sh
### BEGIN INIT INFO
# Provides:           nasplashscreen
# Required-Start:     dbus
# Required-Stop:
# Should-Start:      
# Default-Start:      S
# Default-Stop:
# Short-Description:  Show custom splashscreen
# Description:        Show custom splashscreen
### END INIT INFO

do_start () {

    omxplayer /home/pi/video.mp4 &  
    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

:

Return to “General discussion”