Page 1 of 2

Omxplayer waiting for dbus address to appear

Posted: Sun Jan 25, 2015 10:37 pm
by expandables
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

:

Re: Omxplayer waiting for dbus address to appear

Posted: Mon Jan 26, 2015 12:21 am
by expandables
Any Help?

Re: Omxplayer waiting for dbus address to appear

Posted: Mon Jan 26, 2015 7:29 am
by ghans
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

Re: Omxplayer waiting for dbus address to appear

Posted: Mon Jan 26, 2015 1:46 pm
by expandables
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

Re: Omxplayer waiting for dbus address to appear

Posted: Tue Jan 27, 2015 7:56 am
by ghans
Yes , try to downgrade your omxplayer forcefully with an
older version available through the link i posted.

ghans

Re: Omxplayer waiting for dbus address to appear

Posted: Tue Jan 27, 2015 9:01 am
by gkreidl
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.

Re: Omxplayer waiting for dbus address to appear

Posted: Tue Jan 27, 2015 3:09 pm
by expandables
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

Re: Omxplayer waiting for dbus address to appear

Posted: Tue Jan 27, 2015 3:16 pm
by gkreidl
There's also a list of older versions.

Re: Omxplayer waiting for dbus address to appear

Posted: Tue Jan 27, 2015 3:51 pm
by expandables
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.

Re: Omxplayer waiting for dbus address to appear

Posted: Tue Jan 27, 2015 4:53 pm
by Douglas6
You might want to try changing the Required-Start: line in your init script to:

Code: Select all

# Required-Start: dbus

Re: Omxplayer waiting for dbus address to appear

Posted: Tue Jan 27, 2015 5:36 pm
by expandables
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:

Re: Omxplayer waiting for dbus address to appear

Posted: Tue Jan 27, 2015 6:10 pm
by ghans
Run

Code: Select all

sudo update-rc.d
to apply the change.


ghans

Re: Omxplayer waiting for dbus address to appear

Posted: Tue Jan 27, 2015 6:35 pm
by expandables
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

Re: Omxplayer waiting for dbus address to appear

Posted: Tue Jan 27, 2015 7:06 pm
by ghans
Try

Code: Select all

sudo dpkg-reconfigure insserv sysv-rc

ghans

Re: Omxplayer waiting for dbus address to appear

Posted: Tue Jan 27, 2015 7:13 pm
by expandables
ghans wrote:Try

Code: Select all

sudo dpkg-reconfigure insserv sysv-rc

ghans
Thanks for the reply but that still doesn't work

Re: Omxplayer waiting for dbus address to appear

Posted: Thu Jan 29, 2015 1:15 pm
by Ian57
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

Re: Omxplayer waiting for dbus address to appear

Posted: Thu Jan 29, 2015 3:04 pm
by expandables
Hi thanks that works :D

Re: Omxplayer waiting for dbus address to appear

Posted: Thu Jan 29, 2015 3:08 pm
by Ian57
Of course that works I've done it :D

Re: Omxplayer waiting for dbus address to appear

Posted: Thu Jan 29, 2015 3:24 pm
by Douglas6
This implies the init system in Wheezy ignores the Required-Start prerequisites, and loads things in alphabetical order? That seems nuts to me.

Re: Omxplayer waiting for dbus address to appear

Posted: Thu Jan 29, 2015 4:18 pm
by expandables
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.

Re: Omxplayer waiting for dbus address to appear

Posted: Sat Jan 31, 2015 9:58 pm
by xpeace
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...

Re: Omxplayer waiting for dbus address to appear

Posted: Wed Feb 04, 2015 4:51 pm
by Jame_s
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

Re: Omxplayer waiting for dbus address to appear

Posted: Wed Feb 04, 2015 6:42 pm
by Jame_s
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

Re: Omxplayer waiting for dbus address to appear

Posted: Tue Feb 24, 2015 10:20 pm
by expandables
I just got the raspberry pi 2 and doing this method my pi will not boot fully :cry: :shock:

Re: Omxplayer waiting for dbus address to appear

Posted: Thu Mar 05, 2015 3:32 pm
by rafaelmaeuer
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

: