Kodi Community Forum
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)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38


RE: Automatic WakeOnLan upon accessing MySql or FileShares - TjaLfE - 2012-11-23

Is the windows build a Frodo Beta 1 with WOA or a master build with WOA?


RE: Automatic WakeOnLan upon accessing MySql or FileShares - bilbonvidia - 2012-11-23

I am trying to test for you, the only thing I need to change now is the network makefile.in to include wakeonaccess.cpp right? Gettin error on make:

Code:
LD      xbmc.bin
xbmc/network/network.a(WakeOnAccess.o): In function `CWakeOnAccess::CMACDiscoveryJob::DoWork()':
/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:73: multiple definition of `CWakeOnAccess::CMACDiscoveryJob::DoWork()'
xbmc/network/network.a(WakeOnAccess.o):/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:73: first defined here
xbmc/network/network.a(WakeOnAccess.o): In function `WakeUpEntry':
/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:59: multiple definition of `CWakeOnAccess::WakeUpEntry::WakeUpEntry()'
xbmc/network/network.a(WakeOnAccess.o):/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:59: first defined here
xbmc/network/network.a(WakeOnAccess.o): In function `CMACDiscoveryJob':
/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:67: multiple definition of `CWakeOnAccess::CMACDiscoveryJob::CMACDiscoveryJob(CStdStr<char> const&)'
xbmc/network/network.a(WakeOnAccess.o):/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:67: first defined here
xbmc/network/network.a(WakeOnAccess.o): In function `CWakeOnAccess::CMACDiscoveryJob::GetMAC() const':
/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:93: multiple definition of `CWakeOnAccess::CMACDiscoveryJob::GetMAC() const'
xbmc/network/network.a(WakeOnAccess.o):/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:93: first defined here
xbmc/network/network.a(WakeOnAccess.o): In function `CWakeOnAccess::CMACDiscoveryJob::GetHost() const':
/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:98: multiple definition of `CWakeOnAccess::CMACDiscoveryJob::GetHost() const'
xbmc/network/network.a(WakeOnAccess.o):/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:98: first defined here
xbmc/network/network.a(WakeOnAccess.o): In function `CWakeOnAccess':
/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:246: multiple definition of `CWakeOnAccess::CWakeOnAccess()'
xbmc/network/network.a(WakeOnAccess.o):/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:246: first defined here
xbmc/network/network.a(WakeOnAccess.o): In function `CWakeOnAccess::Get()':
/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:253: multiple definition of `CWakeOnAccess::Get()'
xbmc/network/network.a(WakeOnAccess.o):/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:253: first defined here
xbmc/network/network.a(WakeOnAccess.o): In function `CWakeOnAccess':
/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:246: multiple definition of `CWakeOnAccess::CWakeOnAccess()'
xbmc/network/network.a(WakeOnAccess.o):/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:246: first defined here
xbmc/network/network.a(WakeOnAccess.o): In function `CWakeOnAccess::QueueMACDiscoveryForHost(CStdStr<char> const&)':
/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:367: multiple definition of `CWakeOnAccess::QueueMACDiscoveryForHost(CStdStr<char> const&)'
xbmc/network/network.a(WakeOnAccess.o):/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:367: first defined here
xbmc/network/network.a(WakeOnAccess.o): In function `CMACDiscoveryJob':
/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:67: multiple definition of `CWakeOnAccess::CMACDiscoveryJob::CMACDiscoveryJob(CStdStr<char> const&)'
xbmc/network/network.a(WakeOnAccess.o):/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:67: first defined here
xbmc/network/network.a(WakeOnAccess.o): In function `CWakeOnAccess::GetSettingFile()':
/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:486: multiple definition of `CWakeOnAccess::GetSettingFile()'
xbmc/network/network.a(WakeOnAccess.o):/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:486: first defined here
xbmc/network/network.a(WakeOnAccess.o): In function `CWakeOnAccess::SaveToXML()':
/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:570: multiple definition of `CWakeOnAccess::SaveToXML()'
xbmc/network/network.a(WakeOnAccess.o):/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:570: first defined here
xbmc/network/network.a(WakeOnAccess.o): In function `CWakeOnAccess::AddHostsFromShare(CMediaSource const&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)':
/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:373: multiple definition of `CWakeOnAccess::AddHostsFromShare(CMediaSource const&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)'
xbmc/network/network.a(WakeOnAccess.o):/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:373: first defined here
xbmc/network/network.a(WakeOnAccess.o): In function `CWakeOnAccess::QueueMACDiscoveryForShare(CMediaSource const&)':
/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:389: multiple definition of `CWakeOnAccess::QueueMACDiscoveryForShare(CMediaSource const&)'
xbmc/network/network.a(WakeOnAccess.o):/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:389: first defined here
xbmc/network/network.a(WakeOnAccess.o): In function `CWakeOnAccess::AddHostsFromShares(std::vector<CMediaSource, std::allocator<CMediaSource> > const&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)':
/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:383: multiple definition of `CWakeOnAccess::AddHostsFromShares(std::vector<CMediaSource, std::allocator<CMediaSource> > const&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)'
xbmc/network/network.a(WakeOnAccess.o):/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:383: first defined here
xbmc/network/network.a(WakeOnAccess.o): In function `CWakeOnAccess::QueueMACDiscoveryForAllRemotes()':
/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:397: multiple definition of `CWakeOnAccess::QueueMACDiscoveryForAllRemotes()'
xbmc/network/network.a(WakeOnAccess.o):/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:397: first defined here
xbmc/network/network.a(WakeOnAccess.o): In function `CWakeOnAccess::LoadFromXML()':
/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:491: multiple definition of `CWakeOnAccess::LoadFromXML()'
xbmc/network/network.a(WakeOnAccess.o):/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:491: first defined here
xbmc/network/network.a(WakeOnAccess.o): In function `WakeUpEntry':
/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:59: multiple definition of `CWakeOnAccess::WakeUpEntry::WakeUpEntry()'
xbmc/network/network.a(WakeOnAccess.o):/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:59: first defined here
xbmc/network/network.a(WakeOnAccess.o): In function `CWakeOnAccess::WakeUpHost(CWakeOnAccess::WakeUpEntry const&)':
/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:294: multiple definition of `CWakeOnAccess::WakeUpHost(CWakeOnAccess::WakeUpEntry const&)'
xbmc/network/network.a(WakeOnAccess.o):/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:294: first defined here
xbmc/network/network.a(WakeOnAccess.o): In function `CWakeOnAccess::WakeUpHost(CStdStr<char> const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:267: multiple definition of `CWakeOnAccess::WakeUpHost(CStdStr<char> const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
xbmc/network/network.a(WakeOnAccess.o):/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:267: first defined here
xbmc/network/network.a(WakeOnAccess.o): In function `CWakeOnAccess::WakeUpHost(CURL const&)':
/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:259: multiple definition of `CWakeOnAccess::WakeUpHost(CURL const&)'
xbmc/network/network.a(WakeOnAccess.o):/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:259: first defined here
xbmc/network/network.a(WakeOnAccess.o): In function `CWakeOnAccess::OnJobComplete(unsigned int, bool, CJob*)':
/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:425: multiple definition of `CWakeOnAccess::OnJobComplete(unsigned int, bool, CJob*)'
xbmc/network/network.a(WakeOnAccess.o):/home/billy/xbmcunpatched/xbmc/network/WakeOnAccess.cpp:425: first defined here
collect2: ld returned 1 exit status
make: *** [xbmc.bin] Error 1



RE: Automatic WakeOnLan upon accessing MySql or FileShares - kricker - 2012-11-23

(2012-11-23, 11:56)TjaLfE Wrote: Is the windows build a Frodo Beta 1 with WOA or a master build with WOA?
I'll always build from master. Master is always up to date. So the last build should be equivilant to Frodo beta 1.


RE: Automatic WakeOnLan upon accessing MySql or FileShares - t4_ravenbird - 2012-11-23

(2012-11-23, 14:48)bilbonvidia Wrote: I am trying to test for you, the only thing I need to change now is the network makefile.in to include wakeonaccess.cpp right? Gettin error on make:


Great!
No, you should not need to do anything now except applying the patch (makefile is taken care of in the patch)

It looks like you maybe have a duplicate inclusion of 'wakeonaccess.cpp' now, you should remove it and possibly do 'make clean' if the problem persists..


RE: Automatic WakeOnLan upon accessing MySql or FileShares - t4_ravenbird - 2012-11-24

Here is my linux-build executable if anyone wants to try to just run it ;
http://www.sendspace.com/file/s273o6

You will need to put it on top of (or besides) an existing xbmc installation (suggest frodo alpha 1, this build is from master and just a little bit newer)


RE: Automatic WakeOnLan upon accessing MySql or FileShares - bilbonvidia - 2012-11-24

Thanks t4, I did manage to build it last night in the end and so far so good, it tells me if the server is already active and it is waking it up when necessary.

On the basis my server sleeps after 20 mins and takes 10 seconds before fully responsive could you advise on the best settings to have in my xml file and I will run it for a while and report back.

I intend to put this on my windows laptop and my other nix machine and will see how they play together.

Does this function work with pvr, my tvheadend server runs on my main machine in the living room not my main server if I add my tv server into xml aswell will xbmc wake that when live tv is accessed from another xbmc machine?


RE: Automatic WakeOnLan upon accessing MySql or FileShares - t4_ravenbird - 2012-11-24

Super!

In the wakonlan.xml I would recomend :
- timeout ; ~900 ; server sleeps after 20, so 15 minutes is a good value (15*60 = 900 seconds)
- waitonline ; 10! (server normally responsive after 10, so with a value of 10 the progress-bar will normally be accurate)
- waitonline2 ; ~20? (additional wait-time if server fails to meet the 'normal' 10 secs)
- waitservices ; ~5 (additional wait after ping-response to allow file-share /mysql deamon to get ready)

*
PVR uses something else completely for waking tv-backend, sorry. (If this woa eventually would be taken into main then imo pvr should be modified to use it aswell)



RE: Automatic WakeOnLan upon accessing MySql or FileShares - t4_ravenbird - 2012-11-24

Come to think of it ; I can try to have a look at the PVR wake-stuff and see if I can change it into utilize woa..
If it works out, I hope you will help to check it out - I have no PVR setup so I have no chance to test anything myself


RE: Automatic WakeOnLan upon accessing MySql or FileShares - t4_ravenbird - 2012-11-24

PVR wakeup was not so easy to merge to use woa unfortunately, it is a different construct so I cannot follow up on that, sorry.


RE: Automatic WakeOnLan upon accessing MySql or FileShares - kricker - 2012-11-27

XBMC is crashing when waking from standby. This has been happening for a while. I am not quite sure if it is because of this patch or not. Does anyone else have this issue? I plan on testing with a plain build tonight and see if it still happens.


RE: Automatic WakeOnLan upon accessing MySql or FileShares - kricker - 2012-11-28

New Windows build online now.
XBMCSetup-20121127-0a59a1f-WOA.exe


RE: Automatic WakeOnLan upon accessing MySql or FileShares - t4_ravenbird - 2012-11-28

(2012-11-27, 22:29)kricker Wrote: XBMC is crashing when waking from standby. This has been happening for a while. I am not quite sure if it is because of this patch or not. Does anyone else have this issue? I plan on testing with a plain build tonight and see if it still happens.

I am still using you build from 10/31 and it wakes consistently fine (and wakes mysql server as soon as I start navigating anything). I am on win8


RE: Automatic WakeOnLan upon accessing MySql or FileShares - TjaLfE - 2012-12-03

Hi Kricker...

Should we expect a beta 2 build with WOA? Or a newer than beta 2 build from the master branch?

//TjaLfE


RE: Automatic WakeOnLan upon accessing MySql or FileShares - kricker - 2012-12-03

I'm building something right now. If all goes well it will be available in a few hours. I have to leave, but when I get back I will post it.

We have discovered some issue with the patch that can causes crashing after resuming from standby, so we have been spending time testing and making adjustments to the patch.



RE: Automatic WakeOnLan upon accessing MySql or FileShares - TjaLfE - 2012-12-03

Sounds cool... hopefully it will fix the standby crashes...

Looking forward to test