PowerScheduler++ 1.4.0.x - Stable versions for MediaPortal 1.4 (7 Viewers)

doveman

Portal Pro
February 12, 2008
2,326
178
Home Country
United Kingdom United Kingdom
EventGhost must just simulate a key press or a mouse move...

Michael

PS: Is your remote supported by MediaPortal?

Ah yes, I can just set EG to send a mouse movement when pressing Power, thanks.

My remote isn't directly supported by MediaPortal and I use the MessagePlugin to take the output from EventGhost.
 

Jay_UK

Test Group
  • Team MediaPortal
  • October 6, 2009
    1,781
    283
    Derby
    Home Country
    United Kingdom United Kingdom
    Hi Michael,

    Can you please let me know if your 1.4.0.0 version makes an changes to the Gentle framework?

    Thanks,

    J.
     

    michael_t

    Portal Pro
    November 30, 2008
    1,258
    813
    Home Country
    Germany Germany
    Hi Michael,

    Can you please let me know if your 1.4.0.0 version makes an changes to the Gentle framework?

    Thanks,

    J.
    I did not notice that GentleFramework was modified from 1.3 to 1.4 (version 1.5.0.29112 to 1.5.0.29113). I compiled PS++ 1.4.0.0 against the GentleFramework.dll of MP 1.4 (Version 1.5.0.29113). Seems that there are issues when running PS++ 1.4.0.0 on MP 1.3.x as PS++ expects the newer GentleFramework.dll.
    I will try to build another version which uses GentleFramework 1.5.0.29112 and hope it is upward compatible...

    Michael
     

    michael_t

    Portal Pro
    November 30, 2008
    1,258
    813
    Home Country
    Germany Germany
    Uploaded a new version PS++ 1.4.0.1 which shows up as incompatible with MP 1.3 now, since I see no way to make PS++ 1.4.0.x compatible with MP 1.3 due to the modified Gentle Framework.
    If you are using MP 1.3 the last compatible PS++ version is 1.3.0.2,
    if you are running MP 1.4 the only compatible PS++ version is 1.4.0.x.

    Michael
     
    Last edited:

    TiboTv

    Portal Pro
    June 22, 2009
    244
    39
    Home Country
    Belgium Belgium
    Hi,

    I made some test with the option "Run command on system power state change". I launch a bat file which do different actions depending on the argument. My final goal is to make a copy of logs and database before the computer goes in sleep mode.
    The batch is called with argument "suspend" when system goes in suspend but windows has already started his suspend process and all operation of my batch file can't be executed before the suspend.

    Is there any way to get the batch file running before windows enter in suspend mode, wait for the end of the batch file process and then force a standby? If not possible with powerscheduler++, is someone who knows a workaround?

    Thank you.
     
    Last edited:

    michael_t

    Portal Pro
    November 30, 2008
    1,258
    813
    Home Country
    Germany Germany
    Hi,

    I made some test with the option "Run command on system power state change". I launch a bat file which do different actions depending on the argument. My final goal is to make a copy of logs and database before the computer goes in sleep mode.
    The batch is called with argument "suspend" when system goes in suspend but windows has already started his suspend process and all operation of my batch file can't be executed before the suspend.

    Is there any way to get the batch file running before windows enter in suspend mode, wait for the end of the batch file process and then force a standby? If not possible with powerscheduler++, is someone who knows a workaround?

    Thank you.
    The command is triggered when PS++ recognizes a suspend event (triggered anywhere in the system). Beginning with Windows Vista it is no longer possible to postpone or even cancel a suspend once initiated. When receiving the suspend event you have two seconds time (if I remeber right) to do all what you need to do, but that's it. So I have no solution for your problem and think that ther can't be any because this is a fundamental problem.

    Michael
     

    D3ltoroxp

    MP Donator
  • Premium Supporter
  • June 1, 2008
    3,308
    205
    Home Country
    Germany Germany
    Hey Michael_t, since i update to MP 1.4 final, i have problems when my system goes to sleep mode, bevor all works fine but now after your plugin or my remote send the sleep mode command, it can be that my htpc hangs after the display is black, i think all is off the activity led is not pulsing only the power led shines. Then the only thing i can do is to shut him down with longer tiping on the power button on my case. I have logs from Mepo and my Event Log from Windows maybe you can find something was went wrong. Its not everytime, but very often for example, first shut down works, the next after wakeup don't work and my system hangs.
     

    Attachments

    • fehler.txt
      941 bytes
    • fehler.txt
      941 bytes
    Last edited:

    megahorst

    Super User
  • Team MediaPortal
  • Super User
  • July 8, 2006
    879
    259
    Home Country
    Germany Germany
    While testing one of sebastiiis Area51 patches I have mentioned that there are some plugins that try to communicate over the network before the network interface is up and running. When resuming the pc it takes some time to have LAN connectivity. PS++ client plugin tries to communicate with the server before the network interface is up and running and before the server is started.

    Steps to reproduce:
    dedicated tv-server needed
    tv-server and client have to be in S3 status
    resume client
    Now PS++ tries to communicate to the server. It does this before the LAN-interface is up and before the client has started the server and mentioned that the server is running.

    Findings that I have posted in Area51:
    A look into the log:
    [2013-07-05 22:32:16,083] [Log ] [StartupWorker] [INFO ] - SQLiteClient: Closing database: PictureDatabase.db3
    18s delay
    [2013-07-05 22:32:34,033] [Log ] [MPMain ] [DEBUG] - Main: WM_POWERBROADCAST (PBT_APMRESUMEAUTOMATIC)
    ....
    [2013-07-05 22:32:35,033] [Log ] [PS StandbyWakeup] [DEBUG] - PS: Signal client activity to the remote TvServer
    20s delay (caused by PS++?)
    [2013-07-05 22:32:55,478] [Log ] [MPMain ] [DEBUG] - Main: WM_DEVICECHANGE (Event: DBT_DEVNODES_CHANGED)
    ....
    [2013-07-05 22:32:59,286] [Log ] [MPMain ] [DEBUG] - Main: WM_DEVICECHANGE (Event: DBT_DEVNODES_CHANGED)
    18s delay (caused by PS++?)
    [2013-07-05 22:33:17,054] [Log ] [PS StandbyWakeup] [DEBUG] - PS: Cannot signal client activity to remote TvServer: Die Verbindung mit dem Remoteserver kann nicht hergestellt werden.
    ....
    [2013-07-05 22:33:17,058] [Log ] [PS StandbyWakeup] [DEBUG] - PS: Active standby is disabled - standby is handled by Windows
    15s delay (I have seen these 2 lines in many of my logs with a huge delay in between, caused by PS++?)
    [2013-07-05 22:33:32,059] [Log ] [PS StandbyWakeup] [DEBUG] - PS: StandbyWakeupThread triggered by check interval
    ....
    [2013-07-05 22:33:32,059] [Log ] [PS StandbyWakeup] [DEBUG] - PS: Signal client activity to the remote TvServer
    5s delay (I don't have a X10 remote)
    [2013-07-05 22:33:37,056] [Log ] [MPMain ] [INFO ] - X10 debug: Could not get interface
    ....
    Now the clients starts the server, but PS++ was trying to contact the server 20s before this
    [2013-07-05 22:33:37,057] [Log ] [MPMain ] [INFO ] - TVHome: WOL - Start the TV server
    .....
    I think here -5 sec the time in basic home was updated
    [2013-07-05 22:33:54,619] [Log ] [MPMain ] [DEBUG] - Cacheing expression: #(skin.setfocus(35,1000))
     

    michael_t

    Portal Pro
    November 30, 2008
    1,258
    813
    Home Country
    Germany Germany
    Hey Michael_t, since i update to MP 1.4 final, i have problems when my system goes to sleep mode, bevor all works fine but now after your plugin or my remote send the sleep mode command, it can be that my htpc hangs after the display is black, i think all is off the activity led is not pulsing only the power led shines. Then the only thing i can do is to shut him down with longer tiping on the power button on my case. I have logs from Mepo and my Event Log from Windows maybe you can find something was went wrong. Its not everytime, but very often for example, first shut down works, the next after wakeup don't work and my system hangs.
    There are lots of logs covering a long timespan. At what day / time did it happen that you computer did not go to sleep but stayed on with the power led still on and you had to shut it down?

    Michael
     

    michael_t

    Portal Pro
    November 30, 2008
    1,258
    813
    Home Country
    Germany Germany
    While testing one of sebastiiis Area51 patches I have mentioned that there are some plugins that try to communicate over the network before the network interface is up and running. When resuming the pc it takes some time to have LAN connectivity. PS++ client plugin tries to communicate with the server before the network interface is up and running and before the server is started.
    The only thing that a remote PS++ client signals to the PS++ server is "I am still busy, so do not suspend yet". So it does not matter if this information packet gets lost when the server is not yet awake. It will be repeated every time the PS++ client checks for activity (every 15 seconds).

    Michael
     

    Users who are viewing this thread

    Top Bottom