[Rejected] Fix PowerScheduler plugin for MP2 single seat (1 Viewer)

framug

Super Moderator
  • Team MediaPortal
  • January 31, 2005
    4,764
    748
    South of France
    Home Country
    France France
    Country flag
    Hello there,

    I just tested MP 2.2.2 for the first time.
    I don't think I will switch from MP1 to MP2, because of no IRTRANS native remote, etc...
    I have a problem that I call "Impossible to avoid Windows sleep or hibernate with MP2 single seat when client is running".
    Then, I worked to fix that.

    So, if you want to try the dll, take a look at PowerScheduler.rar

    If you need diff :

    Code:
     .../Plugins/PowerScheduler/Handlers/ProcessActiveStandbyHandler.cs      | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/TvEngine3/TVLibrary/Plugins/PowerScheduler/Handlers/ProcessActiveStandbyHandler.cs b/TvEngine3/TVLibrary/Plugins/PowerScheduler/Handlers/ProcessActiveStandbyHandler.cs
    index cfc8891b25..692bb4b016 100644
    --- a/TvEngine3/TVLibrary/Plugins/PowerScheduler/Handlers/ProcessActiveStandbyHandler.cs
    +++ b/TvEngine3/TVLibrary/Plugins/PowerScheduler/Handlers/ProcessActiveStandbyHandler.cs
    @@ -184,7 +184,7 @@ namespace TvEngine.PowerScheduler.Handlers
             {
               string runningProcess = rp.ProcessName;
    -          if (string.Equals(runningProcess, "MediaPortal", StringComparison.OrdinalIgnoreCase))
    +          if (string.Equals(runningProcess, "MediaPortal", StringComparison.OrdinalIgnoreCase) || string.Equals(runningProcess, "MP2-Client", StringComparison.OrdinalIgnoreCase))
                 MPClientRunning = true;
               foreach (string process in _processList)

    Normally, it would fix MP2 server plugin with no backwards step for MP1 server.

    Hope it helps...
     

    Attachments

    • PowerScheduler.rar
      48.5 KB · Views: 6
    • ProcessActiveStandbyHandler.diff
      1,018 bytes · Views: 5

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,431
    2,334
    Home Country
    Germany Germany
    Country flag
    "Impossible to avoid Windows sleep or hibernate with MP2 single seat when client is running".
    I don't understand your problem. With MP2 the Standby/Hibernate activites are exclusively handled by Windows. If your PC is not entering standby when the client is on, you've misconfigured your PowerScheduler.
     

    framug

    Super Moderator
  • Team MediaPortal
  • January 31, 2005
    4,764
    748
    South of France
    Home Country
    France France
    Country flag
    • Thread starter
    • Moderator
    • #3
    I need powerscheduler because, it can force hibernate where windows don't go because of maybe a bad driver (irtrans, others ? Don't know).
    The problem is in the processes tab of powerscheduler setup.
    If you enable "prevent standby when MP client is not runing".
    It works fine with MP1, not with MP2, if for example, I want to do others things (surf Internet...), windows will hibernate where it's not needed.
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,431
    2,334
    Home Country
    Germany Germany
    Country flag
    If you enable "prevent standby when MP client is not runing".
    The PowerScheduler is not meant to cure issues of a defective Windows installation. Said option is a pure MP1 functionality and has no meaning in MP2 with its Windows energy handling philosophy and programmatic implementation.

    I want to do others things (surf Internet...), windows will hibernate where it's not needed.
    Then your Windows is not working - not related to MP2, hence no change in code.
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,431
    2,334
    Home Country
    Germany Germany
    Country flag
    P.S.: If you get your change included in MP1, it will find its way on its own into MP2.

    Yet many MP2 problem reports are stemming from a misconfigured PowerScheduler. In MP2 it is only needed to wake up the PC for TV schedules (and maybe EPG grabbing in absence of better solutions)- nothing else. Every other activated option is a MP1 legacy and leads to troubles.
     

    framug

    Super Moderator
  • Team MediaPortal
  • January 31, 2005
    4,764
    748
    South of France
    Home Country
    France France
    Country flag
    • Thread starter
    • Moderator
    • #6
    Since server is the same for MP1 and MP2, as you want for integrate it in MP1.
    Therefore, my windows installation is not defective and is working.
    I can't do anything if manufacturers give bad windows drivers which can't support the standby/resume windows process.
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,431
    2,334
    Home Country
    Germany Germany
    Country flag
    if I launch the desktop shortcut for MP2 TV setup, same as MP1 1.23 SetupTV is launched
    This is simply the setup for the TVE, which is running as a standard plugin in MP2 - not as a Windows process. We might be better off if we provided an adjusted setup tool and cleaned the TVE setup to remove all options that either have no use in MP2 or are even counter-productive such as the Power Scheduler settings.

    maybe am I wrong ?
    Yes ;)
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,326
    3,790
    Lehmden
    Home Country
    Germany Germany
    Country flag
    Hi.
    the same for MP1 and MP2
    They aren't the same but they are in some way... ;) It's the same configuration tool but the server is not the same...

    or are even counter-productive such as the Power Scheduler settings.
    Only because you personally don't need the Power Scheduler options they are in no way useless or even counter productive. Aside countless Windows- and hardware issues on standby fixed by Power Scheduler this way you can't adjust Windows power settings as precise and controlled as you can do with Power Scheduler. Only you don't (want to?) understand this. Your statement simply is wrong and I really hope this won't happen as you told. If it really will happen you will make MP2 much less usable (probably not for you but in general), a real nail for the coffin of MP2.
     

    Users who are viewing this thread

    Similar threads

    MP 1.20 TVServer compatible (hopefully) dll's attached. I think you only need to swap PowerScheduler.dll, but it creates three dll's when you build the PowerScheduler project so I've included all three...
    MP 1.20 TVServer compatible (hopefully) dll's attached. I think you only need to swap PowerScheduler.dll, but it creates three...
    I suspect non one relies on the fact that PowerScheduler IWakupHandler has a bug, but I am a pureist so when I saw the log below I...
    Replies
    6
    Views
    4K
    Super, danke! Werde ich gleich mal austesten.
    Super, danke! Werde ich gleich mal austesten.
    Hallo zusammen, ich habe am letzten Wochenende mal wieder den Schritt gewagt, parallel zu meiner produktiven MP1 Installation, MP2...
    Replies
    67
    Views
    4K
    Sorry, but for me that is no real double posting. One is written in German and located in the germans subforum and one is here in English for not Germans. I do not think, that all Germans handle English quite well (maybe me included) and definetly not all "Not-German" understand German.....
    Sorry, but for me that is no real double posting. One is written in German and located in the germans subforum and one is here in...
    Hi, I am using mp really a long time, but when the system works fine I do not touch it. (Or my wife do not allow me to....) Now...
    Replies
    2
    Views
    2K
    Also being in the U.S. (Chicagoland) I would be very interested in knowing what you have or plan to work on... ATSC is a real pain for us and if you have the experience in making it easier, I am sure the other Dev's would love the help. Are you on ATCS, cable card, etc????
    Also being in the U.S. (Chicagoland) I would be very interested in knowing what you have or plan to work on... ATSC is a real pain...
    After having failed to create a plugin for MP1; rather than dive into it to figure out why I decided why not bring up mediaportal 2...
    Replies
    9
    Views
    2K
    THX for your answer - from the consumer point of view the biggest issue are missing plugins - but that's also with MP1 as a lot of plugin dev's have left meanwhile. But happy to hear that the project is not totally abandoned :)
    THX for your answer - from the consumer point of view the biggest issue are missing plugins - but that's also with MP1 as a lot of...
    Overview AtmoLight is a process plugin that interfaces with different ambilight solutions and brings Ambilight to MediaPortal. The...
    Replies
    74
    Views
    38K
    Top Bottom