PowerScheduler plugin 0.1 (wakeup/hibernate) (3 Viewers)

mama

Portal Pro
May 31, 2004
334
0
Germany
@jroe: That caused an exception:

************** Ausnametext **************
System.Exception: exception occured ---> System.ComponentModel.Win32Exception: Das System kann die angegebene Datei nicht finden
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at MediaPortal.GUI.Library.GUIButtonControl.OnAction(Action action)
at MediaPortal.GUI.Library.GUIWindow.OnAction(Action action)
at MediaPortal.Topbar.GUITopbarHome.OnAction(Action action)
at MediaPortal.GUI.Library.GUIWindowManager.OnAction(Action action)
at MediaPortalApp.OnAction(Action action)
--- Ende der internen Ausnahmestapelüberwachung ---
at MediaPortalApp.OnAction(Action action)
at MediaPortalApp.keydown(KeyEventArgs e)
at MediaPortal.D3DApp.OnKeyDown(Object sender, KeyEventArgs e)
at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e)
at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
at System.Windows.Forms.Control.WmKeyChar(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at MediaPortalApp.WndProc(Message& msg)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 

johnbobjamesson

Portal Pro
June 17, 2004
91
0
Crailsheim
OKay, I gave it shot again with Suspend mode. I scheduled a recording at 1712 h for 1745 h. The system went into suspend mode automatically just fine, but didn't wake up at the set time. However, as you can see, the wakeup timer was set correctly and the log states that something happened at the correct time.

At 1759 I manually turned the system on, it started recording (which I can see at my external TV box) and I had a look at the mediaportal.log. Now, if you didn't know what I just told you, according to the log there should have happened something, the log says it started recording. But believe me, nothing happened (no power on, nothing) and the file that started recording starts at 1800 h - right after I turned the system on manually.

Here's the log:

26.10.2004 17:13:08 window:MediaPortal.Dialogs.GUIDialogSelect2 init
26.10.2004 17:13:10 PowerScheduler: Shutdown timer deactivated by MediaPortal.Dialogs.GUIDialogSelect2
26.10.2004 17:13:10 PowerScheduler: Rescan recordings - cause OnRecordingsChanged()
26.10.2004 17:13:10 PowerScheduler: next scheduled recording starttime: 26.10.2004 17:45:00
26.10.2004 17:13:10 PowerScheduler: Set wakeup timer at 26.10.2004 17:40:00
26.10.2004 17:13:10 PowerScheduler: Shutdown timer deactivated by MediaPortal.GUI.TV.GUITVGuide
26.10.2004 17:13:12 window:MediaPortal.GUI.TV.GUITVGuide deinit
26.10.2004 17:13:12 texturemanager:CleanupThumbs()
26.10.2004 17:13:12 window:MediaPortal.GUI.TV.GUITVHome init
26.10.2004 17:13:13 PowerScheduler: Shutdown timer deactivated by MediaPortal.GUI.TV.GUITVHome
26.10.2004 17:13:13 Recorder.StartViewing:0 channel:VOX tvon:False timeshift:False
26.10.2004 17:13:14 window:MediaPortal.GUI.TV.GUITVHome deinit
26.10.2004 17:13:14 texturemanager:CleanupThumbs()
26.10.2004 17:13:14 PowerScheduler: Shutdown timer activated, automatic shutdown in 5 minutes
26.10.2004 17:13:14 window:MediaPortal.GUI.Home.HomeWindow init
26.10.2004 17:18:39 PowerScheduler: shutdown timer expired
26.10.2004 17:18:39 PowerScheduler: Suspend system
26.10.2004 17:40:01 PowerScheduler: Rescan recordings - cause wakeup timer expired
26.10.2004 17:40:01 PowerScheduler: next scheduled recording starttime: 26.10.2004 21:15:00
26.10.2004 17:40:01 PowerScheduler: Set wakeup timer at 26.10.2004 21:10:00
26.10.2004 17:42:00 Recorder: time to record a program on channel:Kabel 1
26.10.2004 17:42:00 Recorder: find free capture card
26.10.2004 17:42:00 Recorder: found capture card:1 Pinnacle PCTV Deluxe USB (PAL) Device
26.10.2004 17:42:00 Card:1 record new program on Kabel 1
26.10.2004 17:42:00 Card:1 start timeshifting :Kabel 1
26.10.2004 17:42:01 Card:1 timeshift to file:C:\Dokumente und Einstellungen\htpc\Eigene Dateien\Aufnahmen\card1\live.tv
26.10.2004 17:42:01 SinkGraph:confused:tartTimeShifting()
26.10.2004 17:42:01 SinkGraph:TuneChannel() tune to channel:18
26.10.2004 17:42:01 SinkGraph:confused:elect tvformat:None
26.10.2004 17:42:01 SinkGraph:TuneChannel() tuningspace:0 country:49 tv standard:pAL_B cable:True
26.10.2004 17:42:01 SinkGraph:confused:elect tvformat:pAL_B
26.10.2004 17:42:01 SinkGraph:TuneChannel() tuned to 161,25 MHz. tvformat:pAL_B
26.10.2004 17:42:01 Capture.FixCrossbarRouting: tuner:True cvbs1:False cbs2:False svhs:False
26.10.2004 17:42:01 Set Crossbar routing. Tuner:True :confused:ystem.__ComObject
26.10.2004 17:42:01 Find crossbar:#0
26.10.2004 17:42:01 crossbar found:1
26.10.2004 17:42:01 crossbar:confused:ystem.__ComObject inputs:5 outputs:2
26.10.2004 17:42:01 check:0->0 / Video_Composite->Video_VideoDecoder
26.10.2004 17:42:01 check:1->0 / Video_SVideo->Video_VideoDecoder
26.10.2004 17:42:01 check:2->0 / Video_Tuner->Video_VideoDecoder
26.10.2004 17:42:01 connect
26.10.2004 17:42:01 connect success
26.10.2004 17:42:01 check:3->1 / Audio_Line->Audio_AudioDecoder
26.10.2004 17:42:01 check:4->1 / Audio_Tuner->Audio_AudioDecoder
26.10.2004 17:42:01 connect
26.10.2004 17:42:01 connect success
26.10.2004 17:42:01 Find crossbar:#1
26.10.2004 17:42:01 no more crossbars.:0x80004005
26.10.2004 17:42:01 crossbar routing done
26.10.2004 17:42:01 mpeg2:add Videoanalyzer
26.10.2004 17:42:01 mpeg2:add streambuffersink
26.10.2004 17:42:01 mpeg2:confused:tartTimeshifting(C:\Dokumente und Einstellungen\htpc\Eigene Dateien\Aufnahmen\card1\live.tv)
26.10.2004 17:42:01 mpeg2:render graph
26.10.2004 17:42:01 mpeg2:render to :C:\Dokumente und Einstellungen\htpc\Eigene Dateien\Aufnahmen\card1\live.tv
26.10.2004 17:42:01 mpeg2:connect demux video out->analyzer in
26.10.2004 17:42:01 mpeg2:demux video out connected to analyzer
26.10.2004 17:42:01 mpeg2:analyzer out->stream buffer
26.10.2004 17:42:01 mpeg2:connected to streambuffer
26.10.2004 17:42:01 mpeg2:demux audio out->stream buffer
26.10.2004 17:42:01 mpeg2:audio out connected to streambuffer
26.10.2004 17:42:01 mpeg2:confused:et folder:C:\Dokumente und Einstellungen\htpc\Eigene Dateien\Aufnahmen\card1 filecount 10-20, fileduration:10mins
26.10.2004 17:42:01 mpeg2:lock profile
26.10.2004 17:42:01 mpeg2:confused:tartTimeshifting() start mediactl
26.10.2004 17:42:02 mpeg2:confused:tartTimeshifting() started mediactl
26.10.2004 17:42:02 Card:1 start recording content:True
26.10.2004 17:42:02 Card:1 recording to file:C:\Dokumente und Einstellungen\htpc\Eigene Dateien\Aufnahmen\Kabel 1_Star Trek - Das nächste Jahrhundert_200410261745p422.dvr-ms
26.10.2004 17:42:02 SinkGraph:confused:tartRecording(C:\Dokumente und Einstellungen\htpc\Eigene Dateien\Aufnahmen\Kabel 1_Star Trek - Das nächste Jahrhundert_200410261745p422.dvr-ms True)
26.10.2004 17:42:02 mpeg2: Record : C:\Dokumente und Einstellungen\htpc\Eigene Dateien\Aufnahmen\Kabel 1_Star Trek - Das nächste Jahrhundert_200410261745p422.dvr-ms True True
26.10.2004 17:42:02 mpeg2: recording started from 00:00:00 ago
26.10.2004 17:59:03 app.Reset()

As I said before, it works fine with hibernation, then the log is actually true ;-)

