PowerScheduler++ test versions (1 Viewer)

michael_t

Portal Pro
November 30, 2008
1,258
813
Home Country
Germany Germany
AW: Re: PowerScheduler++ Version 1.2.0.10 (RC1)

Thanks for this very good plugin.

I have though one addition I'd like to see:

When you force standby/hybernate with the remote control or via the home menu, sometimes the computer doesn't go to sleep for some reasons. However there is no message telling us about this.

It would be good to have a popup message informing that the computer cannot go to standy/hybernate beause of such or such reason.

My two cents.

Thanks
Fred
I would like to do this, but it would not work. In the moment you press power off, the system goes to away mode if standby is prevented (e.g. because of an active recording). This is done by the operating system and not by PowerSchedule++. Away mode means that the display is shut off, so even if I would display a message box, you could not see it ;).
This is the reason why I added a modified version of the minidisplay plugin in previous versions of PS++. The minidisplay keeps on when the system goes to away mode and can show some information, e.g. that a recording is active.

Michael
 

frederic113

Portal Member
January 6, 2009
5
0
Re: AW: Re: PowerScheduler++ Version 1.2.0.10 (RC1)

Thanks for this very good plugin.

I have though one addition I'd like to see:

When you force standby/hybernate with the remote control or via the home menu, sometimes the computer doesn't go to sleep for some reasons. However there is no message telling us about this.

It would be good to have a popup message informing that the computer cannot go to standy/hybernate beause of such or such reason.

My two cents.

Thanks
Fred
I would like to do this, but it would not work. In the moment you press power off, the system goes to away mode if standby is prevented (e.g. because of an active recording). This is done by the operating system and not by PowerSchedule++. Away mode means that the display is shut off, so even if I would display a message box, you could not see it ;).
This is the reason why I added a modified version of the minidisplay plugin in previous versions of PS++. The minidisplay keeps on when the system goes to away mode and can show some information, e.g. that a recording is active.

Michael

OK. I have XP and I don't think that away mode is present on this system. Actually my system stays up with display up as well and nothing happens. This is annoying.
Thanks anyway.
Fred
 

michael_t

Portal Pro
November 30, 2008
1,258
813
Home Country
Germany Germany
AW: Re: AW: Re: PowerScheduler++ Version 1.2.0.10 (RC1)

OK. I have XP and I don't think that away mode is present on this system. Actually my system stays up with display up as well and nothing happens. This is annoying.
Thanks anyway.
Fred
:oops:Well, then I misunderstood you completely.
Please enable extensive logging for PS++ client and server and send logfiles (tv.log and mediaportal.log) when the problem happens again.

Michael
 

doskabouter

