Automatic WakeOnLan upon accessing MySql or FileShares

  Thread Rating:
  • 4 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
cw-kid Offline
Posting Freak
Posts: 1,039
Joined: Jun 2012
Reputation: 3
Post: #511
(2014-05-06 11:24)t4_ravenbird Wrote:  @cw-kid It may be necessary to tweak the wakeonlan.xml only if you have issues, check http://wiki.xbmc.org/index.php?title=Auto_wake_on_lan for options
I run openelec myself and it works fine as far as I am aware of;-)

Sounds good! Does your OpenElec HTPC turn on from S5 Shutdown or from S3 Sleep mode?

In Frodo I had to turn on my HTPC from S5 Shutdown as there was some audio issues after resuming from S3 Sleep mode. This has been fixed in Gotham, so perhaps I can use the S3 Sleep mode again on Gotham.

Cheers

The Media Center Blog
The Digital Lifestyle
Authorised Euro Z-wave dealer contact for bespoke prices!
find quote
t4_ravenbird Offline
Senior Member
Posts: 171
Joined: Mar 2012
Reputation: 5
Post: #512
I use S3 only on both server and HTPC and then I have some rpi's that are always on (but also able to on-access-wake the server)
Thanks for the feedback!
find quote
noxx2 Offline
Junior Member
Posts: 33
Joined: May 2014
Reputation: 0
Post: #513
i think is a nice idea, but i ve problem now with standby mode on my server

my hardware:
Server with Debian and mySQL database
--- goes in S3 Mode, if not in use
Raspberry Pi with OpenELEC 4.0 final
--- Allways On

If my Server is not in use, he goes in Suspend Mode. But, 10 minutes
later the PI wake up my server, even if the PI is not used at all.

However, the PI should not keep awake the server all day,
only to wake when I want to access the mysql database
find quote
t4_ravenbird Offline
Senior Member
Posts: 171
Joined: Mar 2012
Reputation: 5
Post: #514
@noxx2 check the problem description in this post and the fllow-up that leads to a conclusion http://forum.xbmc.org/showthread.php?tid...pid1616566
find quote
noxx2 Offline
Junior Member
Posts: 33
Joined: May 2014
Reputation: 0
Post: #515
I read this, same problems as me. But what is the solution?

My server wake up 10 minutes after shutdown. I've no add-ons installed on the Pi
(This post was last modified: 2014-05-09 13:09 by noxx2.)
find quote
t4_ravenbird Offline
Senior Member
Posts: 171
Joined: Mar 2012
Reputation: 5
Post: #516
Same as the other ; something in your PI is accessing the server and the log-file should give us a hint as to what that is. Please check or post logfile.
find quote
noxx2 Offline
Junior Member
Posts: 33
Joined: May 2014
Reputation: 0
Post: #517
(2014-05-09 13:48)t4_ravenbird Wrote:  Same as the other ; something in your PI is accessing the server and the log-file should give us a hint as to what that is. Please check or post logfile.

Please
http://xbmclogs.com/show.php?id=196985


xbmc.log
Code:
...
11:03:01 T:2925216848  NOTICE: WakeOnAccess sequence completed, server started
11:13:19 T:2925216848  NOTICE: WakeOnAccess [192.168.1.18] trigged by accessing : MySQL : MyVideos78
...

i see in my server.log that he wake up at 11:03. And you see, XBMC was it.....
and i dont know why. nobody has use at this time the pi......
(This post was last modified: 2014-05-09 17:44 by noxx2.)
find quote
miappa Offline
Posting Freak
Posts: 907
Joined: Dec 2012
Reputation: 73
Post: #518
Amber use skin.widget.
Disable updates for random/recommended/recent in skin.widget or for example make it refresh when entering home menu or on database updates etc.
find quote
noxx2 Offline
Junior Member
Posts: 33
Joined: May 2014
Reputation: 0
Post: #519
Where can I find this settings?

