[Rejected] - Prevent powersaving while watching video

Discussion in 'Archive' started by Flaamwing, March 9, 2010.

  1. Flaamwing

    Flaamwing New Member

    Joined:
    March 5, 2010
    Messages:
    3
    Likes Received:
    0
    Ratings:
    +0 / 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.


     

    Attached Files:

  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. arion_p
    • Premium Supporter

    arion_p Retired Team Member

    Joined:
    February 7, 2007
    Messages:
    3,352
    Likes Received:
    1,447
    Occupation:
    Developer
    Location:
    Athens
    Ratings:
    +1,522 / 0
    Home Country:
    Greece Greece
    Show System Specs
    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.
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!