Delay XBMC startup
|
31st Jul, 2013, 03:00 AM
Post: #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 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! |
|||
31st Jul, 2013, 05:54 AM
Post: #2
|
|||
|
|||
RE: Delay XBMC startup
Have you tried adding the sleep command to /etc/rc.local ?
|
|||
31st Jul, 2013, 07:29 AM
Post: #3
|
|||
|
|||
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. |
|||
31st Jul, 2013, 08:10 AM
Post: #4
|
|||
|
|||
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
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 |
|||
31st Jul, 2013, 10:13 AM
Post: #5
|
|||
|
|||
RE: Delay XBMC startup
try adding this in your cmdline.txt:
Code: ip=:::::eth0:dhcp pilight - modular domotica solution
|
|||
31st Jul, 2013, 08:22 PM
Post: #6
|
|||
|
|||
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? 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 |
|||
1st Aug, 2013, 07:31 AM
Post: #7
|
|||
|
|||
RE: Delay XBMC startup
(31st Jul, 2013 10:13 AM)CurlyMo Wrote: try adding this in your cmdline.txt: 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 (31st Jul, 2013 08:22 PM)mk01 Wrote: check the second post http://forum.xbian.org/thread-1117-post-13420.html#pid13420The 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! 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! |
|||
1st Aug, 2013, 08:14 AM
Post: #8
|
|||
|
|||
RE: Delay XBMC startup
(1st Aug, 2013 07:31 AM)JD2k3 Wrote: start on stopping mountall and started networking and net-device-up wlan0 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 |
|||
3rd Aug, 2013, 07:19 PM
Post: #9
|
|||
|
|||
RE: Delay XBMC startup
(1st Aug, 2013 08:14 AM)mk01 Wrote: fine that it works. so what about generalized setting like for instanceYep this generalized setting also works so you can just add it in future versions I guess |
|||
21st Sep, 2013, 05:33 AM
Post: #10
|
|||
|
|||
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? |
|||
21st Sep, 2013, 09:01 PM
Post: #11
|
|||
|
|||
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 |
|||
21st Sep, 2013, 09:47 PM
Post: #12
|
|||
|
|||
RE: Delay XBMC startup
The newest... xbian beta 1.1. The problem exists since 1.0, if I remember rightly.
|
|||
21st Sep, 2013, 09:48 PM
Post: #13
|
|||
|
|||
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 |
|||
21st Sep, 2013, 10:15 PM
Post: #14
|
|||
|
|||
RE: Delay XBMC startup
I think so. Just installed with "sudo apt-get install ...". Didn't change anything
|
|||
21st Sep, 2013, 10:30 PM
Post: #15
|
|||
|
|||
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 |
|||
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread: | Author | Replies | Views: | Last Post | |
[SOLVED] How to disable XBMC launch at startup | pedrogaza | 3 | 35,499 |
24th Mar, 2013 12:35 AM Last Post: pedrogaza |