NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 8 9 10 11 12 … 56 Next »
Auto restart recording service utility

 
  • 0 Vote(s) - 0 Average
Auto restart recording service utility
frankmcg
Offline

Senior Member

Posts: 312
Threads: 23
Joined: Sep 2006
#31
2007-11-14, 08:29 AM
Have been trying this out for the last few days now and it seems to be restarting the remote pretty reliably which is good! However, one consequence I've noticed is that having the app running in the background seems to be stopping my box from going into hibernate mode after x minutes of inactivity as I've set it up to do. Looking at filemon it's accessing the hd every 30secs or so and this seems to be enough for XP to think the computer should not go into hibernate.

Have you noticed this behaviour before? Any way around it other than killing the frequent ir/gb-pvr detect part of the app such that this is just used as a coming out of hibernate tool?
gEd
Offline

Posting Freak

London
Posts: 3,518
Threads: 100
Joined: Jan 2005
#32
2007-11-14, 12:24 PM
not sure. I use the hibernator from the green button website which works well for me.

I would use the resume section of code only. this is when ir.exe really needs restarting anyway.
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
frankmcg
Offline

Senior Member

Posts: 312
Threads: 23
Joined: Sep 2006
#33
2007-11-15, 09:26 AM
Tried out hibernator last night but it seems to only function if you close down GB-PVR after you've finished using it? Otherwise the "screensaver" doesn't kick in it seems. Has that been your experience and are you just closing the app once you're done?
K.S.
Offline

Senior Member

Posts: 526
Threads: 12
Joined: Oct 2006
#34
2007-11-20, 10:49 AM
gEd, you may want to add the following call to the standby func, it fixes the black screen after automatic resume symptom (works like a charm, allready tested). thanks to Nomad101 for digging that way up Wink

Code:
DllCall ("kernel32.dll","long","SetThreadExecutionState","long",0x00000002)
sub Wrote:Yep, what he said.

curiosity killed the cat Big Grin
gEd
Offline

Posting Freak

London
Posts: 3,518
Threads: 100
Joined: Jan 2005
#35
2007-11-20, 03:58 PM
yep - I saw that thread and added it to my version last night to test it out. The blank screen has been bugging me for ages. I haven;t done much testing but if you believe that it fixes the problem, I will add it to the script.

That's another problem knocked on the head then!
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
Carlito
Offline

Posting Freak

Posts: 817
Threads: 41
Joined: May 2006
#36
2007-11-20, 08:14 PM (This post was last modified: 2007-11-20, 08:15 PM by Carlito.)
edit:
been a long day... sorry for this useless post...
----------------------
[SIZE="1"]PVRX2 1.3.11
Shuttle SG33G5 Case
Core2Duo E8400 3Ghz -- 4 GB RAM
Hauppauge PVR-150
Adaptec AVC-3610 Dual Tuner
Onboard Intel GMA 3100 through HDMI -- 500GB
37" Westinghouse LCD (1920 x 1080p)

Projects
Program Image Tool[/SIZE]
gEd
Offline

Posting Freak

London
Posts: 3,518
Threads: 100
Joined: Jan 2005
#37
2007-11-21, 12:32 AM
Uploaded new version of script.

from change log (god I sounds like a programmer):

2.5 Addedt call to SetThreadExecutionState. This fixes the black screen after automatic resume.
*** Thanks to Nomad101 for digging that one up.***
2.5.1 Added boolean variable to enable check_network function. Default = OFF
2.5.2 Added boolean variable to enable Check_IR function. Default = ON
2.5.3 Removed -fse from $GBPVR_launch for pvrx2.exe. I don;t think it is needed.
2.6 Added option to reboot PC if IR.exe will not stay running (i..e you see repeated Ir.exe restarts in the script log file)
This behavior is enabled by setting $Restart_PC_on_IR_Failure = 1. Default = OFF
Delay defined by $Delay_before_checking_IR_running.
Checks included abort if Ir.exe is missing and $Manage_IR_process = 1
WARNING: It does not check to see if recordings are in progress. The reason is: If we have just come out of standby and IR.exe will not run, then the tuner is not working
so recordings will fail anyway. The only risk here is if the tuner 'dies' whilst you are watching a recording and the PC reboots.
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
gEd
Offline

Posting Freak

London
Posts: 3,518
Threads: 100
Joined: Jan 2005
#38
2007-11-21, 12:44 AM
frankmcg Wrote:Tried out hibernator last night but it seems to only function if you close down GB-PVR after you've finished using it? Otherwise the "screensaver" doesn't kick in it seems. Has that been your experience and are you just closing the app once you're done?

Actually I am now not sure if Hibernator is putting my pc into standby or windows power management but one of them is doing the job for me.
I have Hibernator set as the screensaver but "screensaver" is disabled in Hibernator.

Windows is set to go into standby after 45mins of idle and I leave pvrx2 running all the time.
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
frankmcg
Offline

Senior Member

Posts: 312
Threads: 23
Joined: Sep 2006
#39
2007-11-21, 06:13 PM
Interesting. It seems to have started working for me now not long after I posted that, despite not changing anything. Isn't windows wonderful!

I also found that the check(ir) function wasn't always restarting the ir.exe after shutting it down in the standby function, so I've added it in twice ie calling check(ir), sleep 300, check(ir), sleep 300 again. Seems to be doing the trick currently.
gEd
Offline

Posting Freak

London
Posts: 3,518
Threads: 100
Joined: Jan 2005
#40
2007-11-21, 09:32 PM
I noticed that last night. I have added a loop to try and restart ir.exe x times before aborting and an option to display a message box (if not restarting pc) if it can't start it.

2.7 Try and restart IR.exe Loop $IR_retry_count times before aborting.
If $Display_msg_on_IR_fail = 1, will display a message box warning on failure to start IR.exe

Not tested with failing ir.exe yet so any feedback welcome
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (8): « Previous 1 2 3 4 5 6 … 8 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Auto loader for DirectVobSub (Blu-ray Forced subtitles) whurlston 63 29,683 2015-05-14, 08:41 AM
Last Post: Lao Pan
  NextPVR UI Web Service bgowland 2 2,848 2012-02-01, 07:12 PM
Last Post: pBS
  Windows Desktop/Sidebar Gadget with Recording Schedule cncb 0 1,844 2011-09-29, 12:49 PM
Last Post: cncb
  MpegImport utility added to wiki sixgun 66 23,242 2010-05-25, 01:48 PM
Last Post: carpeVideo
  Enhanced Web Admin (EWA) Build 81 BETA Web Service Release UncleJohnsBand 0 1,386 2009-05-22, 09:05 PM
Last Post: UncleJohnsBand
  Showname - Rename utility for GBPVR recordings Anthony 0 1,478 2009-03-05, 05:40 PM
Last Post: Anthony
  Utility to help with Channel Scanning timh 8 3,943 2009-02-09, 12:49 PM
Last Post: timh
  HVR 1300 Recording Quality Improvement garymeds 4 2,256 2008-07-02, 11:24 PM
Last Post: bunegg
  I-xmltv: TV Guide customization & Zap2It EPG utility. Jim_ 304 97,622 2007-09-18, 02:20 PM
Last Post: lrf2005
  File Renaming Utility: AddEpisode turkey 11 3,950 2007-04-30, 10:48 PM
Last Post: David

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode