PowerScheduler++ test versions (1 Viewer)

robbo100

Retired Team Member
  • Premium Supporter
  • May 5, 2009
    1,291
    308
    UK
    Home Country
    United Kingdom United Kingdom
    Re: PowerScheduler++ Version 1.2.0.10 (RC1)

    As long as the MP client is running, the PS++ client plugin signal to the PS++ server plugin that it should not suspend.

    Brilliant,

    Sorry for asking such a basic question, I had misunderstood that it relied only on the network activity. I am just about to set-up my first seperate client and server sustems (currently run single seat), so I am trying to get my head round how everything will work.

    Thanks

    Robbo100
     

    michael_t

    Portal Pro
    November 30, 2008
    1,258
    813
    Home Country
    Germany Germany
    AW: Re: PowerScheduler++ Version 1.2.0.10 (RC1)

    Hi,

    Version 1.2.0.9: Features: Slideshows prevent standby (thx: tourettes), Forced suspend works even if system is in away mode

    Does this mean that you found a way to exit from away mode?

    //Johannes
    Hi Johannes,

    yes, I found a way. PS++ server plugin calls "UserShutdownNow()" before suspending the system to inform all standby/wakeup handlers that the system is going down soon. The PS++ client plugin is registered as a standby/wakeup handler, so it gets called too and can exit away mode by calling SendKeys.SendWait ({CAPSLOCK}) twice. This works since PS++ client plugin is running in a forms application context.

    Michael
     

    sfang

    Portal Member
    February 15, 2011
    6
    0
    Home Country
    Sweden Sweden
    Re: PowerScheduler++ Version 1.2.0.10 (RC1)

    I cant seem to get Away Mode to work. The request is registered in powercfg /requests but when triggering hibernation during a recording it goes straight to hibernate.

    I've checked my BIOS config but haven't found anything that explicitly says Away Mode. Any advice?
     

    Wbunaarf

    Portal Pro
    December 9, 2005
    534
    103
    Sweden
    Home Country
    Sweden Sweden
    Re: AW: Re: PowerScheduler++ Version 1.2.0.10 (RC1)

    Hi,

    Version 1.2.0.9: Features: Slideshows prevent standby (thx: tourettes), Forced suspend works even if system is in away mode

    Does this mean that you found a way to exit from away mode?
    Hi Johannes,

    yes, I found a way.


    Unfortunately it doesn't work here. I've just made two tests.

    In both cases I cleaned the logs, started MP, entered EPG, chose a program, watched for a short while, started a manual recording of it and watched for yet a short while.

    In the first case (MediaPortalLogs_15_02_11__22_46-suspend-while-tv-on.zip) I pressed the standby key while watching fullscreen TV, while in the second case (MediaPortalLogs_15_02_11__23_15-suspend-while-tv-off.zip) I first exited to home screen and stopped TV before pressing standby.

    In both cases away mode was entered, but in neither did the machine suspend after finishing the recording. After having waited for a while I pressed the keyboard which exited away mode and returned me to a very hung MP. After having killed the process the machine immediately went to sleep.

    //Johannes
     

    sfang

    Portal Member
    February 15, 2011
    6
    0
    Home Country
    Sweden Sweden
    Re: AW: [New Plugin] PowerScheduler++ (New Version 1.1.1.6)

    Being able to select in which of those cases the system should enter away mode, suspend or, if possible, completely ignore the request could be a very nice feature!
    +1

    I've tried to get away mode to work by updating BIOS and drivers, changing BIOS settings and trying MCE Stanby Tool without any success. Actually I don't care about away mode at all I just don't want to interrupt my recordings by accident.

    If it's possible to add the option just to ignore shutdown/hibernation requests that would be great!
     

    fmulders

    MP Donator
  • Premium Supporter
  • June 3, 2009
    99
    14
    51
    Home Country
    Netherlands Netherlands
    Re: AW: [New Plugin] PowerScheduler++ (New Version 1.1.1.6)

    Actually I don't care about away mode at all I just don't want to interrupt my recordings by accident.

    If it's possible to add the option just to ignore shutdown/hibernation requests that would be great!

    +1

    I still have the problem that the PC is set to "mute" when coming out of standby after PS++ put it in away mode.
    I can not change the mute state by remote (external amplifyer) so thats realy a show stopper!

    So if an option to only prevent standby when recording is posible, that would be great.

    Frank
     

    michael_t

    Portal Pro
    November 30, 2008
    1,258
    813
    Home Country
    Germany Germany
    AW: Re: AW: [New Plugin] PowerScheduler++ (New Version 1.1.1.6)

    I've tried to get away mode to work by updating BIOS and drivers, changing BIOS settings and trying MCE Stanby Tool without any success.
    Away mode does not have to do anything with power saving modes. In away mode the system is fully running (S0), only audio and video are shut off. So there is no need for updating bios or drivers, because drivers and bios see no difference between normal operation and away mode.

    Actually I don't care about away mode at all I just don't want to interrupt my recordings by accident.

    If it's possible to add the option just to ignore shutdown/hibernation requests that would be great!
    So if an option to only prevent standby when recording is posible, that would be great.
    In Vista and Windows 7 suspend requests (either by software or by user) can not be ignored or refused, like it was possible in Windows XP. The only way to prevent the system from going to standby when a user presses the power off button (or selects shutdown in start menu or a process requests standby...) is to tell the system that it should enter away mode in these cases. This is done in PS++ while a recording is active and in some more (now configurable) cases. Then the system will not suspend but continues running with sound and display switched off, which is called away mode. Any user activity (key, mouse, ...) makes the system to leave away mode, ie. sound and display are switched on again. Away mode is a Windows operating system feature; you can only use it as it is or leave it... See Microsoft paper for more details.

    Michael
     

    sfang

    Portal Member
    February 15, 2011
    6
    0
    Home Country
    Sweden Sweden
    Re: PowerScheduler++ Version 1.2.0.10 (RC1)

    Ok. My motherboard cd install drivers for away mode (but maybe they aren't required) and the readme states something about bios options. But the Microsoft paper explicitly say that there are no requirements, so its a bit confusing.

    Anyhow all the settings look right to me:

    Code:
    C:\Windows\system32>powercfg /qh SCHEME_MAX SUB_SLEEP
    Power Scheme GUID: a1841308-3541-4fab-bc81-f71556f20b4a  (Power saver)
      Subgroup GUID: 238c9fa8-0aad-41ed-83f4-97be242c8f20  (Sleep)
        Power Setting GUID: 25dfa149-5dd1-4736-b5ab-e8a37b5b8187  (Allow Away Mode P
    olicy)
          Possible Setting Index: 000
          Possible Setting Friendly Name: No
          Possible Setting Index: 001
          Possible Setting Friendly Name: Yes
        Current AC Power Setting Index: 0x00000001
        Current DC Power Setting Index: 0x00000000
    Code:
    AWAYMODE:
    [SERVICE] \Device\HarddiskVolume3\Program Files\Team MediaPortal\MediaPortal TV
    Server\TvService.exe (TVService)
    I've tried MCE Stanby Tool and still it isnt working.

    If i tell windows not do anything when i push my power button is it possible to somehow let the plugin decide what to do when its pushed?
     

    michael_t

    Portal Pro
    November 30, 2008
    1,258
    813
    Home Country
    Germany Germany
    AW: Re: AW: Re: PowerScheduler++ Version 1.2.0.10 (RC1)

    Unfortunately it doesn't work here. I've just made two tests.

    In both cases I cleaned the logs, started MP, entered EPG, chose a program, watched for a short while, started a manual recording of it and watched for yet a short while.

    In the first case (MediaPortalLogs_15_02_11__22_46-suspend-while-tv-on.zip) I pressed the standby key while watching fullscreen TV, while in the second case (MediaPortalLogs_15_02_11__23_15-suspend-while-tv-off.zip) I first exited to home screen and stopped TV before pressing standby.

    In both cases away mode was entered, but in neither did the machine suspend after finishing the recording. After having waited for a while I pressed the keyboard which exited away mode and returned me to a very hung MP. After having killed the process the machine immediately went to sleep.

    //Johannes
    Hi Johannes,

    From the logs it seems that the PS++ client hangs when calling SendKeysWait and thus the call to UserShutdownNow() never returns. I tried to reproduce this here but had no error. We should carefully work out what is the difference between your and my system:
    Can you check that your PS client plugin is version 1.2.0.10 (I cannot see this from the logs)?
    To reproduce the bug, I did the following:
    - Nothing is running, only desktop
    - I start the MP client, go to Tv guide, select a program ending soon (so that I do not have to wait too long...) and start recording (from context menu without watching it).
    - I leave TV guide and go to home screen
    - I press the poweroff button of my keyboard and the machine goes to away mode
    - After the recording has ended and the idle timeout time has passed the machine goes to standby (S3)
    Is that similar to your scenario? I also tried some varaiations (start recording from live tv, change to the desktop before power off, ...) but they also worked well...

    Michael
     

    Users who are viewing this thread

    Top Bottom