let me finish this post with the never enough said: Thank you, fred!

J.
 

Rybber

Portal Pro
October 26, 2004
166
0
Denmark
Fred, thanks for the plugin, it works great except for one thing:

When it wakes from suspend it seems to do it alright and records ok, but there is no output to the video card at all.

I have tried the various BIOS settings, and normal suspend through XP works fine (even inside Media Portal)

Any ideas?

Rybber
 

mama

Portal Pro
May 31, 2004
334
0
Germany
Ehm, I´m an idiot...

Due to johnbobjamesson´s tip I wanted to see, if or how the hibernate.lnk is shown in CMD. And what was shown? "hibernate.lnk.lnk".

Now it works without problems... :oops:

johnbobjamesson: Did you already try to let the HTPC off, even if there´s nothing shown while it is recording? It´s curious, but maybe it´s recording right.

26.10.2004 17:42:02 mpeg2: recording started from 00:00:00 ago
26.10.2004 17:59:03 app.Reset()

This could point to a complete reset of the recording and a fresh beginning. As the log says, it seems to record. Try it with a short show.
 

johnbobjamesson

Portal Pro
June 17, 2004
91
0
Crailsheim
mama said:
Ehm, I´m an idiot...
johnbobjamesson: Did you already try to let the HTPC off, even if there´s nothing shown while it is recording? It´s curious, but maybe it´s recording right.

26.10.2004 17:42:02 mpeg2: recording started from 00:00:00 ago
26.10.2004 17:59:03 app.Reset()

This could point to a complete reset of the recording and a fresh beginning. As the log says, it seems to record. Try it with a short show.

I thought about doing that, too, but: The app.Reset is shown everytime I restart my computer from whatever suspend state, even if not recording. And if it recorded right, why did the file contain video only AFTER the point I restarted the system manually? And - the system had no power. Definetely, no hard drive running, no usb tv box running, nothing. My RAM is only 256 MB, it couldn't hold 20 minutes of MPEG recording with 5mbit average ;-)

I can try it again and leave it running, but it sure doesn't record.

J.
 

Users who are viewing this thread


Write your reply...
Top Bottom