PowerScheduler plugin 0.1 (wakeup/hibernate) (1 Viewer)

A

Anonymous

Guest
Hi hibernators,

frodo asked
1. Does it work with the following recording types:
- daily
-weekly
-mon-fri
- everytime on this channel
- everytime on any channel
or only with the manual & once recordings???
And of course frodo knew this could be an issue since neither start time for these recordings is updated in the TVdatabase nor will there be entrys for each recording. I thought the TVDatabase was updated with an entry for each recording according to the tvguide, but sadly that is not the case.

OK, this means that daily, weekly, mon-fri, everytime on this channel and everytime on any channel won't work at present.
I will of cource look into this and try to fix it.

/ fred
 

MrMario64

Retired Team Member
  • Premium Supporter
  • April 22, 2004
    822
    1
    50
    Home Country
    Netherlands Netherlands
    i was thinking,

    Could this be a seperate app ?
    This way it will also work when the PC is running but MP is not.
    Your program could then start MP and start the recording.

    I did not try your plugin yet, so if I'm talking dumb I'm sorry :)
     
    A

    Anonymous

    Guest
    @MrMario
    Well, my plugin depends on receiving messages sent inside MP so I think it would be hard to simply make it a separate program.
    I think the best and most versatile way to implement this would be to extract the whole TVrecording stuff from MP and put it in a separate windows service. This would of course result in major refactoring of the TV section of MP and make it a back end/front end solution. (which I think would be very nice)

    An other possible solution would be to do it the other way around. I can't estimate the amount of work to this or if it is even doable at all.
    What do you MP devs think of this:
    Since MP is quite modular and uses messages for GUI interactions would it be possible to lift the GUI part out of MP to a separate front end application and make the rest a windows service back end?

    / Fred
     

    samuel337

    Portal Pro
    August 25, 2004
    772
    0
    Melbourne, Australia
    fred said:
    samuel
    I've not tried it with build .11 yet but I think it should work.
    You aren't using both the shutdown feature of then plugin and the Windows inbuilt are you?
    Check the MediaPortal.log to see if the shutdown feature is activated or not at the time your system shuts down.
    2004-10-18 01:48:59 PowerScheduler: Shutdown timer deactivated by MediaPortal.GUI.TV.GUITVHome
    2004-10-18 01:48:59 Recorder.StartViewing:0 channel:confused:VHS tvon:False timeshift:False
    2004-10-18 01:49:01 window:MediaPortal.GUI.TV.GUITVHome deinit
    2004-10-18 01:49:01 PowerScheduler: Shutdown timer activated, automatic shutdown in 3 minutes.

    Thanks for the reply. Nope, I'm not using the windows inbuilt and your plugin at the same time. Here's the relevant excerpt from my log file:

    ..............................
    24/10/2004 10:48:55 PM PowerScheduler: Settings loaded - wakeup 3, shutdown 10, mode Hibernate
    24/10/2004 10:48:55 PM PowerScheduler: Initiated.
    24/10/2004 10:48:55 PM initialize skin
    24/10/2004 10:48:55 PM load calibration1280x1024.xml
    24/10/2004 10:48:56 PM PowerScheduler: Shutdown timer activated, automatic shutdown in 10 minutes
    24/10/2004 10:48:56 PM window:MediaPortal.GUI.Home.HomeWindow init
    24/10/2004 10:48:56 PM skin initalized
    24/10/2004 10:48:56 PM DX9 size: 1280x1024
    24/10/2004 10:48:56 PM video ram left:112640 KByte
    24/10/2004 10:48:56 PM Start MediaPortal
    .................
    24/10/2004 11:02:17 PM window:MediaPortal.GUI.TV.GUITVHome init
    24/10/2004 11:02:17 PM PowerScheduler: Shutdown timer deactivated by MediaPortal.GUI.TV.GUITVHome
    24/10/2004 11:02:17 PM Recorder.StartViewing:0 channel:Network TEN tvon:False timeshift:False
    24/10/2004 11:02:19 PM Recorder: Stop recording on channel:Network TEN capture card:1
    24/10/2004 11:02:19 PM PowerScheduler: Rescan recordings - cause OnRecordingsChanged()
    24/10/2004 11:02:19 PM Card:1 stop recording
    24/10/2004 11:02:19 PM Recorder.StartViewing:0 channel:Network TEN tvon:False timeshift:False
    24/10/2004 11:02:19 PM Card:1 stop timeshifting
    24/10/2004 11:02:25 PM window:MediaPortal.GUI.TV.GUITVHome deinit
    24/10/2004 11:02:25 PM window:MediaPortal.GUI.TV.GUIRecordedTV init
    24/10/2004 11:02:25 PM PowerScheduler: Shutdown timer deactivated by MediaPortal.GUI.TV.GUIRecordedTV
    24/10/2004 11:02:26 PM PowerScheduler: Shutdown timer deactivated by MediaPortal.GUI.TV.GUITVHome
    24/10/2004 11:02:26 PM Recorder.StartViewing:0 channel:Network TEN tvon:False timeshift:False
    24/10/2004 11:02:27 PM PowerScheduler: Shutdown timer deactivated by MediaPortal.GUI.TV.GUIRecordedTV
    24/10/2004 11:02:35 PM window:MediaPortal.Dialogs.GUIDialogSelect2 init
    24/10/2004 11:02:37 PM PowerScheduler: Shutdown timer deactivated by MediaPortal.Dialogs.GUIDialogSelect2
    24/10/2004 11:02:37 PM PowerScheduler: Shutdown timer deactivated by MediaPortal.GUI.TV.GUIRecordedTV
    24/10/2004 11:02:37 PM Player.Play(C:\Recorded TV\Network TEN_Ten Late Night News_200410242230p4925.avi)
    24/10/2004 11:02:37 PM Loading external players plugins
    24/10/2004 11:02:37 PM found plugin:MediaPortal.WinampPlayer.WinampPlugin in plugins\ExternalPlayers\WinampExternalPlayer.dll
    24/10/2004 11:02:37 PM player:Winamp. author: int_20h
    24/10/2004 11:02:37 PM found plugin:MediaPortal.FoobarPlugin.FoobarPlugin in plugins\ExternalPlayers\FoobarExternalPlayer.dll
    24/10/2004 11:02:37 PM player:Foobar2000. author: int_20h
    24/10/2004 11:02:37 PM VideoPlayer:play C:\Recorded TV\Network TEN_Ten Late Night News_200410242230p4925.avi
    24/10/2004 11:02:37 PM VideoPlayer:cleanup DShow graph
    24/10/2004 11:02:37 PM add filter:ffdshow raw video filter to graph
    24/10/2004 11:02:37 PM added filter:ffdshow raw video filter to graph
    24/10/2004 11:02:37 PM add filter:Default DirectSound Device to graph
    24/10/2004 11:02:38 PM filter already in graph
    24/10/2004 11:02:38 PM Filter #0 :Default DirectSound Device
    24/10/2004 11:02:38 PM Filter #1 :Video Renderer
    24/10/2004 11:02:38 PM Filter #2 :ffdshow raw video filter
    24/10/2004 11:02:38 PM Filter #3 :AVI Splitter
    24/10/2004 11:02:38 PM Filter #4 :C:\Recorded TV\Network TEN_Ten Late Night News_200410242230p4925.avi
    24/10/2004 11:02:38 PM 0,0-1292,1036 vidwin:117,764-422,989 fs:True
    24/10/2004 11:02:38 PM VideoPlayer:Window (0,0)-(352,288) - (12,0)-(1278,1036)
    24/10/2004 11:02:38 PM Duration:476.2485524
    24/10/2004 11:02:38 PM window:MediaPortal.GUI.TV.GUIRecordedTV deinit
    24/10/2004 11:02:39 PM window:MediaPortal.GUI.Video.GUIVideoFullscreen init
    24/10/2004 11:02:39 PM 0,0-1292,1036 vidwin:117,764-422,989 fs:True
    24/10/2004 11:02:39 PM VideoPlayer:Window (0,0)-(352,288) - (0,0)-(1292,1036)
    24/10/2004 11:02:39 PM PowerScheduler: Shutdown timer activated, automatic shutdown in 10 minutes
    24/10/2004 11:12:55 PM PowerScheduler: shutdown timer expired
    24/10/2004 11:12:55 PM PowerScheduler: Hibernate system

    The ........................... bit just means I took out some bits which I didn't think was relevant.

    It seems as though when full screen video is playing, power scheduler is activating itself when it shouldn't.

    Sam
     
    A

    Anonymous

    Guest
    samuel
    Yes you're right, thanks for your effort in testing.
    VideoPlayer is sending messages to the HOME window which activates the shutdown timer. I will try to figure out an other way of activating/deactivating the shutdown feature.

    @ Anyone knowing the inner secrets of MP
    I tried to listen to windows_init messages to find out which window is active but I didn't receive any init-messages. So for now, the last window that a message was sent to is interpreted as the active window (which obviously is not always the case).
    My question is:
    Is there a proven reliable method of knowing which window is curently active accessible from a plugin?
    Any idea on other ways to implement the inactivity timer would also help.

    / Fred
     

    mama

    Portal Pro
    May 31, 2004
    334
    0
    Germany
    Dunno if I missed something, but the plugin can´t wakeup a PC that was shut down, right? So how do you hibernate or standby your HTPCs? The button in the MCE skin is still a shut down button. So I always have to use the keyboard instead of the remote to hibernate it.

    In the grabber setup the login and password is requested to start a task. I tried it today and it recorded while I wasn´t at home, but at the next start of the PC I had to login, so how did you solve this?
     

    Users who are viewing this thread

    Top Bottom