- Thread starter
- #641
New stable version of PowerScheduler++ available which is compatible with MP 1.3 alpha! See the stable version's thread for more details.
Michael
Michael
Last edited:
Searching for my problem I see this post... and hey Michael, this answer is a joke, isn't it?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),I have a weird situation where a client of mine instantly goes to sleep once I have finished watching a video (via TVSeries).
So this is not mine, but Bill Gates' joke - the Windows Media Player does exactly the same and no one bothers about it...Searching for my problem I see this post... and hey Michael, this answer is a joke, isn't it?
You should reproduce the problems (one of them at a time) and send me the logs. Everything else is reading tea leaves.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.
So this is not mine, but Bill Gates' joke - the Windows Media Player does exactly the same and no one bothers about it...Searching for my problem I see this post... and hey Michael, this answer is a joke, isn't it?
You should reproduce the problems (one of them at a time) and send me the logs. Everything else is reading tea leaves.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.
C:\Users\MediaPortal>powercfg -requests
DISPLAY: None.
SYSTEM:
[DRIVER] \FileSystem\srvnet
An active remote client has recently sent requests to this machine.
AWAYMODE: None.
C:\Users\MediaPortal>powercfg -requestsoverride
[SERVICE]
[PROCESS]
[DRIVER]
\FileSystem\srvnet SYSTEM
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?...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.
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.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)?