Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Delay XBMC startup
Thank you for your donation

Pages (2): 1 2 Next »
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Delay XBMC startup
31st Jul, 2013, 03:00 AM
Post: #1
JD2k3 Offline
Registered
Posts: 5
Joined: Jul 2013
Reputation: 1
Delay XBMC startup
Hey I'm currently using Xbian 1.0 beta 1.1 and have small issue related to the startup.

The problem is that I'm using wifi with a shared mysql library which can't be reached since XBMC is starting too fast. About 5~10 seconds after XBMC is started the wifi is working since then the date is changing from 1970 to a normal value Smile

I've tried to put a sleep in the /etc/init/xbmc.conf & /etc/init/xbmc-preload.conf but this just crashes to the login prompt instead of starting XBMC. Also tried the WAITFOR 'ntp' setting in /etc/default/xbmc but that didn't seem to do anything it just started XBMC too fast.

In openelec there is a feature to delay the start of XBMC until the network is working. Is it possible to add this somehow in Xbian?

Thanks!
Find all posts by this user
Quote this message in a reply
31st Jul, 2013, 05:54 AM
Post: #2
InspMustache Offline
Registered
Posts: 8
Joined: Jul 2013
Reputation: 4
RE: Delay XBMC startup
Have you tried adding the sleep command to /etc/rc.local ?
Find all posts by this user
Quote this message in a reply
31st Jul, 2013, 07:29 AM
Post: #3
f1vefour Offline
Administrator
******
Posts: 1,342
Joined: Mar 2013
Reputation: 58
Re: Delay XBMC startup
Try adding rootwait=20 to /boot/cmdline.txt

Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us.
Visit this user's website Find all posts by this user
Quote this message in a reply
31st Jul, 2013, 08:10 AM
Post: #4
JD2k3 Offline
Registered
Posts: 5
Joined: Jul 2013
Reputation: 1
RE: Delay XBMC startup
Hey both thanks for the suggestions but they both don't seem to do anything.. If I manually run the /etc/rc.local it's waiting for the sleep but during boot it doesn't seem to do anything Sad

For the second option it already has by default 'rootwait=10' so I even changed it to 'rootwait=60' but nothing changed still starting without any delay Sad
Find all posts by this user
Quote this message in a reply
31st Jul, 2013, 10:13 AM
Post: #5
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Delay XBMC startup
try adding this in your cmdline.txt:
Code:
ip=:::::eth0:dhcp

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
31st Jul, 2013, 08:22 PM
Post: #6
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Delay XBMC startup
(31st Jul, 2013 03:00 AM)JD2k3 Wrote:  In openelec there is a feature to delay the start of XBMC until the network is working. Is it possible to add this somehow in Xbian?

Thanks!

check the second post http://forum.xbian.org/thread-1117-post-13420.html#pid13420

also, you can add "wpa_supplicant" process to wait for, or dhclient (file /etc/default/xbmc)

check those options.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
1st Aug, 2013, 07:31 AM
Post: #7
JD2k3 Offline
Registered
Posts: 5
Joined: Jul 2013
Reputation: 1
RE: Delay XBMC startup
(31st Jul, 2013 10:13 AM)CurlyMo Wrote:  try adding this in your cmdline.txt:
Code:
ip=:::::eth0:dhcp

Thanks for the suggestion but this option shows a nice blinking cursor on the screen probably since it's trying to start dhcp on eth0 while there's no cable there Tongue

(31st Jul, 2013 08:22 PM)mk01 Wrote:  check the second post http://forum.xbian.org/thread-1117-post-13420.html#pid13420

also, you can add "wpa_supplicant" process to wait for, or dhclient (file /etc/default/xbmc)

check those options.
The first two suggestions here don't seem to do anything I have a feeling that this WAITFOR option is completely ignored because my 'sleep' also didn't do anything.

Then I checked the suggestions in the referred topic since the second option is already in /etc/init/xbmc-preload.conf (default is: start on stopping mountall and started networking). So I added the first option and this is working fine! Smile

So now this line is as follows for me:

Code:
start on stopping mountall and started networking and net-device-up wlan0

If you need more stuff tested let me know.
Hope this helps for future updates of Xbian!
Find all posts by this user
Quote this message in a reply
1st Aug, 2013, 08:14 AM
Post: #8
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Delay XBMC startup
(1st Aug, 2013 07:31 AM)JD2k3 Wrote:  start on stopping mountall and started networking and net-device-up wlan0
[/code]

If you need more stuff tested let me know.
Hope this helps for future updates of Xbian!

fine that it works. so what about generalized setting like for instance
Code:
start on stopping mountall and started networking and net-device-up IFACE!=lo

?

the meaning of WAITFOR variable is list of processes which needs to appear on the process list (be started actually). putting sleep there will actually wait for sleep process to appear, not to sleep x seconds.

catch the event is always best option (net-device-up)

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
3rd Aug, 2013, 07:19 PM
Post: #9
JD2k3 Offline
Registered
Posts: 5
Joined: Jul 2013
Reputation: 1
RE: Delay XBMC startup
(1st Aug, 2013 08:14 AM)mk01 Wrote:  fine that it works. so what about generalized setting like for instance
Code:
start on stopping mountall and started networking and net-device-up IFACE!=lo

?

the meaning of WAITFOR variable is list of processes which needs to appear on the process list (be started actually). putting sleep there will actually wait for sleep process to appear, not to sleep x seconds.

catch the event is always best option (net-device-up)
Yep this generalized setting also works so you can just add it in future versions I guess Smile
Find all posts by this user
Quote this message in a reply
21st Sep, 2013, 05:33 AM
Post: #10
Lupurus Offline
Registered
Posts: 19
Joined: Mar 2013
Reputation: 0
RE: Delay XBMC startup
Hi,
this doesn't work, if the mysql database is on the SD card. Starting mysql needs longer than starting xbmc. Any suggestions?
Find all posts by this user
Quote this message in a reply
21st Sep, 2013, 09:01 PM
Post: #11
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Delay XBMC startup
what xbian version ?

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
21st Sep, 2013, 09:47 PM
Post: #12
Lupurus Offline
Registered
Posts: 19
Joined: Mar 2013
Reputation: 0
RE: Delay XBMC startup
The newest... xbian beta 1.1. The problem exists since 1.0, if I remember rightly.
Find all posts by this user
Quote this message in a reply
21st Sep, 2013, 09:48 PM
Post: #13
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Delay XBMC startup
and mysql is started as sysvinit script (from /etc/init.d/mysqld) ?

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
21st Sep, 2013, 10:15 PM
Post: #14
Lupurus Offline
Registered
Posts: 19
Joined: Mar 2013
Reputation: 0
RE: Delay XBMC startup
I think so. Just installed with "sudo apt-get install ...". Didn't change anything
Find all posts by this user
Quote this message in a reply
21st Sep, 2013, 10:30 PM
Post: #15
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Delay XBMC startup
can please check, just to be sure ?

"ls -la /etc/init.d/mysql" and "ls -la /etc/init/mysql.conf"

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »
Post Reply 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  [SOLVED] How to disable XBMC launch at startup pedrogaza 3 36,030 24th Mar, 2013 12:35 AM
Last Post: pedrogaza

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 9th May, 2025, 10:47 PM Powered By MyBB, © 2002-2025 MyBB Group.