NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 283 284 285 286 287 … 433 Next »
System went to sleep and NPVR was busy

System went to sleep and NPVR was busy
Jakesty
Offline

Member

USA
Posts: 145
Threads: 33
Joined: Apr 2012
#1
2012-05-24, 04:00 AM
My computer decided to enter sleep mode at 7:32 tonight while a recording was finishing. With padding it would end at 7:32 and perform post processing which it wasn't able to complete. The following 4 recordings afterwards never woke the system up to record and were missed. The last one started to record once I remotely woke it via LogMeIn.

My windows system event log just says system idle.

This problem has probably always existed on my system as I have not changed anything, but now have a better handle on what it should be recording now.

Is there a bios setting of some type or windows?

thx, Jake

Win 7 64bit
Hypervisor Host, Linux Ubuntu VM, recording to QNAP NAS, NXTPVR 7.0.1.241229 

**I've donated, have you?** 2022, 2019, 2016
Jakesty
Offline

Member

USA
Posts: 145
Threads: 33
Joined: Apr 2012
#2
2012-05-25, 07:34 AM
Any ideas about what I should look at or change? Is NPVR not telling the system somehow that it is busy and it just shuts down when it feels like it?
Hypervisor Host, Linux Ubuntu VM, recording to QNAP NAS, NXTPVR 7.0.1.241229 

**I've donated, have you?** 2022, 2019, 2016
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#3
2012-05-25, 10:31 AM
You may be able to narrow down the problem ...

Windows Task Scheduler allows you to create a task and set "Wake the computer to run this task" on the Conditions tab.

Good Luck
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#4
2012-05-25, 08:38 PM
d/l MCE standby tool [MST] and it'll give you realtime feedback of what is happening with sleep modes..
you can see the sleep timers and see what's preventing sleep or what's not but should be..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
jw100
Offline

Junior Member

Posts: 44
Threads: 10
Joined: Mar 2010
#5
2012-05-28, 04:17 PM
I have a similar problem, reproducible for direct recordings (current shows selected from EPG). The system enters sleep mode after 10 minutes, as if the system was idle. Scheduled recordings wake the PC and put it to standby, as normal.

I tried running MST. The "Windows Idle" tab shows "One or more program(s) require the system" set to "Yes". "Time remaining until suspend" counts down from 0:10:00 to 0:09:00 in 15-second decrements then resets to 0:10:00 - this sequence repeats, but the timer never drops below 9 minutes. Nevertheless, the system went into standby before the end of the program, roughly 10 minutes after the start of recording.

Any ideas?

From NRECORD.log
Quote:2012-05-28 16:46:53.077 [DEBUG][7] Started recording (921:10:D:\Recorded TV\Help! My Supply Teacher Is Magic\Help! My Supply Teacher Is Magic_20120528_16301700.ts)
2012-05-28 16:46:53.195 [DEBUG][7] No C:\Users\Public\NPVR\Scripts\ParallelProcessing.bat
2012-05-28 16:58:26.702 [DEBUG][4] Resuming...
2012-05-28 16:58:28.092 [DEBUG][4] Resuming...
2012-05-28 16:58:28.554 [DEBUG][5] cycling MVP servers
2012-05-28 16:58:28.644 [DEBUG][5] Starting MVP server 0
2012-05-28 16:58:30.272 [DEBUG][7] Recording service noted the system was resuming...

From NPVR.log
Quote:2012-05-28 16:46:48.980 [DEBUG][1] ActivatePopup: null
2012-05-28 16:46:48.980 [DEBUG][1] deactivating old popup: ShowDetailsPopup
2012-05-28 16:46:48.980 [DEBUG][1] Going to dispose popup at end of animation
2012-05-28 16:46:49.238 [DEBUG][1] Calling dispose on old popup(2): ShowDetailsPopup
2012-05-28 16:46:49.238 [DEBUG][1] ShowDetailsPopup.Dispose()
2012-05-28 16:46:49.239 [DEBUG][1] UiStatic.Dispose()
2012-05-28 16:56:47.392 [DEBUG][1] ActivatePopup: FixedImage
2012-05-28 16:56:47.511 [DEBUG][1] No C:\Users\Public\NPVR\Scripts\ScreenSaverStart.bat file found
2012-05-28 16:57:50.685 [DEBUG][1] ActivatePopup: null
2012-05-28 16:57:50.685 [DEBUG][1] No C:\Users\Public\NPVR\Scripts\ScreenSaverStop.bat file found
2012-05-28 16:57:50.686 [DEBUG][1] deactivating old popup: FixedImage
2012-05-28 16:57:50.686 [DEBUG][1] Going to dispose popup at end of animation
2012-05-28 16:57:50.688 [DEBUG][1] Calling dispose on old popup(2): FixedImage
2012-05-28 16:57:50.875 [DEBUG][1] System is going into standby/hibernate
2012-05-28 16:58:21.271 [DEBUG][1] Waking from standby/hibernate
NPVR 2.5.5 - Windows 7 64-bit - Acer Revo R3610 - IA330 dual-core 1.6GHz - 3GB - Aim RC118 remote
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,707
Threads: 767
Joined: Nov 2003
#6
2012-05-28, 05:27 PM
I'm pretty sure this will be case of power manage issues with machine or windows rather than a bug with the app, but I've added a setting in the next release that will force it to log each time it tells the Windows the machine is 'still in use'. With this you'll at least be able to check that NextPVR is doing what it's supposed to, and how regularly it's happening etc.
jw100
Offline

