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

framug
Country flag

Portal Pro
January 31, 2005
4,327
395
South of France
Home Country
France France
  • Thread starter
  • Moderator
  • #1
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

HTPCSourcer
Country flag

MP2 Product Manager
  • Team MediaPortal
  • May 16, 2008
    11,404
    2,329
    Home Country
    Germany Germany
    "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
    Country flag

    Portal Pro
    January 31, 2005
    4,327
    395
    South of France
    Home Country
    France France
    • 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
    Country flag

    MP2 Product Manager
  • Team MediaPortal
  • May 16, 2008
    11,404
    2,329
    Home Country
    Germany Germany
    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
    Country flag

    MP2 Product Manager
  • Team MediaPortal
  • May 16, 2008
    11,404
    2,329
    Home Country
    Germany Germany
    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
    Country flag

    Portal Pro
    January 31, 2005
    4,327
    395
    South of France
    Home Country
    France France
    • 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
    Country flag

    MP2 Product Manager
  • Team MediaPortal
  • May 16, 2008
    11,404
    2,329
    Home Country
    Germany Germany
    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
    Country flag

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,013
    3,654
    Lehmden
    Home Country
    Germany Germany
    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 (Users: 0, Guests: 1)

    Top Bottom