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!
Have you tried adding the sleep command to /etc/rc.local ?
Try adding rootwait=20 to /boot/cmdline.txt
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
try adding this in your cmdline.txt:
(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.
(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#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!
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 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)
(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
Hi,
this doesn't work, if the mysql database is on the SD card. Starting mysql needs longer than starting xbmc. Any suggestions?
The newest... xbian beta 1.1. The problem exists since 1.0, if I remember rightly.
and mysql is started as sysvinit script (from /etc/init.d/mysqld) ?
I think so. Just installed with "sudo apt-get install ...". Didn't change anything
can please check, just to be sure ?
"ls -la /etc/init.d/mysql" and "ls -la /etc/init/mysql.conf"