Development Group
  • Team MediaPortal
  • September 27, 2009
    4,656
    3,130
    Nuenen
    Home Country
    Netherlands Netherlands
    Re: PowerScheduler++ Version 1.2.0.10 (RC1)

    On my vista 32 system, for some reason, away mode isn't working.
    When I have an active recording, and press the powerbutton, the system just goes into standby, and doesn't complete the record.

    Extract from log (extensive enabled)
    Code:
    2011-01-22 00:07:02.016400 [PowerEventThread(8)]: OnPowerEvent: PowerStatus: Suspend
    2011-01-22 00:07:02.016400 [PowerEventThread(8)]: OnPowerEventHandler: PowerStatus: Suspend
    2011-01-22 00:07:02.018400 [PowerEventThread(8)]: Stopcard
    2011-01-22 00:07:02.019400 [PowerEventThread(8)]: dvb:StopGraph called
    2011-01-22 00:07:02.020400 [PowerEventThread(8)]: tvcard:FreeAllSubChannels
    2011-01-22 00:07:02.020400 [PowerEventThread(8)]: Stopcard
    2011-01-22 00:07:02.021400 [PowerEventThread(8)]: dvb:StopGraph called
    2011-01-22 00:07:02.021400 [PowerEventThread(8)]: tvcard:FreeAllSubChannels
    2011-01-22 00:07:02.022400 [PowerEventThread(8)]: dvb:StopGraph filterstate already stopped, returning.
    2011-01-22 00:07:02.022400 [PowerEventThread(8)]: Stopcard
    2011-01-22 00:07:02.023400 [PowerEventThread(8)]: tvcard:FreeSubChannel: subchannels count 1 subch#0 keep graph=False
    2011-01-22 00:07:02.024400 [PowerEventThread(8)]: tvcard:FreeSubChannel :0 - is recording (skipped)
    2011-01-22 00:07:02.024400 [PowerEventThread(8)]: tvcard:FreeAllSubChannels
    2011-01-22 00:07:02.025400 [PowerEventThread(8)]: analog subch:0 Decompose()
    2011-01-22 00:07:02.027400 [PowerEventThread(8)]: analog:StopRecord()
    2011-01-22 00:07:02.032400 [PowerEventThread(8)]: analog: StopGraph state:Paused
    2011-01-22 00:07:02.148400 [PowerEventThread(8)]: analog: Graph stopped
    2011-01-22 00:07:02.148400 [PowerEventThread(8)]: Stopcard
    2011-01-22 00:07:02.149400 [PowerEventThread(8)]: tvcard:FreeAllSubChannels
    2011-01-22 00:07:02.149400 [PowerEventThread(8)]: Stopcard

    The recording started at 00:04, so enough time for the plugin to detect an active recording...
    Any hints on this?
     

    fmulders

    MP Donator
  • Premium Supporter
  • June 3, 2009
    99
    14
    51
    Home Country
    Netherlands Netherlands
    Re: PowerScheduler++ Version 1.2.0.10 (RC1)

    On my vista 32 system, for some reason, away mode isn't working.
    When I have an active recording, and press the powerbutton, the system just goes into standby, and doesn't complete the record.

    The recording started at 00:04, so enough time for the plugin to detect an active recording...
    Any hints on this?

    You could try MST-tool. Slick Solutions - Downloads
    It is a brilliant tool to solve standby issues. It is original ment for Windows Media Center, but it can also configure power management for any Windows system.
    So download, run but do not install! You only need to run it once:)

    You can easy activate a sleep state and enable away-mode.
    It worked for me:cool:

    Greetings Frank
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,656
    3,130
    Nuenen
    Home Country
    Netherlands Netherlands
    Re: PowerScheduler++ Version 1.2.0.10 (RC1)

    Works perfectly!

    I have created my own dll to display stuff on my lcd-screen, and I was wondering how to get the appropriate message to display if powerscheduler decides to put the pc in away-mode instead of sleep-mode.
     

    michael_t

    Portal Pro
    November 30, 2008
    1,258
    813
    Home Country
    Germany Germany
    AW: Re: PowerScheduler++ Version 1.2.0.10 (RC1)

    On my vista 32 system, for some reason, away mode isn't working.
    When I have an active recording, and press the powerbutton, the system just goes into standby, and doesn't complete the record.
    From your log I can only see that your system has gone to standby, but not what happened before. Please send complete logs (tv.log and mediaportal.log), so that I can see what was going wrong and fix PS++ if necessary.

    Michael
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,656
    3,130
    Nuenen
    Home Country
    Netherlands Netherlands
    Re: PowerScheduler++ Version 1.2.0.10 (RC1)

    That's going to be difficult, because after running the MST-tool, I never had the problem again, and unfortunately, don't have the logs anymore.
    Although I can remember that prior to the posted lines, there were no entries from the powerscheduler in the log for a long time.

    Any thoughts about my last question (display messages?)
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,656
    3,130
    Nuenen
    Home Country
    Netherlands Netherlands
    Re: PowerScheduler++ Version 1.2.0.10 (RC1)

    After further investigation, I think I have to catch the WM_POWERBROADCAST events.
    Still leaves the question if there is a way to "ask" the powerscheduler why it went to away mode instead of sleep
     

    Jay_UK

    Test Group
  • Team MediaPortal
  • October 6, 2009
    1,781
    283
    Derby
    Home Country
    United Kingdom United Kingdom
    Re: PowerScheduler++ Version 1.2.0.10 (RC1)

    Hi there,

    I have an interesting issue/problem (aren't they all).

    I am running 1.2.0A (custom SVN with Sky EPG functionality), on a single seat setup - Windows 7 x64.

    I have PS++ RC1 installed, and it seems to work ok, except for sometimes when I press the power button, and it goes into away mode.

    Auto poweroff (standby) after x minutes of idle works fine.

    I have it configured such that RC1 manages the power options (and not the OS). It is configured with the following:

    Only allow shutdown on home screen
    Do not shutdown Network Activity is > 2K
    Do not shut down if the following processes are running: Configuration, TVSetup, Comskip, BackupManager

    The options on the PS++ client plugin are greyed - which means it knows its single seat (managed by the TVServer plugin)



    Last night, it had recorded a program and comskip was running. I simply pressed the power button (I think Live TV was on the screen), I believe it entered away mode (didn't shutdown). I came down this morning expecting to find the HTPC powered off (standby), but it was still on.

    The MePo client error log was full of:

    2011-01-24 03:11:36.064282 [ERROR][PSClientPlugin Timer(410)]: PSClientPlugin: Cannot register client's PowerScheduler: System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:31457
    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
    at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
    at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
    --- End of inner exception stack trace ---

    Server stack trace:
    at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
    at System.Net.HttpWebRequest.GetRequestStream()
    at System.Runtime.Remoting.Channels.Http.HttpClientTransportSink.ProcessAndSend(IMessage msg, ITransportHeaders headers, Stream inputStream)
    at System.Runtime.Remoting.Channels.Http.HttpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
    at System.Runtime.Remoting.Channels.SoapClientFormatterSink.SyncProcessMessage(IMessage msg)

    Exception rethrown at [0]:
    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    at TvEngine.PowerScheduler.Interfaces.IPowerController.RegisterRemote(String standbyHandlerURI, String wakeupHandlerURI)
    at MediaPortal.Plugins.Process.PowerScheduler.RegisterToRemotePowerScheduler()

    The HTPC is using a static IP, with the firewall turned off for the local/private network.

    The TV Server log shows nothing (unfortunately I no longer have the log) :(

    I will watch for this happening again and capture the actual logs.

    Thanks,

    J. :D
     

    Users who are viewing this thread

    Top Bottom