Turn off when external prog terminates (1 Viewer)

sunsetdk

Portal Pro
October 18, 2005
116
3
43
Nordborg
Home Country
Denmark Denmark
Hello

This might have been asked before. But i use Crunchie to compress my video, Crunchie turns on the computer on everyday at 12 to see if any programs are older than 7 days. if so then it will compress them (it starts as a windows task). But when the computer starts MP starts too. And power scheduler is enable.As far as my mind goes, power scheduler will just turn of the computer after the specifiede time even tho Crunchie takes far longer than the 3 min i have specified to compress a video. Can i do something to avoid this? I have tryed PVR scheduler, but it seems to fail quite often (as in it just crashes MP and it self, and there by nothing is recorded till i get home and restart).

René
 

bartmanson

MP Donator
  • Premium Supporter
  • December 28, 2004
    127
    35
    Nuremberg
    Home Country
    Germany Germany
    Hi Rene,

    I wrote a small plugin that hinders power scheduler from shutting down/hibernating/standbying ;-) the pc as long as certain processes are running. You can specify the processes via its setup form.

    It was my first try programming in c#. Since I didn't program for a long time, I was too ashamed to announce it publicly yet, but if you are interested to try it out, I could put it on my webserver or send it to you by pm.

    Ciao,
    BartManson
     

    sunsetdk

    Portal Pro
    October 18, 2005
    116
    3
    43
    Nordborg
    Home Country
    Denmark Denmark
    Hello

    I would like that plugin, so please send it to me or post it on your page. Or by mail rene-jensen@get2net.dk (I know i shuoldn't post a email on the forum, but that one gets loads of spam anyway).

    Can i get the source code too?

    René
     

    mzemina

    Retired Team Member
  • Premium Supporter
  • February 23, 2005
    2,065
    14
    Tulsa, OK
    Home Country
    United States of America United States of America
    Since it is a plugin why not post the info in the plugin section of the MP forum?

    Mike
     

    bartmanson

    MP Donator
  • Premium Supporter
  • December 28, 2004
    127
    35
    Nuremberg
    Home Country
    Germany Germany
    Hi Mike,

    mzemina said:
    Since it is a plugin why not post the info in the plugin section of the MP forum?

    Mike

    There are several reasons for this:
    • It is currently work in progress. The part that hinders power scheduler from shutting down the pc works (at least on my pc...), but I'd like to add some functionality to do the opposite, i. e. supervise if a certain program is still running and restart it if it is not running (e.g. girder)
    • I do not know if it works with latest cvses because I developed it against RC2 and 0.1.3.0
    • I won't be able to work on it within the next two weeks. After that I will finish it and then (especially when I checked whether it works with 0.2 final) I will put it in the plugin section.

    Anyway, you can download the current version here. The zip file contains source and dll. Just copy the dll to mediaportal\plugins\process and then you should see it in mp setup. The setup dialog contains all the information that is necessary to understand how to use the plugin.

    Ciao,
    BartManson
     

    venger

    Portal Member
    May 10, 2005
    18
    0
    feature request for watchdog

    Hi there :)

    Thanks for your work on your watchdog program ! :) ..

    would you please consider adding an option in your watchdog program to also monitor keystrokes or mouse....

    (1) no MP activities (already monitored by powerscheduler)
    (2) no specific-process activities (current function of your watchdog)
    (3) no keystrokes or mouse (my function request)

    The above conditions (1) (2) and (3) will provide a lot of flexibility to MP users. Users can define their own 'HTPC idle' conditions :0).
    e.g., use (1) only...
    or (1) and (2) only ......
    or (1) and (3) only...
    or (1) (2) and (3)....


    Just my 2 cents! :)
     

    MediaTobiPortal

    Portal Pro
    December 13, 2004
    206
    6
    124
    WatchDog not working (MP 0.2.0.4)

    Hello bartmanson !

    I think you already know, that at the moment your plugin isn´t working.
    It doesn´t react on any running process.

    In my case MP (or more exactly PowerScheduler) sends my PC to sleep, if also I configured wachtdog not to shutdown, when "ping.exe" is running.

    Here is a part of MediaPortal.log - you can see, that watchdog "thinks" ping.exe is not running.

    ....
    29.08.2006 13:11:05 PowerScheduler: ShutdownCheck()
    29.08.2006 13:11:05 PowerScheduler: Shutdown timer expired
    29.08.2006 13:11:05 PowerScheduler: PreShutdownCheck()
    29.08.2006 13:11:05 PowerScheduler: GetNextRecordingStarttime()
    29.08.2006 13:11:05 PowerScheduler: Earliest valid starttime 29.08.2006 13:11:05
    29.08.2006 13:11:05 PowerScheduler: Next date/time:21.08.2006 17:49:00 Type:Every2 Das Erste Verbotene Liebe
    29.08.2006 13:11:05 PowerScheduler: Next date/time:21.08.2006 19:39:00 Type:Every2 Sat.1 Verliebt in Berlin
    29.08.2006 13:11:05 PowerScheduler: Next date/time:29.08.2006 19:04:00 Type:Weekdays Das Vierte Knight Rider
    29.08.2006 13:11:05 PowerScheduler: Next date/time:27.08.2006 11:54:00 Type:Every2 RTL Television Formel 1: Das Rennen
    29.08.2006 13:11:05 PowerScheduler: Evaluate TVGuide recordings
    29.08.2006 13:11:05 PowerScheduler: TVGuide Verbotene Liebe Das Erste 29.08.2006 17:49:00
    29.08.2006 13:11:05 PowerScheduler: GetNextRecordingStarttime() starttime 29.08.2006 17:49:00
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    29.08.2006 13:11:05 WatchDog: Process ping.exe is not running
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    29.08.2006 13:11:05 PowerScheduler: ResetShutdownTimer()
    29.08.2006 13:11:05 PowerScheduler: Shutdown timer deactivated
    29.08.2006 13:11:05 PowerScheduler: Hibernate system
    29.08.2006 13:11:05 Utils: Hibernate system
    ....

    I attached a pic of taskmanager at this moment with "ping.exe" running and a pic of my watchdog configuration.

    Can you please send me a mail to Stobi@web.de, when you found out the problem ?!


    Thanks, Tobi
     

    CHli

    Portal Pro
    July 5, 2005
    1,251
    14
    Switzerland
    Home Country
    Switzerland Switzerland
    I have no problem here but I know perhaps what is yours :D

    Please read what's under the "Delete Process" and above the "Save and close button" in WatchDog plugin configuration form :)

    Try and tell me if that fixed it ?

    To be clear try to enter "Ping" instead of "ping.exe" just to see... thanks :)
     

    Users who are viewing this thread

    Top Bottom