![]()  | 
	
		
			
  | 
	|||||||
| SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI. | 
![]()  | 
	
	
| 
		 | 
	Thread Tools | Search this Thread | Display Modes | 
| 
		 
			 
			#1  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
			
			In an attempt to improve WAF, I want to improve hd-pvr stability...I have been pretty lucky so far, but every 4-5 days maybe 1 of my hd-pvrs becomes unavailable and has to be power cycled...I just RMAed it thinking my problems would be solved but the one I thought was good just did it! 
		
		
		
		
		
		
		
		
	
	Anyway on to the topic...reading through posts I saw somebody mention that its not necessary to power cycle the hd-pvr, but that this process works: stop sagetv service > disable hd-pvr in device manager > enable hd-pvr > restart sagetv service. Unfortunately I didnt see it until after I had already just powercycled my hd-pvr, have other people had success with this process? If so I was going to whip up a program to do that in sequence for my hd-pvrs, but I am not sure the best way to determine the optimal time to run this (hopefully 1x a day in a certain range). I was thinking about using SJQ to do this somehow but im not sure... Basically I am trying to figure out the best way to determine when the sagetv service is totally idle: no recordings in the next x minutes, SJQ isnt processing anything (comskip), no clients connected, etc...Is this information easy to get through some of the APIs? Is there a crazy SJQ rule I could create? thanks!  | 
| 
		 
			 
			#2  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			This functionality is not yet available in SJQ but slugger has started working on it and something similar to what you want to do should be available with SJQ 3.0.
		 
		
		
		
		
		
		
		
		
	
	 | 
| 
		 
			 
			#3  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			Have a look at my solution on the SageAlert thread if you want. 
		
		
		
		
		
		
		
		
	
	I have a web controlled power controller which can be reset via the web or using command line. SageAlert detects HDPVR lock-ups, activates Growler which then triggers a .bat file that resets the power on the HDPVR. Sounds complicated but it isn't as bad as it sounds. It works very well now. I only get about 1 lockup a week, but now they don't affect recrodings much. Eric  | 
| 
		 
			 
			#4  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 Quote: 
	
  | 
| 
		 
			 
			#5  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			I went through this as well and given my lack of programming skills I did it the low tech way. I bought a power outlet timer and plugged the HD-PVR into it and programmed it to power cycle the HD-PVR every day at 4AM (i.e., when I wasn't doing any recording). Then used Windows task scheduler to reboot the computer about 5 minutes after the HD-PVR had rebooted. 
		
		
		
		
		
		
		
		
	
	Low tech, but great results so far.  | 
| 
		 
			 
			#6  
			
			
			
			
			
		 
		
	 | 
||||
		
		
  | 
||||
| 
		
	
		
		
		
		 Quote: 
	
 I've been thinking about power cycling with a timer and/or installing a cooling fan in the HD-PVR. I also may try the more complex method to determine when error messages occur and have them trigger a power cycle of the HD-PVR and/or reset the SageTV service. The most complicated part would be determining with a command line when the error messages occurs or when nothing is being recorded. The power reset itself would be easy with a parallel printer port card. I have code that can turn on and off data lines on the parallel port. Those data lines could trigger a solid state relay to power cycle the HD-PVR. Dave  | 
| 
		 
			 
			#7  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 Quote: 
	
 In testing the scripts I noticed that if you have two HD-PVR's, Sage is smart enough to start recording on the second HD-PVR as soon as the first one stops recording. So a daily recycle.bat run by the system scheduler may yield someone most of what the automatic recycle scripts do, without the cost of a IP power switch. Last edited by jerryt; 03-16-2010 at 12:26 PM.  | 
| 
		 
			 
			#8  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			From what I could see all of those scripts required a programmable power strip. I took the lower tech approach (mentioned by someone on the boards, forgot who, sorry) and plugged my HDPVR into the STB on the switched outlet. So if I get a recording error, I power cycle the STB. I have the STB power cycle scripted, but I haven't hooked it into sagealerts or anything like that.
		 
		
		
		
		
		
		
		
		
	
	 | 
| 
		 
			 
			#9  
			
			
			
			
			
		 
		
	 | 
||||
		
		
  | 
||||
| 
		
	
		
		
		
		 Quote: 
	
 What is "SageAlert"? Is this part of the Sage Job Queue? I think the best way might be to detect when the failure occurs, then power cycle, with an automatic device. I need some more details on how you did it. I think I will also install a cooling fan in the HD-PVR, which might prevent the HD-PVR lockups from occuring. Dave  | 
| 
		 
			 
			#10  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 Quote: 
	
  | 
![]()  | 
	
	
| Tags | 
| api, hd-pvr | 
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
		
  | 
	
		
  | 
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| good time to defrag ? | DoPeFiSh | SageTV Software | 5 | 09-30-2010 05:40 AM | 
| HD200 Auto-Connect Time | simonen | SageTV HD Theater - Media Player | 8 | 03-21-2009 09:05 PM | 
| Scheduled Windows Restart / Reboot (Shutdown -r) and Sage doesn't restart | dealsdyker | SageTV Software | 8 | 03-09-2007 04:24 PM | 
| Auto-Standby at certain time | CB_2005 | SageTV Software | 3 | 07-23-2006 03:19 PM | 
| CPU usage triggered auto shutdown/restart/suspend/hibernate/loggoff | mdmint | SageTV Customizations | 1 | 01-22-2005 09:12 AM |