epoch1970;455762 Wrote: 
> Gordon,
> 
> No, I'm not only trying to avoid the thread to fade to page 2 ;) I was
> trying to gather a few ideas on a "smart" power saver, and have a
> question:  
> 
> When the server wakes-up, can you identify a probable cause ? (I'd like
> to discriminate at least: woke by rtc as scheduled / woke at some other
> time -- ideally: woke at some other time by player X / for external
> reason)
> In case you do identify a cause, can you very briefly tell how you
> achieve the magic ?
> 
> Thanks in advance for your advice.
Currently, I'm not trying to determine the wakeup reason.  It would be
trivial to write the scheduled wakeup time to srvrpowerctrl.prefs at
suspend-time and then check that value on wakeup.  If that value is
within two minutes of the current time, SrvrPowerCtrl would decide that
the wakeup was RTC induced...if not, then the wakeup was caused by an
externality: WOL, power-button, springing forth from Zeus' head fully
formed, etc.

Looking through /var/log/messages, I don't see any way of determining
the mac address of the network device that issued the magic packet that
initiated the WOL of the system.  I don't really know how you'd go about
determining which device or client woke the system up via WOL.


-- 
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to