I found it in the xbmc service add-ons. I have disable all points in the random items
(This post was last modified: 2014-05-09 19:14 by noxx2.)
find quote
john.cord Offline
Fan
Posts: 478
Joined: Jan 2007
Reputation: 6
Location: Vienna
Post: #520
My Pi gets crazy since latest Helix Nightly with the Auto Wakeonlan Option enabled:

Short log snippet:

Code:
18:43:03 31213.814453 T:2734994512   ERROR: Ping fail : status = -1, errno = 12 : 'ping -c 1 -w 1 192.168.1.50'
18:43:19 31229.181641 T:2683425872   ERROR: Previous line repeats 8406 times.

wakeonlan.xml Settings:

Code:
<onaccesswakeup>
    <netinittimeout>20</netinittimeout>
    <netsettletime>500</netsettletime>
    <wakeup>
        <host>192.168.1.50</host>
        <mac>38:EA:A7:A6:09:2D</mac>
        <pingport>0</pingport>
        <pingmode>1</pingmode>
        <timeout>300</timeout>
        <waitonline>210</waitonline>
        <waitonline2>60</waitonline2>
        <waitservices>30</waitservices>
    </wakeup>
    <wakeup>
        <host>NAS</host>
        <mac>38:EA:A7:A6:09:2D</mac>
        <pingport>0</pingport>
        <pingmode>1</pingmode>
        <timeout>300</timeout>
        <waitonline>210</waitonline>
        <waitonline2>60</waitonline2>
        <waitservices>30</waitservices>
    </wakeup>
</onaccesswakeup>

Sapphire Edge HD Nettop (ION2, Atom D510, Nvidia GT218 512MB, 2GB DDR2) @ Ubuntu Minimal 12.04, XBMC 13.2
Raspberry Pi (Overclocked) @ Openelec 4.1.4 Beta
HP N54L @ Ubuntu 12.04 Minimal Server / MySQL DB
- Fix USB Remote Wakeup under Ubuntu 12.04 Minimal
find quote
t4_ravenbird Offline
Senior Member
Posts: 171
Joined: Mar 2012
Reputation: 5
Post: #521
Openelec or Raspbmc ? Can you ssh to it and perform ping for a test?
find quote
john.cord Offline
Fan
Posts: 478
Joined: Jan 2007
Reputation: 6
Location: Vienna
Post: #522
Openelec.

A ping via ssh is possible and whithout problems.

Sapphire Edge HD Nettop (ION2, Atom D510, Nvidia GT218 512MB, 2GB DDR2) @ Ubuntu Minimal 12.04, XBMC 13.2
Raspberry Pi (Overclocked) @ Openelec 4.1.4 Beta
HP N54L @ Ubuntu 12.04 Minimal Server / MySQL DB
- Fix USB Remote Wakeup under Ubuntu 12.04 Minimal
find quote
t4_ravenbird Offline
Senior Member
Posts: 171
Joined: Mar 2012
Reputation: 5
Post: #523
Looking at file history in XBMC ( https://github.com/xbmc/xbmc/commits/mas...kLinux.cpp ) shows no activity last 6 months.
My immediate guess would be that this is an Openelec issue rather than XBMC as such but I dont know.. The logged errno=12 points to 'out of memory' but that seems strange also.
Could you maybe ask a question at Openelec's site? This may be a trivial issue and ring a bell for the Linux-experts
find quote
Excelsis Offline
Junior Member
Posts: 5
Joined: Nov 2013
Reputation: 0
Post: #524
Ok, this is doing my head in. Advanced WOL works a-ok. Wake on access worked during the betas, but since the final v13 came out, it hasn't worked. I have to disable general WOL access, leaving only Magic Packets being able to wake it up, on my server computer as otherwise it just keeps waking back up right after putting it to sleep.

It seems like XBMC WOA switched from sending a magic packet to a generic wol packet? In any case, is there anyway to fix this?
find quote
Post Reply