Junior Member

Posts: 44
Threads: 10
Joined: Mar 2010
#7
2012-05-28, 11:00 PM
I can't see any setting in Power Management other than the Multimedia one that prevents idling while streaming. Is that what the scheduled recording service does? Does "instant record" of current programs use a different process?

One source suggests that, since Vista, an application can't stop Windows from suspending the system on idle. If so, how does the recording service prevent idle during scheduled tasks? Is it only scheduled tasks that can suspend the system on completion?

I suspect it might be necessary to make the Sleep setting "never" and just use scheduled tasks to shut down the PC. I hope that isn't the case.
NPVR 2.5.5 - Windows 7 64-bit - Acer Revo R3610 - IA330 dual-core 1.6GHz - 3GB - Aim RC118 remote
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,707
Threads: 767
Joined: Nov 2003
#8
2012-05-29, 12:00 AM
Basically, NextPVR (and GBPVR befrore it) while recording calls the "SetThreadExecutionState(ES_SYSTEM_REQUIRED)" Windows API every minute to tell Window's the machine it shouldn't go to sleep. Windows is supposed to care of the rest.

It's a pretty basic one-line bit of code, so not much wriggle room to do anything differently.
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#9
2012-05-29, 02:00 AM
It seems pretty clear that NRecord is doing it's job, setting the ES_SYSTEM_REQUIRED state every minute, and Windows is simply ignoring it's own rules:
Quote:I tried running MST. The "Windows Idle" tab shows "One or more program(s) require the system" set to "Yes". "Time remaining until suspend" counts down from 0:10:00 to 0:09:00 in 15-second decrements then resets to 0:10:00 - this sequence repeats, but the timer never drops below 9 minutes. Nevertheless, the system went into standby before the end of the program, roughly 10 minutes after the start of recording.

I see that the recording service knows that the system is going to sleep:
Code:
2012-05-28 16:57:50.875 [DEBUG][1] System is going into standby/hibernate
is there any call you could make to abort this if it happens when NRecord knows that sleep shouldn't be allowed?
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
jw100
Offline

Junior Member

Posts: 44
Threads: 10
Joined: Mar 2010
#10
2012-05-29, 11:00 AM (This post was last modified: 2012-05-30, 01:28 PM by jw100.)
Just found another source that says if an application or service wakes the machine, then it returns to sleep mode afterwards, irrespective of power management settings. If a user wakes the machine (e.g. for manual recording), then the sleep timer applies.

sleep-after-wake-up.html

Edit: I set the sleep timer to "Never". A manual recording completed OK, and the PC remained on afterwards. A scheduled recording woke the PC at the required time and put it to sleep again afterwards, confirming the above source. It seems that Windows 7 ignores the API call, possibly in both instances, and is following its own "sleep-after-scheduled-wake" rule.

One answer might be to change the sleep timer. This could be done within Parallelprocessing.bat and Postprocessing.bat, possibly using powercfg to change the setting.
Code:
POWERCFG -X -standby-timeout-ac <minutes>
<minutes> would be "0" (never) for the first file, and the default "10" for the second. I haven't used batch files yet, but does this seem feasible? Could successive or overlapping recordings cause a problem? E.g. if the sleep timer is set to 10 minutes while another recording is still in progress, could that cause an early exit?

Edit 2: The batch commands seemed to work OK. A manual recording finished and the system went to sleep. MST showed the sleep timer disabled, then reset at the end. The system also went to sleep after completing consecutive direct and scheduled recordings. This seems to be a satisfactory workaround.

Can anyone else confirm that Windows 7 ignores this API call and it's not just my system?
NPVR 2.5.5 - Windows 7 64-bit - Acer Revo R3610 - IA330 dual-core 1.6GHz - 3GB - Aim RC118 remote
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  npvr is not responding johndutcher 3 1,490 2022-05-05, 07:57 PM
Last Post: sub
  NPVR 4.2.4 Video Library No Longer Shows folder.jpg Lao Pan 12 3,862 2022-04-14, 04:33 AM
Last Post: Antmannz
  nPVR Continually Wakes PC bfos 23 11,154 2022-02-17, 03:48 PM
Last Post: sub
  Can't find tuner filter in NPVR 4.05 on old XP machine (eee 701) with RTL2832U iamanotheruser 3 1,682 2022-01-03, 04:45 AM
Last Post: mvallevand
  PC not going to sleep after recording LeoL 7 3,255 2021-04-01, 07:17 PM
Last Post: Handy.Man
  Wake - Sleep Interaction -> Failed Recordings mikeh49 48 14,390 2021-03-21, 11:21 PM
Last Post: careads
  Streaming Services with NPVR tesla1886 4 2,681 2021-01-04, 02:58 AM
Last Post: tesla1886
  NPVR choosing incorrect xml guide display-name after reboot drlava 7 3,045 2020-12-27, 02:27 AM
Last Post: sub
  Can NPVR offset only 3 channel listings in EPG? acemib 20 6,967 2020-04-27, 01:28 PM
Last Post: mvallevand
  Import recorded tv shows to NPVR mattman1968 9 5,958 2020-03-03, 12:57 PM
Last Post: Jimixter

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

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

Linear Mode
Threaded Mode