PowerScheduler++ test versions (1 Viewer)

Wiedmann

Portal Pro
June 22, 2007
107
28
Home Country
Germany Germany
I have a weird situation where a client of mine instantly goes to sleep once I have finished watching a video (via TVSeries).
PS++ works as designed: PS++ kept the system up until the video was finished. Since you did no manual actions for more than 30 minutes, Windows says that the system is idle (video playing does not count as beeing busy). So two minutes after PS++ did not prevent standby any longer (since the video had ended),
Searching for my problem I see this post... and hey Michael, this answer is a joke, isn't it?

I guess most people are installing this extension to prevent such a situation, even me. I have setup PS++ with a timer of 5 min. And thus I expect:
After watching a film (or any other action in MP), MP is going to sleep after 5 min because PS++ is managing this for me.

Of course, I think my current situation is more curious:
I'm watching TV (fullscreen). And then after some time (longer then 5 min) I open the EPG (from the running TV) and.... my monitor goes off? The HTPC is still on, because the MP server is still recording the timeshift puffer.
The same behaviour if I stop Live TV with the remote (after a time longer then 5 min). And now I have to go to my HTPC and hit the power button to get my monitor back.

Well, I assume, PS++ is just preventing Windows to go to standy/sleep during some user activity. But especially the PS+ client is not resetting the Windows sleep timer to zero (or reinitialize it) during its periodical poll for user activitiy or after the end of such a activity?
 
Last edited:

Holzi

Super Moderator
  • Team MediaPortal
  • April 21, 2010
    7,934
    2,235
    Ba-Wü
    Home Country
    Germany Germany
    I installed the new PS++ v1.2.3.1 on a MP 1.3.0 Alpha testversion and the TVServer Config loads nicely. Standby tests are following today. =)
    Thank you very much for the fast testversion you provided and all the work on this great plugin!
     

    michael_t

    Portal Pro
    November 30, 2008
    1,258
    813
    Home Country
    Germany Germany
    Searching for my problem I see this post... and hey Michael, this answer is a joke, isn't it?
    So this is not mine, but Bill Gates' joke - the Windows Media Player does exactly the same and no one bothers about it...;)
    Of course, I think my current situation is more curious:
    I'm watching TV (fullscreen). And then after some time (longer then 5 min) I open the EPG (from the running TV) and.... my monitor goes off? The HTPC is still on, because the MP server is still recording the timeshift puffer. The same behaviour if I stop Live TV with the remote (after a time longer then 5 min). And now I have to go to my HTPC and hit the power button to get my monitor back.
    You should reproduce the problems (one of them at a time) and send me the logs. Everything else is reading tea leaves.

    Michael
     

    Wiedmann

    Portal Pro
    June 22, 2007
    107
    28
    Home Country
    Germany Germany
    Searching for my problem I see this post... and hey Michael, this answer is a joke, isn't it?
    So this is not mine, but Bill Gates' joke - the Windows Media Player does exactly the same and no one bothers about it...;)

    Maybe, but I'm not talking about WMP. I'm talking about MP and PS++ ;-)

    And still wondering why PS++ (client plugin) is not preventing Windows to sleep/standby (or turning the monitor off) after (or during) such activities like watching tv/movies.

    As a coder I would use the WinAPI function SetThreadExecutionState() (ES_DISPLAY_REQUIRED/ES_SYSTEM_REQUIRED) to do such things.

    BTW: I can listen to a radio station (RadioTime) and stop it without my monitor is going off.


    Of course, I think my current situation is more curious:
    I'm watching TV (fullscreen). And then after some time (longer then 5 min) I open the EPG (from the running TV) and.... my monitor goes off? The HTPC is still on, because the MP server is still recording the timeshift puffer. The same behaviour if I stop Live TV with the remote (after a time longer then 5 min). And now I have to go to my HTPC and hit the power button to get my monitor back.
    You should reproduce the problems (one of them at a time) and send me the logs. Everything else is reading tea leaves.

    - Regarding "the system is going off after watching a movie" you have already logs in previous posts.
    - Regarding "the monitor is going off during live TV and opening EPG"... maybe tomorrow. At the moment I need the box for soccer ;-)[/quote]
     
    Last edited:

    doveman

    Portal Pro
    February 12, 2008
    2,326
    178
    Home Country
    United Kingdom United Kingdom
    Even if video playback doesn't count as activity (which it should) surely the act of it stopping when it finishes or the user stops it counts as activity, which should reset Windows' standby counter, so if I have that set to 1 hour, it shouldn't standby until 1 hour after the playback finishes (assuming I don't press anything else in the meantime)?
     

    doveman

    Portal Pro
    February 12, 2008
    2,326
    178
    Home Country
    United Kingdom United Kingdom
    I'm having intermittent problems with the system not going to standby. It's set to do so after 30 minutes, including with open remote shares, but it hasn't done today whilst sitting on the EPG.
     

    doveman

    Portal Pro
    February 12, 2008
    2,326
    178
    Home Country
    United Kingdom United Kingdom
    If I do powercfg - requests it shows


    Code:
    C:\Users\MediaPortal>powercfg -requests
    DISPLAY: None.
     
    SYSTEM:
    [DRIVER] \FileSystem\srvnet
    An active remote client has recently sent requests to this machine.
     
    AWAYMODE: None.

    but powercfg -requestsoverride shows

    Code:
    C:\Users\MediaPortal>powercfg -requestsoverride
    [SERVICE]
     
    [PROCESS]
     
    [DRIVER]
    \FileSystem\srvnet SYSTEM

    so I don't believe that should be preventing standby.
     

    doveman

    Portal Pro
    February 12, 2008
    2,326
    178
    Home Country
    United Kingdom United Kingdom
    Ah, I think the problem might have been caused by LogMeIn not being uninstalled fully, as that has an option to disable standby when AC power is available (I'm not sure how it enforces that though). I've reinstalled it now and hopefully the problem's fixed.
     

    michael_t

    Portal Pro
    November 30, 2008
    1,258
    813
    Home Country
    Germany Germany
    ...And still wondering why PS++ (client plugin) is not preventing Windows to sleep/standby (or turning the monitor off) after (or during) such activities like watching tv/movies.
    As a coder I would use the WinAPI function SetThreadExecutionState() (ES_DISPLAY_REQUIRED/ES_SYSTEM_REQUIRED) to do such things.
    As a server plugin (the client plugin only informs the server plugin about the client status), PS++ does not do anything with the display/monitor. The display is solely handled by the MP client (if it is handled at all - I don't know). PS++ only handles standby, i.e prevents the PC from going to S3 or S4 while it is busy. This is done by calling SetThreadExecutionState (ES_SYSTEM_REQUIRED|ES_CONTINUOS) e.g. as long as a movie is beeing played. After the movie is finished, PS++ allows the system to go to standby by calling SetThreadExecutionState (ES_CONTINUOS). Then windows suspends the PC after the configured idle time has passed. This is the same behavior as any other media player (including Microsoft's own) shows. Why should MP be different?
    Even if video playback doesn't count as activity (which it should) surely the act of it stopping when it finishes or the user stops it counts as activity, which should reset Windows' standby counter, so if I have that set to 1 hour, it shouldn't standby until 1 hour after the playback finishes (assuming I don't press anything else in the meantime)?
    This is only true if you manually stop the playback or do some other user action. If the movie playback terminates because it reaches the movie's end, this is no activity for Windows.

    Michael
     
    Last edited:

    Users who are viewing this thread

    Top Bottom