[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

    @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
    2K
    So, you're power cycling the TV, but not putting the PC to sleep ? In General => Startup/Resume settings, try checking "Ignore Windows resolution/size changes" In Codecs and Render, try selecting the specific audio device rather than "Default DirectSound device" Just ideas, no guarantee this will do anything. If this doesn't work, I...
    So, you're power cycling the TV, but not putting the PC to sleep ? In General => Startup/Resume settings, try checking "Ignore...
    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
    4
    Views
    509
    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
    1K
    How does the Timezone flag work? What input is it looking for? I went through the source code and all I saw was "America/New_York." I tried "America/Chicago" but still getting GMT times in the xmltv.xml file. Edit: Got this figured out. In the XmlTv plugin, you need to select "Apply timezone compensation when loading tvguide.xml" and...
    How does the Timezone flag work? What input is it looking for? I went through the source code and all I saw was "America/New_York."...
    NOT A MEDIAPORTAL ISSUE. Using MediaPortal1, Kodi for TV viewing. Today I noticed the TV Guide in Kodi stopped updating. A Google...
    Replies
    120
    Views
    33K
    Before you create this bug report: Make sure that your system (Windows, codecs and drivers) is up to date, matching the Requirements and you've filled in your System Specs. Have a look at our MediaPortal Wiki! Maybe the solution is already there. Have a look at our Jira (Bug and Issue Tracker)and the threads in this section, maybe...
    Before you create this bug report: Make sure that your system (Windows, codecs and drivers) is up to date, matching the...
    Before you create this bug report: Make sure that your system (Windows, codecs and drivers) is up to date, matching the...
    Replies
    0
    Views
    865
    Top Bottom