PowerScheduler++ test versions (2 Viewers)

Jay_UK

Test Group
  • Team MediaPortal
  • October 6, 2009
    1,781
    283
    Derby
    Home Country
    United Kingdom United Kingdom
    Re: PowerScheduler++ Test Versions 1.2.5.x for MP 1.2.x / 1.3 Alpha

    Ignore me... :D

    J.
     

    michael_t

    Portal Pro
    November 30, 2008
    1,258
    813
    Home Country
    Germany Germany
    AW: Re: AW: Re: PowerScheduler++ Test Versions 1.2.5.x for MP 1.2.x / 1.3 Alpha

    @doveman

    First post:
    You always have to run the PS(++) client plugin, since Windows does not check for system / CPU activity to decide whether the system is idle or not.

    Really? How does Windows decide then?
    It checks only for user activity (mouse, keyboard, remote) and programs telling it not to suspend by calling SetThreadExecutionState(SYSTEM_REQUIRED).

    I found I couldn't get my PC to standby manually, even when MP wasn't running, and it was just going to Away mode instead, so I disabled PS++ (both client and server) but it still wasn't working so I had to disable Hybrid Sleep mode in Windows Power Options and then it worked.
    You said, that you went into away mode also if PS++ was disabled. So there must be another program / driver forcing away mode, since this is no permanent setting, but there must be a running thread making the SetThreadExecutionState(AWAYMODE) call. As soon as the tread dies the ExecutionState is reset. But no chance to clarify this without logs...

    I'm confused though as I thought Hybrid Sleep meant it would standby but also make a Hibernate file in case of power loss, whereas Away Mode is something different and just means it will blank the display if you try and sleep and something's happening to prevent that (i.e. a recording).
    This is correct.

    If you have problems with standby / wakeup / away mode you should begin with nothing "special" (MP, PS client and server, "power tools") running on your system (just deactivate them - no need to uninstall) and see if your system is suspending into the state configured (sleep, hybrid sleep, hibernate) after Windows idle timeout. If this does not work you should call "powercfg /requests" from the command prompt as Administrator to see what prevents your system from standby.
    Only if everything is working fine you should activate the other programs step by step. And please send me logs, as soon as you have PS++ running...

    Michael

    -------------------------------------------------------------------------------------------------------------------------------------------------
    Hi michael_t!

    First Thanks for your great work! Unfortunately i have noticed an issue with the current version: Single set setup, TV-Server is running, MP GUI is not running, PS++ is configured in P&P mode (Screenshot), Playback of musicfiles with foobar2000 is running and PC goes into S4 (it shouldn't ?!):confused:? Logs are attached! Time of S4 was 17:27:34.820772! Could you please help?

    Best regards

    Helios
    No need to have a look at the logs - you simply forgot to apply your settings (the "Standby is handled by PowerScheduler++" tells me this. It must be "...by Windows" if you really had applied P&P Mode. To apply PS++ changes press the "Apply" button in the PS++ config or leave the Tv Configuration with "OK").

    Michael
     

    Helios61

    Retired Team Member
  • Premium Supporter
  • January 30, 2008
    4,587
    873
    62
    NRW
    Home Country
    Germany Germany
    AW: Re: AW: Re: PowerScheduler++ Test Versions 1.2.5.x for MP 1.2.x / 1.3 Alpha

    No need to have a look at the logs - you simply forgot to apply your settings (the "Standby is handled by PowerScheduler++" tells me this. It must be "...by Windows" if you really had applied P&P Mode. To apply PS++ changes press the "Apply" button in the PS++ config or leave the Tv Configuration with "OK").

    Michael

    Big :D Yes, that was the reason! But "Apply" doesn't work, if the windows power settings are configured as "Höchstleistung"!

    Helios
     

    doveman

    Portal Pro
    February 12, 2008
    2,326
    178
    Home Country
    United Kingdom United Kingdom
    Re: AW: Re: AW: Re: PowerScheduler++ Test Versions 1.2.5.x for MP 1.2.x / 1.3 Alpha

    It checks only for user activity (mouse, keyboard, remote) and programs telling it not to suspend by calling SetThreadExecutionState(SYSTEM_REQUIRED).

    Thanks for explaining that. I guess most programs except MP must call that then, as I've never had my PC go to sleep whilst running e.g. an encoder or downloading. I guess it makes sense for MP not to call that, or else the PC would never sleep whilst MP was running, even if it was just sitting on the Home screen.

    You said, that you went into away mode also if PS++ was disabled. So there must be another program / driver forcing away mode, since this is no permanent setting, but there must be a running thread making the SetThreadExecutionState(AWAYMODE) call. As soon as the tread dies the ExecutionState is reset. But no chance to clarify this without logs...

    Erm, I've posted logs with my last three posts, but I'll investigate further. I've upgraded to the latest PS++ and managed to get my PC to standby with Away disabled in PS++ and I'm able to use Configure Manually now (I had to untick it, then re-tick it and it worked after that).

    If you have problems with standby / wakeup / away mode you should begin with nothing "special" (MP, PS client and server, "power tools") running on your system (just deactivate them - no need to uninstall) and see if your system is suspending into the state configured (sleep, hybrid sleep, hibernate) after Windows idle timeout. If this does not work you should call "powercfg /requests" from the command prompt as Administrator to see what prevents your system from standby.
    Only if everything is working fine you should activate the other programs step by step. And please send me logs, as soon as you have PS++ running...

    OK, I'll do that.
     

    doveman

    Portal Pro
    February 12, 2008
    2,326
    178
    Home Country
    United Kingdom United Kingdom
    Re: PowerScheduler++ Test Versions 1.2.5.x for MP 1.2.x / 1.3 Alpha

    OK, I shut down as many programs as I could and then sent my PC to sleep manually via the Start Menu, which worked fine.

    When I just woke my PC at 10:14, I was surprised that both the remote and TV are working as normally I have to restart the TVService and restart MP, but neither of those are set to be done automatically at the moment. I've got Hibernate disabled (set to Never) at the moment however, so maybe it's only after Hibernate that they stop working.

    I notice however in the logs that my PC woke automatically at 05:44, 07:48 and 09:50 and I don't understand why that's happened.
     

    michael_t

    Portal Pro
    November 30, 2008
    1,258
    813
    Home Country
    Germany Germany
    AW: Re: PowerScheduler++ Test Versions 1.2.5.x for MP 1.2.x / 1.3 Alpha

    OK, I shut down as many programs as I could and then sent my PC to sleep manually via the Start Menu, which worked fine.
    ...
    I meant automatic standby without user intervention after the Windows idle timeout ("Sleep after"). This must be working reliably before you should try the next step.
    But I am glad to hear that now (nearly) everything is ok for you. My system also wakes up from time to time without comprehensible reason (maybe some WOL effect, maybe some internal thing - it happens exactly every two hours, ...?). If your system is suspending automatically again I would not worry.
    BTW: You should update to the newest alpha version 1.2.5.2 - maybe then everything is ok...

    Michael

    ... But "Apply" doesn't work, if the windows power settings are configured as "Höchstleistung"
    I could not reproduce this with my system. Could you please send logs, if the bug happens again?

    Michael
     

    doveman

    Portal Pro
    February 12, 2008
    2,326
    178
    Home Country
    United Kingdom United Kingdom
    Re: AW: Re: PowerScheduler++ Test Versions 1.2.5.x for MP 1.2.x / 1.3 Alpha

    I meant automatic standby without user intervention after the Windows idle timeout ("Sleep after"). This must be working reliably before you should try the next step.
    But I am glad to hear that now (nearly) everything is ok for you. My system also wakes up from time to time without comprehensible reason (maybe some WOL effect, maybe some internal thing - it happens exactly every two hours, ...?). If your system is suspending automatically again I would not worry.
    BTW: You should update to the newest alpha version 1.2.5.2 - maybe then everything is ok...

    Yeah, I know what you meant. I just wanted to be sure that it was working manually first, rather than leave it on all night and find it never went to sleep at all. Got a way to go yet anyway, as I haven't tried with Away mode or Hibernate enabled yet.

    I'm not really happy with my system waking for no reason. I can't see anything set, like wake for EPG grabbing, that would explain it. I'll try disabling the NIC's WOL feature, but that shouldn't be causing it (never has before and it's set to Magic Packets only anyway).

    I'm already using 1.2.5.2 by the way.
     

    flow87

    Portal Pro
    January 15, 2009
    312
    3
    Germany
    Home Country
    Germany Germany
    Re: PowerScheduler++ Test Version 1.2.5.3 for MP 1.2.x / 1.3 Alpha

    how to install the powerscheduler on a dedicated tv server without the mpei?
     

    michael_t

    Portal Pro
    November 30, 2008
    1,258
    813
    Home Country
    Germany Germany
    AW: Re: PowerScheduler++ Test Version 1.2.5.3 for MP 1.2.x / 1.3 Alpha

    Search in the PS++ threads. You will find a stand-alone MPEI.

    Michael
     

    doveman

    Portal Pro
    February 12, 2008
    2,326
    178
    Home Country
    United Kingdom United Kingdom
    Re: PowerScheduler++ Test Version 1.2.5.3 for MP 1.2.x / 1.3 Alpha

    I still haven't got auto-standby working yet.

    I've been testing with as much as possible closed. With each of the three tests/logs I tried with more programs closed and with the last test I had very little running and I also disabled Away mode in PS++. Also, when I checked when I came home MP was completely frozen on the EPG and I had to kill and restart it to get it working again (this isn't the first time I've had this problem either).

    One thing that was still loaded was the MCEBuddy v2 service, so I'll try with that disabled for the next test.
     

    Users who are viewing this thread

    Top Bottom