[Plugin] WOL-PowerManager (2 Viewers)

TiboTv

Portal Pro
June 22, 2009
244
39
Home Country
Belgium Belgium
Hi,

First of all : Thank you for this great plugin!

I made first test and I've got a problem with the plugin :

First, I set up a computer with wol functionality and tested the wake up with external software : Everything works like I want : a ping can't wake up the computer, a wol message is needed and the computer wakes up from hibernate mode. This is what I want for my future "energy saving" TVServer.
Then, I tried using your plugin :
I configured the plugin to wake up a server when entering into musicplaylist view (no sense do to this, it's only for testing).
2013-06-20 07:09:53.940827 [Info.][MPMain(1)]: WOLPowerManager: Settings.Load()
2013-06-20 07:09:53.941827 [Info.][MPMain(1)]: WOLPowerManager: ManualWOL = True
2013-06-20 07:09:53.942827 [Info.][MPMain(1)]: WOLPowerManager: RemoteButton = ACTION_REMOTE_BLUE_BUTTON
2013-06-20 07:09:53.942827 [Info.][MPMain(1)]: WOLPowerManager: WaitTime = 40
2013-06-20 07:09:53.942827 [Info.][MPMain(1)]: WOLPowerManager: UseIpInsteadDNSname = True
2013-06-20 07:09:53.943828 [Info.][MPMain(1)]: WOLPowerManager: Port = 7
2013-06-20 07:09:53.943828 [Info.][MPMain(1)]: WOLPowerManager: IntervalCheck = True
2013-06-20 07:09:53.943828 [Info.][MPMain(1)]: WOLPowerManager: IntervalTime = 30
2013-06-20 07:09:53.943828 [Info.][MPMain(1)]: WOLPowerManager: ServersCount = 1
2013-06-20 07:09:53.944828 [Info.][MPMain(1)]: WOLPowerManager: PluginsCount = 1
2013-06-20 07:09:53.944828 [Info.][MPMain(1)]: WOLPowerManager: Servers = System.String[,]
2013-06-20 07:09:53.944828 [Info.][MPMain(1)]: WOLPowerManager: Plugins = System.String[,]
When I entering into musicplaylist view, I got a message "WOL sent to TVServer2 and than a message "Waiting answer from TVServer2...". The computer wakes up and after a while (about 25sec to wake up the computer) the message "Waiting answer from TVServer2..." disappears but musicplaylist view is never show! After that, no way to get any view! MP is blocked!

Some log entries are strange :

2013-06-20 07:11:12.361313 [Debug][MPMain(1)]: DNS Error: Le nom demandé est valide, mais aucune donnée du type requise n’a été trouvée
2013-06-20 07:11:14.912459 [Info.][MPMain(1)]: Ping can't be executed! It's blocked by a firewall or a network connection isn't available. Error: Une exception s'est produite lors d'une demande PING.
2013-06-20 07:10:17.018147 [Debug][MPMain(1)]: Broadcast address for server TVServer2 is: 192.168.1.255

I tried using "IP instead of DNS name" option activated and not but the result is the same. Windows firewall is off on both computers (client and server) and ping via DOS cmd works fine on 192.168.1.113.

And seems that this command fails :

2013-06-20 07:10:57.053437 [Debug][MPMain(1)]: WindowManager: unroute to MediaPortal.Dialogs.GUIDialogNotify:2016->MediaPortal.GUI.Music.GUIMusicPlayList:500

I guess that this command must show back (unroute) musicplaylist view when wake up is ended.

Hereby you'll find the complete log (end of the log is cut because I need to kill mp to get Windows back)

Thank you for help!
 
Last edited:

dir

MP Donator
  • Premium Supporter
  • August 30, 2006
    408
    36
    Home Country
    Afghanistan Afghanistan
    I might be mis-interpreting the description of this plugin, but the first post says,
    WOL-PowerManager will give you a fully automatic opportunity to awake your network storage if needed and turn it into standby when it will not be used.
    However, upon reading the wiki, the only mention of turning it into standby is:
    3. Standby: To automatically standby your server again after the server will not be used for a period of time you can use system internal settings. Otherwise if the TV-Server of MediaPortal is running on the same machine you can set up the Power-Scheduler for this job.
    So does WOL-PowerManager actually turn the PC into standby? The way I read it, it doesn't - you're simply including general instructions to remind people how to configure their PC to do this outside of the plugin.

    If that;s the case, can I suggest you remove "and turn it into standby when it will not be used." from the first post/wiki so you don't mislead anyone? I may be the only person so far, but I believed that the plugin would do exactly that and spent quite some time configuring things expecting it would. I am already completely familiar with how the OS (W7 in my case) does power management (hibernate, sleep, power off, etc.) but was looking for a plugin that explicitly controls when the server powers down.
     
    Last edited:

    dir

    MP Donator
  • Premium Supporter
  • August 30, 2006
    408
    36
    Home Country
    Afghanistan Afghanistan
    Actually, no, those aren't options that I can see - I'm specifically looking to "awake your network storage if needed and turn it into standby when it will not be used.".

    PowerScheduler/++ only works on the local machine, so you have to have MP running on your media server as well as your home theatre PC, which I don't want to do.
     

    CypherMK

    MP Donator
  • Premium Supporter
  • March 11, 2009
    1,735
    617
    Home Country
    Netherlands Netherlands
    But your server doesn't power down by itself? Mine does without any plugins installed. And it only goes into standby when Mediaportal isn't using my shares.
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    Actually, no, those aren't options that I can see - I'm specifically looking to "awake your network storage if needed and turn it into standby when it will not be used.".

    3 Methods to wake storage

    1. WOL-Power Manager via magic packet, any target
    2. MP Config, TV settings, magic packet (This also has function of keeping tv-server awake while MePo is running), target is only tv-server pc.
    3. Enable pattern match (different to magic packet) in network card settings, then if you use IP address for network sharing it will awake when it gets pinged, any target.

    2 Methods to sleep

    1. Windows sleep settings (Powerscheduler/PS++ don't actually do anything to make the PC sleep, they only *stop* it from sleeping)
    2. PS++ with force sleep mode
    ^ both these methods don't require MP client.

    turn to standby when not used

    There is no "not used event", there is only the absent of "stay awake events". what usually triggers sleep is the operating systems sleep timer. if you PC stays awake eg. due to SRVNET file sharing etc, then you can use something like PS++ to force sleep. TV-Server or powerscheuleder/PS++ plugin don't actually put the PC to sleep.
     
    Last edited:

    seppi2204

    Portal Pro
    December 8, 2010
    103
    56
    Stuttgart
    Home Country
    Germany Germany
    And seems that this command fails :

    2013-06-20 07:10:57.053437 [Debug][MPMain(1)]: WindowManager: unroute to MediaPortal.Dialogs.GUIDialogNotify:2016->MediaPortal.GUI.Music.GUIMusicPlayList:500

    I guess that this command must show back (unroute) musicplaylist view when wake up is ended.

    Hereby you'll find the complete log (end of the log is cut because I need to kill mp to get Windows back)

    Thank you for help!


    Hi TiboTv,
    Have you already tried it with another window plugin? Until now no one has reported such an issue.
    For me it doesn't looks like a plugin-related issue. As the log shows that the plugin tries to change back to MyMusicPlaylist.

    Seppi
     

    TiboTv

    Portal Pro
    June 22, 2009
    244
    39
    Home Country
    Belgium Belgium
    And seems that this command fails :

    2013-06-20 07:10:57.053437 [Debug][MPMain(1)]: WindowManager: unroute to MediaPortal.Dialogs.GUIDialogNotify:2016->MediaPortal.GUI.Music.GUIMusicPlayList:500

    I guess that this command must show back (unroute) musicplaylist view when wake up is ended.

    Hereby you'll find the complete log (end of the log is cut because I need to kill mp to get Windows back)

    Thank you for help!


    Hi TiboTv,
    Have you already tried it with another window plugin? Until now no one has reported such an issue.
    For me it doesn't looks like a plugin-related issue. As the log shows that the plugin tries to change back to MyMusicPlaylist.

    Seppi

    Hi,
    Thank you for answering.
    I haven't try with another window plugin yet. I was thinking that this issue comes from the plugin, I'll will try this evening with an other plugin. I'm using Titan skin, I'll also give a try with default skin.

    Can you explain me when these errors raises : 2013-06-20 07:11:12.361313 [Debug][MPMain(1)]: DNS Error: Le nom demandé est valide, mais aucune donnée du type requise n’a été trouvée
    2013-06-20 07:11:14.912459 [Info.][MPMain(1)]: Ping can't be executed! It's blocked by a firewall or a network connection isn't available. Error: Une exception s'est produite lors d'une demande PING.
     

    Luca Brasi

    MP Donator
  • Premium Supporter
  • November 14, 2007
    1,026
    119
    Home Country
    Germany Germany
    Just a sidenote/thought: There is a way for kicking a remote machine into sleep or whatever via WOL_Powermanager.
    You can setup a batch calling PsShutdown (and other more advanced tools like lightsout) which will handle the rest.
    I had it running like that with lightsout. Wouldn't recommend using this for a remote machine running tv-server though.
     

    Users who are viewing this thread

    Top Bottom