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

astrapowerrr

Portal Pro
May 21, 2008
180
13
47
ijsselstein
Home Country
Netherlands Netherlands
Well I'm not in the luxury for having multiple systems..
Hahaha but do you know someone here who has a lot of remote experience? Or some people who wrote the mce software part?
 

michael_t

Portal Pro
November 30, 2008
1,258
813
Home Country
Germany Germany
I need some advice how to make such power profile using PS or regular windows power options.

Scenario is that my HTPC is a server also with MP, Plex server etc. All is shared with users via LAN and WAN. So I use it as HTPC as client and all services are widely used outside my house by friends also. So need is to not interfere outside usage.

I would like to setup that way HTPC is working on daytime hours and going to hibernation (wake up from standby problems) only from 2 am to 7 am. But not manually, it just go to hibernation automatically and wakes in the morning at 7. All work as client should go only to away mode.

Help please, because all methods I tried is not working correctly - usually it is not going to sleep automatically in that hour range as set in PS and pushing button on the remote by kids it shuts down during the day also.
Basically it is not a good idea to have a server (which is not only the tv server for MP) run client applications with user interaction ("...pushing button on the remote by kids it shuts down during the day..."). So in the long run I would recommend you to setup a distinct MP client that your kids can power on and off without problems...
Now for the current setup: You can prevent the server from going to sleep mode during daytime by configuring PS++ not to goto standby and entering away mode while a certain process is running. This blocking process must be started in the morning (e.g. by the windows task scheduler) and continues running during the day. In the evening, when you want your system to go to standby when not needed, the process must be stopped (e.g. by another task scheduler entry). To wakeup the server again in the morning you could configure the task scheduler to wakeup the system when starting the blocking process.
Note: You have to map all user actions (power button, lid close, remote power off, ...) to "sleep" and not to "hibernate" if you want them to enter away mode during day time. If these are mapped to hibernate, the system will always hibernate independent from what is configured in PS++. But you can ofc configure PS++ to use hibernate as sleep mode for the idle timer. Have a look at the PS++ wiki (advanced topics) for details.

Michael
 

doveman

Portal Pro
February 12, 2008
2,326
178
Home Country
United Kingdom United Kingdom
Hmm, seems kiwijunglist's workaround isn't going to work for me as it still goes to standby when the PC is busy (such as scanning media files to the library with XBMC) so I guess it only prevents standby when the user is actively using the PC. I don't want to have to try and add every process that might need it to a list, hence why I wanted to use Windows to control standby, so I guess I'm going to have to try and figure out why srvnet isn't being overriden by the requestsoverride.
 

Arturas1976

MP Donator
  • Premium Supporter
  • January 5, 2008
    246
    40
    Vilnius
    Home Country
    Lithuania Lithuania
    I need some advice how to make such power profile using PS or regular windows power options.

    Scenario is that my HTPC is a server also with MP, Plex server etc. All is shared with users via LAN and WAN. So I use it as HTPC as client and all services are widely used outside my house by friends also. So need is to not interfere outside usage.

    I would like to setup that way HTPC is working on daytime hours and going to hibernation (wake up from standby problems) only from 2 am to 7 am. But not manually, it just go to hibernation automatically and wakes in the morning at 7. All work as client should go only to away mode.

    Help please, because all methods I tried is not working correctly - usually it is not going to sleep automatically in that hour range as set in PS and pushing button on the remote by kids it shuts down during the day also.
    Basically it is not a good idea to have a server (which is not only the tv server for MP) run client applications with user interaction ("...pushing button on the remote by kids it shuts down during the day..."). So in the long run I would recommend you to setup a distinct MP client that your kids can power on and off without problems...
    Now for the current setup: You can prevent the server from going to sleep mode during daytime by configuring PS++ not to goto standby and entering away mode while a certain process is running. This blocking process must be started in the morning (e.g. by the windows task scheduler) and continues running during the day. In the evening, when you want your system to go to standby when not needed, the process must be stopped (e.g. by another task scheduler entry). To wakeup the server again in the morning you could configure the task scheduler to wakeup the system when starting the blocking process.
    Note: You have to map all user actions (power button, lid close, remote power off, ...) to "sleep" and not to "hibernate" if you want them to enter away mode during day time. If these are mapped to hibernate, the system will always hibernate independent from what is configured in PS++. But you can ofc configure PS++ to use hibernate as sleep mode for the idle timer. Have a look at the PS++ wiki (advanced topics) for details.

    Michael



    Thank you very much, will try to setup this way.

    P.S. My HTPC is not reachable for kids physically so only a remote is that interaction point. So scenario is not so vulnerable. All processes works perfect so in price permormance point of view it is the best architecture. I have been thinking to restructurize several times in the way to separate server but it is not really necessary.
     

    doveman

    Portal Pro
    February 12, 2008
    2,326
    178
    Home Country
    United Kingdom United Kingdom
    Actually, it seems that the NFS Server should reset the Windows Standby timer itself as this shows for powercfg -requests

    [SERVICE] \Device\HarddiskVolume1\Program Files\nfsd\nfsd.exe (NFSserver)

    so I won't need to use PS++ Network/Share monitoring for that. The TVServerXBMC plugin uses SMB, so that's a different matter but it's so buggy I'm not going to be using that anyway.

    I'd still like to know if PS++ resets the Windows Standby Timer on network /shares activity though or if the PC will go to standby as soon as the network activity stops?
     

    doveman

    Portal Pro
    February 12, 2008
    2,326
    178
    Home Country
    United Kingdom United Kingdom
    I left my PC updating my Plex Library and it went to sleep in the middle of it!

    I've got Windows controlling standby as far as I know but could you please check the attached log for me to see if there's any indication that PS++ had anything to do with the standby?
     

    michael_t

    Portal Pro
    November 30, 2008
    1,258
    813
    Home Country
    Germany Germany
    I'd still like to know if PS++ resets the Windows Standby Timer on network /shares activity though or if the PC will go to standby as soon as the network activity stops?
    If you check network monitoring standby will be prevented as long as the network is active, but the Windows idle timer is not modified. The same counts for all PS++ standby conditions. PS++ only resets the Windows idle timer if there is a user activity on the client (including media playback, slideshow etc.).

    Michael
     

    michael_t

    Portal Pro
    November 30, 2008
    1,258
    813
    Home Country
    Germany Germany
    I left my PC updating my Plex Library and it went to sleep in the middle of it!

    I've got Windows controlling standby as far as I know but could you please check the attached log for me to see if there's any indication that PS++ had anything to do with the standby?
    It's all Windows...
     

    doveman

    Portal Pro
    February 12, 2008
    2,326
    178
    Home Country
    United Kingdom United Kingdom
    Thanks Michael. Think it's a shame PS++ doesn't reset the idle timer though, as that would prevent those situations where it goes to standby as soon as someone stops watching something on a client device.
     

    Users who are viewing this thread

    Top Bottom