Automatic WakeOnLan upon accessing MySql or FileShares - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228) +---- Thread: Automatic WakeOnLan upon accessing MySql or FileShares (/showthread.php?tid=124340) |
RE: Automatic WakeOnLan upon accessing MySql or FileShares - bilbonvidia - 2013-04-19 can you run in an elevated command prompt on the server "powercfg /requests" when the pi is on. what does that say? Can you see what files are open, in win seven you do this by right clicking my computer and select manage, then open files on the left, it shold tell you if the pi has a file open. Also check sessions. Also you haven't installed the wol addon have you? As t4 said we need the log from the pi. RE: Automatic WakeOnLan upon accessing MySql or FileShares - kricker - 2013-05-05 I built a new Windows version a few days ago but forgot to post it: XBMCSetup-20130430-a4130c1-WOA.exe RE: Automatic WakeOnLan upon accessing MySql or FileShares - richsmif - 2013-05-09 I would also like to see WOL upon starting XBMC. I use Windows Home Server which i have to manually start up as i dont run it 24x7. does not have to be complex, just a screen with a list of MAC addresses to wake up when XBMC starts up or starts when SMB share is accessed. etc etc. RE: Automatic WakeOnLan upon accessing MySql or FileShares - da-anda - 2013-05-10 could some of the mac users in here please test if WOL works like expected in this build? http://mirrors.xbmc.org/test-builds/osx/xbmc-20130509-4093b15-master-i386.dmg If you're fast with testing and confirm it working I'll merge it into mainline. RE: Automatic WakeOnLan upon accessing MySql or FileShares - regnets - 2013-05-10 Sorry for the github comment, i didn't followed the forum topic. I'm going to test the pr now. Do i have to care about something in special besides the wake on lan function? Update: - The wakeonlan.xml gets created correctly by enabling the feature and/or adding sources. - XBMC sends a magic packet if i try to access my shares and a progress dialog comes up - It is not working for live-tv? So far no crashes or any other hints of broken things RE: Automatic WakeOnLan upon accessing MySql or FileShares - t4_ravenbird - 2013-05-10 - in settings/system/power-saving there should be an option to "try to wake.." and when you enable it and exit from settings there should be a little notification popping up that mac-discovery was performed (only 1st time) ; check that it comes and that it is successful (your server must be running at this point for it to succeed) - put server to sleep and then start xbmc. navigate to a share and observe that a progress-dialog pops up and spins while waiting for server to respond to ping (we are particularly interested in knowing whether 'mac-discovery' and 'ping' is working for osx, those are the new platform-specific functions) -please post xbmc.log so we can check what happened thanks! RE: Automatic WakeOnLan upon accessing MySql or FileShares - kricker - 2013-05-10 Great work T4_ravenbird. Thanks to you and our handful of testers we are finally close to getting this merged. If not this windows then the next. RE: Automatic WakeOnLan upon accessing MySql or FileShares - t4_ravenbird - 2013-05-10 (2013-05-10, 20:04)regnets Wrote: ... live-tv is not specifically targeted, no. I dont know how that part of xbmc functions at all so I have not done anything in that direction (kricker has also noticed this, but I believe it is a adaption that can be done after wake-on-access gets into main) RE: Automatic WakeOnLan upon accessing MySql or FileShares - kricker - 2013-05-10 The live TV settings has it's own wake on lan stuff. It uses some linux script or similar to do the wake. It would be nice to get that reworked to function with this WOA code. What I did is add my recording directory as a video source so it to can be woke with this code. RE: Automatic WakeOnLan upon accessing MySql or FileShares - regnets - 2013-05-10 (2013-05-10, 20:23)t4_ravenbird Wrote: - in settings/system/power-saving there should be an option to "try to wake.." and when you enable it and exit from settings there should be a little notification popping up that mac-discovery was performed (only 1st time) ; check that it comes and that it is successful (your server must be running at this point for it to succeed) Ok i started again with a blank profile. 1. Started the server 2. Started xbmc 3. I added two sources (first with dns name and second with ip-address) 4. enabled live tv with tvheadend (dns name) 5. enabled the wol feature 5a. popup for dns name comes up 5b. popup for ip-address comes up 6. shutdown xbmc 7. increased wait time (my server is booting not resuming) 8. shutdown server 9. started xbmc 9a. xbmc started the server after accessing the first share First log: http://pastebin.com/cnBF5Eg3 Second log (after restarting xbmc): http://pastebin.com/pBkWPaQa I hope i didn't forget anything... Best regards regnets RE: Automatic WakeOnLan upon accessing MySql or FileShares - t4_ravenbird - 2013-05-10 Brilliant, thanks! Your test shows that much is working as expected but unfortunately the log also has this entry ; 21:08:12 T:2957651968 ERROR: Ping fail : status = 16384, errno = 3 : 'ping -c 1 -w 1 10.0.0.253' 21:08:16 T:2897361448 ERROR: Previous line repeats 702 times. This means that the icmp-ping (default) does not work ! You could try the "tcp-ping" mode (see opening post) but I dont know which port numbers are useful with nfs like you have. (samba is 445 which is what I use in my setup, or 3306 with MySql ) Since icmp-ping fails I am afraid that will be a show-stopper RE: Automatic WakeOnLan upon accessing MySql or FileShares - regnets - 2013-05-10 Ok, i tried the following (ping-mode:1; port 3306 [also got a mysql server on the same machine]) http://pastebin.com/t5qkASwF Here is the log: http://pastebin.com/sPnszqhf That did work! I also tested the icmp thingy again.... Could it be possible that the ping command is not in the right shape? Code: macbook:~ andy$ ping -c 1 -w 1 10.0.0.253 The w needs to be capitalized, or am i wrong? Code: macbook:~ andy$ ping -c 1 -W 1 10.0.0.253 Best regards regnets RE: Automatic WakeOnLan upon accessing MySql or FileShares - t4_ravenbird - 2013-05-10 yep, that is a perfect sequence you got there ; 21:37:51 T:2897361448 NOTICE: WakeOnAccess [server] trigged by accessing : nfs://server/media/TV-Shows/ .. 21:38:59 T:2897361448 NOTICE: WakeOnAccess sequence completed, server started * This is what we want, but in your previous log with icmp-ping we had ; 21:08:12 T:2897361448 NOTICE: WakeOnAccess [server] trigged by accessing : nfs://server/media/TV-Shows/ .. 21:10:32 T:2897361448 NOTICE: WakeOnAccess timeout/cancel while waiting for response RE: Automatic WakeOnLan upon accessing MySql or FileShares - regnets - 2013-05-10 (2013-05-10, 21:50)t4_ravenbird Wrote: yep, that is a perfect sequence you got there ; So it is not the malformed ping command? However the PR got commited into main? RE: Automatic WakeOnLan upon accessing MySql or FileShares - t4_ravenbird - 2013-05-10 (2013-05-10, 21:41)regnets Wrote: ... I think you nailed it, looking at http://linux.die.net/man/8/ping it appears uppercase is correct also for linux, but linux has not complained .. , my bad |