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 … 237 238 239 240 241 … 433 Next »
Failed to be awake for recording - why?

Failed to be awake for recording - why?
jcjefferies
Offline

Posting Freak

UK, North Gloucestershire
Posts: 1,220
Threads: 140
Joined: Jan 2011
#11
2013-03-05, 12:02 PM
I have checked my Vista NextPVR server and it takes just 3 seconds to sleep so that is a very small window to miss a Wake! I thought it took longer than that but recently I have been ruthless stopping unnecessary Windows services so perhaps that helped.
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#12
2013-03-05, 05:41 PM
jcjefferies Wrote:I have checked my Vista NextPVR server and it takes just 3 seconds to sleep so that is a very small window to miss a Wake!

I don't think that's the issue though.

Let's say you had a recording set for 20:00. NPVR will set a wake-up event for 19:58, 2 minutes beforehand. I believe this is to give the PC time - for want of a better phrase - to get its shit together before the actual recording starts. Perhaps hard disks/NAS units need time to spin up, or dodgy PCI tuners need reset, etc. This 2 minute window is a good thing.

Now let's say you had a 5 minute sleep timeout on Windows, and you stopped using your PC at 19:54. That means it would go to sleep at 19.59 (in 3 seconds or otherwise). It would still be awake during the wake-up event (and nothing happens), but then goes to sleep before the recording starts. Recording therefore stuffed.

Iain
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#13
2013-03-05, 06:12 PM
yes, Iain has it. The scenario jcjeffries describes (wake request happening during sleep transition) is a much smaller part of the problem, though many PC's take a little longer to sleep than only 3 seconds. That's why I said a second wakeup request at recording time would solve 90% of the problem; it's probably more like 99%+ honestly.
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
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#14
2013-03-05, 06:26 PM
Maybe a simpler solution is for sub to poll Windows' do-not-sleep API fom 19:58 onwards, rather than only when the recording starts? A second wake-up at recording time is probably a good safety net too though, as goodness knows who wins if sleep time = wake up time (exactly).

Iain
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#15
2013-03-05, 07:50 PM
I suspect a second wakeup is one line of code, while adding logic to start hitting the do-not-sleep API 2 minutes early means bigger changes in more places.
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
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#16
2013-03-09, 09:27 AM
So, what's the conclusion? Is there a way to avoid "bad timing" incidents like this?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
jcjefferies
Offline

Posting Freak

UK, North Gloucestershire
Posts: 1,220
Threads: 140
Joined: Jan 2011
#17
2013-03-09, 02:38 PM
I think that last night as I shut down my client it asked me if I was sure because a recording was due to start soon. Perhaps it was because I shutdown via the System plugin but NextPVR was aware that a recording was due soon. Instead of sending a second wake another option would be for NextPVR to stop Windows sleeping if a recording is due to start in 10 minutes or less.

I am not aware of it happening to me for over 6 months but unless it is a very important recording you may not be aware that it is missing. I think I was first alerted to the problem when I found I only had the last 15 minutes of a 60 minute recording. The computer woke to start a later recording so also made a late start on the previous recording. Further investigation showed an earlier recording finished at 10 minutes to the hour and slept at 5 minutes to the hour, the same time it should have woken.

As programmes start and finish times are in increments of 5 minutes, by monitoring your computer Wake and Sleep times it may be possible by changing the padding slightly to reduce the small chance of it happening even more.
vintdiesel
Offline

Member

Posts: 114
Threads: 23
Joined: Jan 2012
#18
2013-03-10, 11:55 PM
Ohhh, I have had all sorts of issues with sleep, won't-sleep etc. (yes the PC), and I blame it on Windows, so I "manually" handle it otherwise recordings have got missed or chopped.

Typically I use win7 task scheduler to wake the PC every day at 5:50pm for the news at 6:00pm. I use to use a utility "Wake up on Standby" to do the same job but this now supercedes that. I think sub had later reliably got the PC to wakeup just before recording which helps if the first recording of the day is before the news, though that isn't often for me.

Next I don't let windows sleep my PC on inactivity, to that is set to "never" in my power settings.

What I do though is postprocess to transcode my evening recordings from midnight into the small hours. After the last transcode then I call for computer to sleep well before the next recording cycle.

I know it suits me who mostly records in a regular time (the evening) every day, but it's very reliable that I don't get a cut or missed recording. I do seem however to occassionally find the PC still awake after the last transcode for some reason, but it isn't a drama compared with the PC "sleeping in".
Win Server: ASRock P67 Pro3 B3, i5 2500K 4.0Ghz, 16GB, Nvidia GT430 HDMI, Win 10 Pro 64bit, Win-TV Quad HD, Win-TV Nova-T USB.
UnRaid NAS Server: Gigabyte i7 2600 3.4Ghz, 16GB, S3 Trio VGA PCI Video, DVB LibreElec for DVB-T tuner drivers, Hauppage Win-TV 2210 Dual DVB-T.
Win Client: Intel NUC i3 Broadwell, 4GB Ram, 128GB SSD, Win 10 Pro 64bit.
Linux Client: Raspberry Pi 3+, OSMC + Kodi
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,170
Threads: 958
Joined: May 2006
#19
2013-03-11, 12:00 AM
If NTray was fixed to work on a client, couldn't it be modified to react to block system sleep for the 5 minutes before a recording?

Martin
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#20
2013-03-11, 12:27 PM
I wonder if I could put this into the System plugin? Not to block the user if they try to shutdown, but just to inhibit the timed sleep if it occurs in those few minutes before the recording starts.

Iain
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (5): « Previous 1 2 3 4 5 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Recording movies / TV to XBMC directory stucture spinnaker 10 3,724 2024-06-03, 03:56 AM
Last Post: Rod Hutchinson
  Not recording errors vidwiz 4 1,092 2024-04-17, 05:39 PM
Last Post: mvallevand
  Add Series/Episode Info to Recording Metadata andrewj 2 1,156 2023-11-20, 03:42 PM
Last Post: sub
  Failed recordings won't delete Spid4567 3 2,575 2023-07-14, 10:13 PM
Last Post: ZeDoZ
  Recording to a network drive woes. 2leftfeet 12 7,410 2022-04-05, 08:03 PM
Last Post: mvallevand
  device needed for recording David209 2 1,780 2021-04-04, 08:47 AM
Last Post: David209
  PC not going to sleep after recording LeoL 7 3,432 2021-04-01, 07:17 PM
Last Post: Handy.Man
  HDHomerun recording bizzarely not working Jean0987654321 3 2,129 2021-03-27, 03:23 PM
Last Post: Jean0987654321
  Wake - Sleep Interaction -> Failed Recordings mikeh49 48 15,184 2021-03-21, 11:21 PM
Last Post: careads
Video Restrict Recording Space foucomm 1 1,375 2021-01-30, 09:25 PM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode