Posts: 351
Joined: Sep 2009
Reputation:
2
Hi, i use linux and would apreciate to see your work in mainline !!!
I dont understand why you say you dont have ping under linux ?
For auto-discovery under linux, you can use arping to get mac adress on the same sub-network from IP, but i dont know what tools is embededd in xbmc , maybe add arp to the packet dependency (i tried with openelec and arp is there)?
It only knows what has already been discovered though so you would have to initiate some contact to a specific IP. Probably using ping would be easy
ping -b <broadcast address>
can be used to scan the network and fills your arp cache.
Bibi
Posts: 3,918
Joined: Apr 2004
Reputation:
29
kricker
Team-XBMC QA Specialist
Posts: 3,918
We don't have ping and autodiscovery under Linux, because no one has added that for XBMC under any of the other supported OSes. I agreed arp could be the way. We just need someone to do the dirty work.
Posts: 520
Joined: Jun 2011
Reputation:
2
2012-10-21, 23:12
(This post was last modified: 2012-10-21, 23:39 by bilbonvidia.)
right....
xbmc on ubuntu is hanging when there is a wakaonlan.xml file present. I first used my windows machine to create the file:
<onaccesswakeup>
<netinittimeout>10</netinittimeout>
<wakeup>
<host>192.168.0.2</host>
<mac>00-1D-92-DD-1A-0D</mac>
<timeout>300</timeout>
<waitonline>120</waitonline>
<waitonline2>0</waitonline2>
<waitservices>5</waitservices>
</wakeup>
</onaccesswakeup>
Then tried manually editing:
<onaccesswakeup>
<netinittimeout>60</netinittimeout>
<wakeup>
<host>192.168.0.2</host>
<mac>00-1D-92-DD-1A-0D</mac>
<timeout>1200</timeout>
<waitonline>40</waitonline>
<waitonline2>40</waitonline2>
<waitservices>5</waitservices>
</wakeup>
</onaccesswakeup>
It just seems to hang at the xbmc logo
Is there some sort of log , I couldn't see anything?
apart from
22:20:38 T:3078149904 DEBUG: WakeOnAccess [192.168.0.2] trigged by accessing : DataBase:MyMusic28
22:20:38 T:3078149904 INFO: WakeOnLan - Magic packet send to '00-1D-92-xx-1A-0D'
Posts: 3,918
Joined: Apr 2004
Reputation:
29
kricker
Team-XBMC QA Specialist
Posts: 3,918
Was the server asleep? Did the packet make it over and wake it up? If you are using mySQL, XBMC will stay on the splash screen if it can not connect to the database.
Posts: 283
Joined: Mar 2012
Reputation:
13
The log shows that the magic packet is successfully sent.
After that, the config specifies to wait for 40+40+5 seconds and that wait is uninteruptable since there is no ping function, the full 85 seconds must elapse.
Also, since this is in the startup (the log shows you are connecting to MySQL) , there can be no visual feedback since the UI has not yet been started.
In other words ; it is expected that xbmc should 'hang' for a long periode, but it is also expected that it eventually gets going (provided the server is awake)
Posts: 520
Joined: Jun 2011
Reputation:
2
2012-10-22, 10:02
(This post was last modified: 2012-10-22, 10:11 by bilbonvidia.)
Thanks for the responses. The server was awake all the time during the test, xbmc crashes after the splash screen and spits me out back to the desktop.
If I do sleep the server the same happens and the server does not wake, I can wake the server using wakonlan from the command line.
Is it hanging because it can't verify online?
Posts: 520
Joined: Jun 2011
Reputation:
2
Okay just to clarify, I left the server on all of the time so regardless of whether the wol packet is sent there should be no issue connecting after the wait period but xbmc crashes after this period.
If I delete the wakeonlan.xml file from userdata and start xbmc again it connects to mysql and loads straight away.
Are there any trouble shooting steps you would like me to try?
Posts: 520
Joined: Jun 2011
Reputation:
2
Okay so I am stuck at work but, was able to login remotely and rebuild and create a new xml file. Got one of the kids to start it and apparently it has indeed loaded without crashing so perhaps progress.
I will do a server sleep test when I get home and report back.
Posts: 3,918
Joined: Apr 2004
Reputation:
29
kricker
Team-XBMC QA Specialist
Posts: 3,918
Great. Thank for sticking with it!
Posts: 520
Joined: Jun 2011
Reputation:
2
This is odd, xbmc was on when I got home so had booted fine with the xml file present. It locked up though when I tried to exit. I slept my server and rebooted the machine from a remote terminal and the server did wake but xbmc went into a crash restart loop so I tried rebooting the xbmc machine again while leaving the server on but the same thing happened, xbmc crashing and restarting, I could for a split second see the xbmc home menu screen before crashes however, I dont remember this yesterday. I deleted the xml file while this was occurring and sure enough it the stopped the crash restart loop.