|
SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.) |
|
Thread Tools | Search this Thread | Display Modes |
#61
|
||||
|
||||
SageWake 1.2.1
EDIT: See below for latest version. Last edited by mwhitlock; 03-22-2004 at 07:50 PM. |
#62
|
||||
|
||||
Quote:
When you specify the --restart option, SageWake will find and quit all instances of SageTV and SageRecorder, regardless of what programs you have listed in your restart list. It first attempts to shut down these instances gracefully by sending them WM_QUIT messages, but if they are hung or fail to respond, it will terminate them forcefully with TerminateProcess. After all instances of SageTV and SageRecorder have terminated, SageWake will then start executing programs in your restart list. It does call CreateProcess on these paths in the order you've listed them, but note that it does not wait after creating the first listed process before moving on to the second. So effectively, they all get started at roughly the same time. If you have a second batch file that you need to start only the first one is finished, you'll have to implement some kind of delay in the second batch file yourself. If you start your instances of SageTV and SageRecorder from the batch file, you don't need to specify them in your restart list to SageWake. EDIT: Also note that you NEED an equals sign between --restart and your list of paths enclosed in quotes!! Last edited by mwhitlock; 03-21-2004 at 09:42 PM. |
#63
|
|||
|
|||
cool...thanks!! This might help me find develop a power management routine for sage......
Here is what I'm doing: I've created a ram disk of 32MB, Z:. SageStart.bat -- copies all the Sage program files to the ram disk and launches SageTv from the ram disk and waits till Sage is exited, once it is exited the files that have changed one the ramdisk are copied back to the hard disk. SageWake is run on startup with the parametes --leadtime=60 --restart="F:\SageStart.bat" If in the event that sagewake does not exit sageTv in a way that the batch file can clean up itself. (the way it is designed to) I'll just add a cleanup batch file to 'SageWake--leadtime=60 --restart="F:\CleanUpSage.bat,F:\SageStart.bat"'. I will also have a program running in the background that I will write that every few hours will copy the differences from the ramdisk to the local hard drive, only if sage isn't sleeping. The easiest way to do this is to check to see if there are changes in the video folder. Because I'm not using the network for sage...my system will be able to standby and resume from standby to record thanks to sagewake (mwhitlock) and the ramdisk (nielm)
__________________
ECS K7VTA3 + AthlonXP2400XP+ = $70 250 GB 7200 RPM HD = $160 512 MB Kingston DDR 333 = $80 Hauppage 350 Bundle = $220 SageTv = PriceLess Last edited by Alex0230; 03-21-2004 at 10:19 PM. |
#64
|
||||
|
||||
Quote:
If you looked earlier the reason I need to restart SageTV and all the SageRecorder instances it has to do with Actisys IR Blaster and USB Uirt not working after either S3 Suspend or S4 Hibernate. Also my system has two fans in the power supply and two case fans that will not go off in suspend. This computer is in my bed room/Office while I am remodeling my master bede room so I like being able sleep without all the noise. So it does not matter to me how fast these things start again, I only want them to happen once in a while and not every couple minutes because the Client was left alone for a few minutes. So Hibernate needs to happen after 30 minutes of no activity. On a more positive note I found a solution to my problem. I found a program called RS Somnifero http://www.ricosoftware.net/en/index.htm. This program lets you specify an action to take if the CPU is not above a certain percentage for a period of time. On my system setting it to 10% and whatever timeout lets my system hibernate. I will probably set this to about 20 minutes. It fails to hibernate if something is recording thanks to the latest update to SageWake Thanks again, John
__________________
SageTV 6.6, 100Mb LAN Living Room: WinXP Pro SP2, AMD XP3200+, 1GB, 1.3TB 3ware 9500S12 RAID5, GigaByte GA7N400Pro2, 2xVBOX USB2 HD Tuner<-Antennna, 1xHDHR<-Antennna , HD100 to HDMI Splitter 1080i->32" 4:3 HDTV or 1080i->92" 1080P LCD Projector Kitchen: WinXP Home SP2, Celeron 2.0Ghz, 512MB, 40GB, Saphire ATI MB, ATI9200->19"LCD 2 BedRooms: MediaMVP |
#65
|
||||
|
||||
John, you should check your BIOS configuration. If you have an option to enable suspend-to-RAM, you should turn it on. If you don't have that option, then see if you can choose "S3" as your standby power state; it's the same as suspend-to-RAM. Then when your system goes into standby, your motherboard will put your power supply in standby as well and your noisy fans will stop. Most power supplies provide a maximum of 2 Amps of current at 5 Volts in standby, meaning your system would be drawing 10 Watts of power at max while suspended in S3.
Just to be sure, you aren't complaining about the new SageWake, right? You like the fact that SageWake prevents RS Somnifero from putting the system into hibernation while Sage is recording, correct? |
#66
|
|||
|
|||
Jpatz, if your fans are on, you are using s1, which is just a low power state, not s3. With S3, it looks as if your system is completely off. Depending on how you configure it in cmos any key or certin keys will retun it in approx 5 sec. If you are doing anything on the system it should not go into standby to begin with.
FYI, early on I had an issue with the nvidia drivers that would produce a black screen in sage after it returned from standby. I used girder to close sage when it detected the pc was entering standby and restart it when it returned. The drivers have since elimintated my need for this. Is this what you are doing? Last edited by falchulk; 03-22-2004 at 07:26 AM. |
#67
|
|||
|
|||
I know its been stated by mwhitlock that he has not tested Sagewake with the current release of SageTV 1.4.1. Does anyone have it working with current release. Thanks
|
#68
|
||||
|
||||
Quote:
RS Somnifero will only hibernate/suspend if I am not recording, which is desired. As far as S3 in Bios. I setup S3 in the BIOS and it does indeed turn off most fans in the system, but not all of them. The big problem with S3 I was having last night was that the only way I was able to wake was by hitting the power on my PC. The keyboard and mouse did not wake the system. It was getting late when I was playing with it so I may have done something wrong. Also it did not seem to wake up all the hard drives right away even though I had hard Drive Power Down Set to Never. If I can get the S3 Suspend to wake using the keyboard and figure out why all the drives don't come online right away I will probably use it since it does actually turn off all but 1 fan which is good enough and with RS Somnifero I can have the system suspend when I want it to. I did have to set the CPU threshold to 25% as occasionally the 5 minute timer in SageTV that scans the directories goes over 10%. I did manager to create a batch file on my SageTV Client PC that I linked to a remote button for starting SageTVClient. It pings the SageTV System to wake it from Hibernate/Suspend then does a ping on the local host for about a minute and half to let the SageTV System come online and Sagewake Restarts all the Sage Instances and then kills RS Somnifero and relaunches it as unfortunately once it hibernates/suspends it does not restart its timers. I have a couple ideas of how to work around this issue, but we will see. Thanks for all your ideas and help, John
__________________
SageTV 6.6, 100Mb LAN Living Room: WinXP Pro SP2, AMD XP3200+, 1GB, 1.3TB 3ware 9500S12 RAID5, GigaByte GA7N400Pro2, 2xVBOX USB2 HD Tuner<-Antennna, 1xHDHR<-Antennna , HD100 to HDMI Splitter 1080i->32" 4:3 HDTV or 1080i->92" 1080P LCD Projector Kitchen: WinXP Home SP2, Celeron 2.0Ghz, 512MB, 40GB, Saphire ATI MB, ATI9200->19"LCD 2 BedRooms: MediaMVP |
#69
|
||||
|
||||
Quote:
__________________
SageTV 6.6, 100Mb LAN Living Room: WinXP Pro SP2, AMD XP3200+, 1GB, 1.3TB 3ware 9500S12 RAID5, GigaByte GA7N400Pro2, 2xVBOX USB2 HD Tuner<-Antennna, 1xHDHR<-Antennna , HD100 to HDMI Splitter 1080i->32" 4:3 HDTV or 1080i->92" 1080P LCD Projector Kitchen: WinXP Home SP2, Celeron 2.0Ghz, 512MB, 40GB, Saphire ATI MB, ATI9200->19"LCD 2 BedRooms: MediaMVP |
#70
|
||||
|
||||
Quote:
Actually mwhitlock added the Close of all SageTV and SageRecorder instances and relaunches them. This is a great feature and has made power management possible. I guess if I was motivated I could have modified JMans program to do this or girder, but previously my SageTV box was in my office where I did not sleep so I didn't really care enough to do the work. Now that I sleep 15 feet from my computer making it quiet is more of a priority. I have seven 7200 RPM drives so very loud. Thanks for the ideas...I will play with S3 more tonight and hopefully figure it out. John
__________________
SageTV 6.6, 100Mb LAN Living Room: WinXP Pro SP2, AMD XP3200+, 1GB, 1.3TB 3ware 9500S12 RAID5, GigaByte GA7N400Pro2, 2xVBOX USB2 HD Tuner<-Antennna, 1xHDHR<-Antennna , HD100 to HDMI Splitter 1080i->32" 4:3 HDTV or 1080i->92" 1080P LCD Projector Kitchen: WinXP Home SP2, Celeron 2.0Ghz, 512MB, 40GB, Saphire ATI MB, ATI9200->19"LCD 2 BedRooms: MediaMVP |
#71
|
||||
|
||||
Note that with most motherboards, enabling the keyboard to wake the system from S3 requires two modifications. You have to enable it in the BIOS and you also have to change a jumper on the motherboard. RTFM for more info. ;-)
|
#72
|
||||
|
||||
Wow, it makes a lot more sense to shut down SageTV and SageRecorder instances during preparation for standby and start them back up upon resume. Why didn't I think of that?!
|
#73
|
|||
|
|||
mwhitlock, if that comment was diected at me, I had not read all of your notes in these thrads. I apologize. I assure you though, this is not an oriiginal idea. I and others have been doing this fo some months. If you would like to verify it,just search.
|
#74
|
||||
|
||||
SageWake 1.2.2
There are now two separate options controlling termination and execution of processes on suspend and resume. You can now specify which window classes you want to send quit messages to during suspend preparation. Additionally, you can have processes start upon system resume without necessarily having any processes terminate upon suspend. In short, the list of processes to kill and the list of processes to start are now independent. Typical example: SageWake --terminate="SageApp,RecorderApp" --execute="C:\SageTV\SageTV.exe,C:\SageRecorder\SageRecorder.exe" This would mimic the behavior of previous versions of SageWake by terminating instances of SageTV and SageRecorder when the system goes into suspend and starting them back up when the system resumes. The slight difference is that now the termination occurs just before the system suspends rather than just after it resumes. You aren't limited to just SageApp and RecorderApp for your window classes to terminate. Any program that creates a window with a unique window class can be terminated by SageWake. This should be good news for jptaz who needs to restart RS Somnifero with every suspend/resume cycle. EDIT: See below for latest version. Last edited by mwhitlock; 03-22-2004 at 09:24 PM. |
#75
|
|||
|
|||
Perhaps I missed something along the way, so I would appreciate any help. It is my understanding that Sagewake purpose is to wake up SageTV when the computer is in standby mode to allow schedule recording to take place. When it does this it restarts SageTV so that devises like my usb-uirt will be initialized by Sage and continue to work with SageTV. The problem I am having is that my PC will not go into standby automatically. Prior to the latest version of Sagewake When I put the Pc in standby manually it would not automatically come out of standby, however if I manually woke it up then Sagewake would restart SageTV and so forth. I tested several condition under which the PC would go and not go into standby/ The results in my case were:
1. with outlook and VPN running PC would NOT go into Standby 2. SageTV running (without Sagewake) the PC would NOT go into standby 3. with Sagewake 1.2.1 running (without SageTV) the PC would NOT go into standby 4. with SageTV in sleep mode (and Sagewake not running) the PC WILL go into standby. 5. with SageTV running with Sagewake PC will NOT go into Standby. So it seems to me that item 2 say's that Sagewake is keeping the PC from going into standby in which case it will never get to do it thing. Again tell me where I am going wrong. I would like very much to get the pc to enter standby and have Sagewake do its thing..
__________________
HTPC(self built dedicated )/SageTV 7.1.8 Beta /SG01 Silverstone Case/ Intel Dual Core Q6600/ Gigabyte GA-73PVM-S2H mATX MOBO 2GB RAM /WD 300GB SATA Drive/HD-PVR, Sage HD-300, HDHomerun, Nvidia 8600GTS Graphics Card/Windows 7 SP1/USB-UIRT-controlling one SA4250HD STB's/Harmony 700 Remote. _________________________ Isn't it nice when things just work? |
#76
|
||||
|
||||
The only time SageWake actively prevents the system from entering standby is while SageTV is recording something.
Are you using Intelligent Recording in SageTV? If not, you definitely need to specify --noir on SageWake's command line. Without this, SageWake may be preventing the system from sleeping because there is an Intelligent Recording scheduled at the present time. Even if Intelligent Recording is turned off in SageTV, the schedule file will still contain Intelligent Recordings and SageWake will see them. If you specify --noir, SageWake will ignore Intelligent Recordings in the schedule file. |
#77
|
||||
|
||||
SageWake 1.2.2.1
EDIT: See below for latest version. Last edited by mwhitlock; 03-28-2004 at 01:34 AM. |
#78
|
|||
|
|||
mwhitlock
Well the command line option "noir" did the trick, it completed a complete cycle. System went into automatic standby came out of standby two minutes prior to recording (as instructed) restarted SageTV and recorded the show, then went back into standby. Thanks for your help with this issue. Also thank you for this program it enhances the usability of SageTV.
__________________
HTPC(self built dedicated )/SageTV 7.1.8 Beta /SG01 Silverstone Case/ Intel Dual Core Q6600/ Gigabyte GA-73PVM-S2H mATX MOBO 2GB RAM /WD 300GB SATA Drive/HD-PVR, Sage HD-300, HDHomerun, Nvidia 8600GTS Graphics Card/Windows 7 SP1/USB-UIRT-controlling one SA4250HD STB's/Harmony 700 Remote. _________________________ Isn't it nice when things just work? |
#79
|
|||
|
|||
Quote:
Maybe a batch file is a batch example..... What if I had foo.exe though, that created a window with the form caption "Test Window". What would be my window class in this instance. I'm just not seeing where you get SageApp from SageTv.exe, that's all.... Thanks.... Alex Also: Say I'm using a batch file that waits for sage to finish running then after sage exits it cleans up some files. When sageWake --terminates SageTV, will there be enough time for my batch file to cleanup before standby/hibernate. It needs about 5-10 seconds to clean up or do you think this will disrupt the sleeping process. Quote:
__________________
ECS K7VTA3 + AthlonXP2400XP+ = $70 250 GB 7200 RPM HD = $160 512 MB Kingston DDR 333 = $80 Hauppage 350 Bundle = $220 SageTv = PriceLess Last edited by Alex0230; 03-23-2004 at 09:27 AM. |
#80
|
||||
|
||||
Quote:
Finding class names requires a tool to find out what they. In MS Visual Studio 6 a tool called Spy++ is used to find this information. Command line programs are not easy to close as it would close all command windows you had open. I don't believe this tool is public so it may be difficult for non programmers to obtain.
__________________
SageTV 6.6, 100Mb LAN Living Room: WinXP Pro SP2, AMD XP3200+, 1GB, 1.3TB 3ware 9500S12 RAID5, GigaByte GA7N400Pro2, 2xVBOX USB2 HD Tuner<-Antennna, 1xHDHR<-Antennna , HD100 to HDMI Splitter 1080i->32" 4:3 HDTV or 1080i->92" 1080P LCD Projector Kitchen: WinXP Home SP2, Celeron 2.0Ghz, 512MB, 40GB, Saphire ATI MB, ATI9200->19"LCD 2 BedRooms: MediaMVP |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|