Automatic WakeOnLan upon accessing MySql or FileShares
Solo0815
Senior Member Posts: 296 Joined: Sep 2004 Reputation: 0 |
2012-04-11 21:37
Post: #11
We are after "Eden" -> implement it!
there are only 10 sorts of people: those who understand binary and those who don't ATV2 --- PC Kubuntu 12.10 --- Xbox1 with XBMC4Xbox --- PC Win7 --- Raspberry Pi --- VU+ Duo |
| find quote |
kricker
Team-XBMC QA Specialist Posts: 3,308 Joined: Apr 2004 Reputation: 16 Location: Knoxville, TN |
2012-04-12 19:33
Post: #12
I find this patch very intriguing. This si something I have been wanting for a very long time. I plan make a build with this patch today and see how it performs.
Can you explain the <tmout>700</tmout> option a bit more? Why would we need to constantly send wake-up packets to the server?
(This post was last modified: 2012-04-12 19:36 by kricker.)
|
| find quote |
t4_ravenbird
Member Posts: 98 Joined: Mar 2012 Reputation: 2 |
2012-04-12 20:43
Post: #13
(2012-04-12 19:33)kricker Wrote: I find this patch very intriguing. This si something I have been wanting for a very long time. I plan make a build with this patch today and see how it performs. Thanks! The 'timeout' specified does not mean that a new wake-up is done at this interval. Instead is defines the time (in seconds) of inactivity that should pass before a new wake-up is sent. So, for as long as files are beeing accessed on the server there will not (ever) be re-sent a wake-up, the wake-up will be done after activity stops and has been idle for the time set in 'tmout' The idea is that if you have a server that is set to go into suspend-mode after e.g 30 minutes of inactivity then you can setup XBMC to send a new wake-up if XBMC detects that no access has been done towards that server for more than e.g 25 minutes (to make sure we wake it up again) This new wake-up will not be done just because the timer expires, instead it will be done 'just-in-time' when a file-access is done after the timer has expired. Hope that makes it clearer? |
| find quote |
kricker
Team-XBMC QA Specialist Posts: 3,308 Joined: Apr 2004 Reputation: 16 Location: Knoxville, TN |
2012-04-12 21:06
Post: #14
I think so.
I have such a server. After 20 minutes of the all disks being idle, the server goes to sleep. With this setting then, if the timer expires, the new wake event will be sent when I try to access files from the server again. If I don't access that server again the packet will not be sent. |
| find quote |
kricker
Team-XBMC QA Specialist Posts: 3,308 Joined: Apr 2004 Reputation: 16 Location: Knoxville, TN |
2012-04-13 19:44
Post: #15
So with t4_ravenbird's modified files I created a patch for the current master branch. With my preliminary testing things are looking good. I am not using mySQL, just the default XBMC databases. I let my server fall asleep, then tried to play a file from it. The server woke up and then played back perfectly fine.
|
| find quote |
kricker
Team-XBMC QA Specialist Posts: 3,308 Joined: Apr 2004 Reputation: 16 Location: Knoxville, TN |
2012-04-13 20:01
Post: #16
@t4_ravenbird
Could this be extended to also wake the server before a library update is done as well as a clean library request? |
| find quote |
t4_ravenbird
Member Posts: 98 Joined: Mar 2012 Reputation: 2 |
2012-04-13 20:43
Post: #17
(2012-04-12 21:06)kricker Wrote: ... Yes. Exactly. (2012-04-13 20:01)kricker Wrote: @t4_ravenbird As I have imagined it that would be redundant? I would think it should work as it is now, whenever the scanning needs to access the server, the same on-access-wake should kick in .. * However, if using MySql, I am afraid there will be more issues. The MySql coding just opens the db-connection and will never detect any broken connection (and since it never tries a re-connect there is no place for me to add a retransmission of the wakeup) |
| find quote |
da-anda
Team-XBMC Member Posts: 1,469 Joined: Jun 2009 Reputation: 27 Location: germany |
2012-04-14 13:43
Post: #18
IIRC there already is a older ticket in the bugtracker that added WOL support. I posted some additional ideas/concepts there IIRC. As far as I remember I had this ideas back then:
|
| find quote |
Ned Scott
Team-XBMC Wiki Guy Posts: 12,566 Joined: Jan 2011 Reputation: 138 Location: Arizona, USA |
2012-04-14 20:13
Post: #19
Could something like this be adapted to help spin up drives before accessing them? IIRC, some users have funky NAS devices that don't spin up very fast and something in this transition causes XBMC to either think the file is gone or even crash.
You can make easy links to the XBMC wiki using double brackets around words: [[debug log]] = debug log, [[Add-on:YouTube]] = Add-on:YouTube, [[Adding videos to the library]] = Adding videos to the library, [[userdata]] = userdata, etc |
| find quote |
t4_ravenbird
Member Posts: 98 Joined: Mar 2012 Reputation: 2 |
2012-04-15 10:59
Post: #20
(2012-04-14 13:43)da-anda Wrote: IIRC there already is a older ticket in the bugtracker that added WOL support. OK. The additions I have made builds on that allready existing wol support in XBMC. It is not a duplicate implementation but more in line with some of the additonal ideas you mention |
| find quote |

Search
Help