PowerScheduler++ test versions (1 Viewer)

michael_t

Portal Pro
November 30, 2008
1,258
813
Home Country
Germany Germany
AW: PowerScheduler++ Test Versions - 1.1.7.1 for MP 1.2.0 Beta

I either can choose to use the s4 but will cancel recordings while pressing the power button or i can use the away mode
when recordings are being made but will have my system entering s3 when pressing the power button the rest (and most) of
the time....
This is a windows feature that cannot be changed:
Only power actions mapped to Sleep (S3) may cause the PC to enter Away Mode:
  • System button presses mapped to Sleep (Hardware Power or Sleep button, mobile lid switch)
  • Human interface device events (USB keyboard Sleep button, IR remote control Power button)
  • Windows Start menu power button or Sleep option
Power actions mapped to Hibernate (S4) do not cause the PC to enter Away Mode.
For details see here: http://www.microsoft.com/whdc/system.../awaymode.mspx

Is the source code for this available?
Yes, at the Mediaportal Plugins Repository at SourceForge

Michael
 

RicoHTPC

MP Donator
  • Premium Supporter
  • February 4, 2011
    1,441
    172
    Cuxhaven
    Home Country
    Germany Germany
    AW: PowerScheduler++ Test Versions - 1.1.7.1 for MP 1.2.0 Beta

    I knew about the fact that away mode is linked to s3 and that it won't appear when using s4.
    But I also thought that's where ps++ kicks in...
    I had the same problem when I used MCE instead of MP and there one guy from the community wrote a
    little program which monitored if there was a recording or not and would enter s3 (meaning away mode in this moment)
    in case of an active recording.
    Apart from that it would take every command to power off the system as comand to enter s4.
    Maybe this feature could be implemented into the ps++ as well...?!

    Regards,

    Rico
     

    michael_t

    Portal Pro
    November 30, 2008
    1,258
    813
    Home Country
    Germany Germany
    AW: Re: AW: PowerScheduler++ Test Versions - 1.1.7.1 for MP 1.2.0 Beta

    Oops, you are right! Source code for 1.1.7.1 is now available.

    Michael
     

    Andy107

    Portal Member
    January 15, 2011
    5
    0
    Home Country
    Germany Germany
    AW: PowerScheduler++ Test Versions - 1.1.7.1 for MP 1.2.0 Beta

    One quick question:

    If I have a multiseat installation and my server is only running TV Service, how can install the power scheduler ++ plugin when I do not have mpeinstaller in the mediaportal folder onthe server machine? If I choose to install mediaportal on a dedicated server it does not copy the files usually found in the mediaportal folder (where mpeinstaller is located). Copying just mpeinstaller is not doing the trick. It seems to be associated with other files.

    I am sure someone can help - I am pretty new to this. Btw. I am using mediaportal 1.2.0 beta.

    Thanks,
    Andy
     

    pünktchen

    Portal Pro
    October 26, 2010
    537
    201
    Home Country
    Germany Germany
    AW: PowerScheduler++ Test Versions - 1.1.7.1 for MP 1.2.0 Beta

    Just some questions about "run command before standby/after wakeup" in the advanced config tab:

    How to config only before standby and NOT after wakeup?
    When it is triggered, by timeout to standby or also by standby from Mediaportal GUI?
    Does it delay standby until the command has finished?

    Thanks in advance
    pünktchen
     

    michael_t

    Portal Pro
    November 30, 2008
    1,258
    813
    Home Country
    Germany Germany
    AW: PowerScheduler++ Test Versions - 1.1.7.1 for MP 1.2.0 Beta

    The command is called with the argument "suspend" or "wakeup", so you can do different things in case of standby or wakeup. PowerScheduler triggers the external command by the SUSPEND and RESUMEAUTOMATIC / RESUMECRITICAL power events from the operating system, so they get triggerd also on standbys and wakeups that have nothing to do with powerscheduler (e.g. manual standby). A delay of a standby once triggered is not possible, so the command has not too much time to do it's job...

    Michael
     

    pünktchen

    Portal Pro
    October 26, 2010
    537
    201
    Home Country
    Germany Germany
    AW: PowerScheduler++ Test Versions - 1.1.7.1 for MP 1.2.0 Beta

    Thanks Michael,

    but I didn't get it. Tooltip in PowerScheduler says the argument is "standby" not "suspend",
    so I tried both and nothing works.
    Maybe my PC suspends to fast or I did a mistake in setting the argument (look at the screenshot):(
    Advanced.PNG
     

    michael_t

    Portal Pro
    November 30, 2008
    1,258
    813
    Home Country
    Germany Germany
    AW: PowerScheduler++ Test Versions - 1.1.7.1 for MP 1.2.0 Beta

    Well, the tooltip might be wrong, but I am not 100% sure and cannot have a look at the sorce code at the moment. The program selected in the "run command before standby/after wakeup" box is called with the argument ("standby/suspend" or "wakeup"); you do not have to add it yourself. In the code you check for the argument provided and do what you want to do in each case (nothing for "wakeup" in your case). So a simple example could be:
    Write a batch file called "mytest.bat":
    if %0 == wakeup (
    echo wakeup
    cmd.exe /k mytestprogram.bat
     

    Users who are viewing this thread

    Top Bottom