[Rejected] Prevent powersaving while watching video (1 Viewer)

Flaamwing

New Member
March 5, 2010
3
0
I've noticed that when watching long videos, windows power-saving will often kick in and blank the monitors. This can be very aggravating.

The attached patch will fix the issue.
 

Attachments

  • PreventPowersaving.patch
    30.7 KB

arion_p

Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,367
    1,642
    Athens
    Home Country
    Greece Greece
    Hi Flaamwing,

    Thank you for your patch.

    After discussing this with the team and doing some research in the code we found out that your patch would interfere with PowerScheduler plugin (it also uses SetThreadExecutionState(), and the calls could cancel each other). The proper solution would be to either coordinate calls to SetThreadExecutionState(), or even better have some central control of MP's power states.

    As a result I have to reject your patch.
     

    Users who are viewing this thread

    Similar threads

    MP1 MP2 MP Shutting down DE
    I got a similar error yesterday just when a watched episode ended... Didn't copy the logs unfortunately but now i'm in a weird situation. Trakt website shows that episode as watched, but in onlinevideos (where i watched that episode) it still is not flagged as watched. The watched.json doesn't contain that episode but i think it...
    I got a similar error yesterday just when a watched episode ended... Didn't copy the logs unfortunately but now i'm in a weird...
    I have an issue that started in 1.37 and so I updated to 1.38 and updated all my installed plugins but the issue has continued. My...
    Replies
    6
    Views
    955
    @CyberSimian Sorry, I missed your last post. I ended up doing a clean install on the client and all is well now. It still doesn't let me go back in time when I change channels but it does continue operating from that point on. I'm ok with that. Thanks for your help! EDIT: I now downgraded the server (as I did with the client above)...
    @CyberSimian Sorry, I missed your last post. I ended up doing a clean install on the client and all is well now. It still doesn't...
    When I first start watching a TV program the timeshift functions works perfectly. I can shift back and forth in time and it works...
    Replies
    11
    Views
    4K
    Sorry, I didn't get email notifications on these latest replies. I just came here to report I solved the problem after adjusting power settings for "Intel Graphics". I set it to Maximum Performance. I tried many other things so it could be a combination of them, but this was the last thing I did and I haven't had the problem return...
    Sorry, I didn't get email notifications on these latest replies. I just came here to report I solved the problem after adjusting...
    I'm running MP1 as a client only on this: https://www.amazon.com/dp/B0DZX5DWS5?ref_=pe_123509780_1038749300_t_fed_asin_title&th=1...
    Replies
    5
    Views
    2K
    MP1 MP2 Picture-in-picture DE
    Can anyone tell me the step-by-step procedure for bringing up a second channel in pip mode? I can only do it sometimes, after many tries, and it’s not clear what I am doing that makes it work on those occasions when it does. Cannot find guidance on the site. Thanks, N. Again, if anyone knows how to do this, would be much...
    Can anyone tell me the step-by-step procedure for bringing up a second channel in pip mode? I can only do it sometimes, after many...
    Can anyone tell me the step-by-step procedure for bringing up a second channel in pip mode? I can only do it sometimes, after many...
    Replies
    0
    Views
    2K
    you are right.. I spotted why it's not working. For what ever reason, the 3x recently added / watched for TV series, etc was killing it.. I've removed it for now and it's started working again. I'll have to dig a little deeper as to why it's happened all of a sudden.
    you are right.. I spotted why it's not working. For what ever reason, the 3x recently added / watched for TV series, etc was...
    Hi Guys... Long time fan. using MP for over 20 years. Currently running MediaPortal x64 v1.38.3.0 on Win11 with all recent windows...
    Replies
    2
    Views
    546
    Top Bottom