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?
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#21
2013-03-11, 03:49 PM
imilne Wrote: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
The general consensus seems to be that the Windows sleep mechanism is flawed in this context. If you do something in a plugin, why try and "mend" the broken Windows sleeps mechanism. Why not write your own algorithm to determine if now is a good time to sleep and if it is send it to sleep and if not not come back in five? minutes and run the algorithm again.

And another thing, I have the NextPVR screensaver set to come on and this stops the computer from going to sleep so I close NextPVR when I want the machine to send itself to sleep.
Lao Pan
Offline

Posting Freak

UK (Mendip TX)
Posts: 1,301
Threads: 114
Joined: Oct 2008
#22
2013-03-11, 03:50 PM
That would be useful - also if you could incorporate PBS's Awaymode shutdown protector - for after the recording starts - it would be even better Cool
I have had a search but the file seams to have disappeared from the forum - I am still using it on my machine (Windows 8) - but haven't tested if it still inhibits shutdown.

Obviously System Plugin knows how long to the next recording - it asks you if you are there - so you are some of the way to this.

Oh and epg updates as well while you are at it Big Grin
It's not an overly complicated system - it's more - overly simple operatives  Huh
gEd
Offline

Posting Freak

London
Posts: 3,518
Threads: 100
Joined: Jan 2005
#23
2013-03-11, 06:44 PM
Graham Wrote:Why not write your own algorithm to determine if now is a good time to sleep and if it is send it to sleep and if not not come back in five? minutes and run the algorithm again.
It would be difficult to accurately detect non-NPVR activity (such as listening to music or watching videos across the LAN in VLC).

Isn't the answer (as already stated) for Sub to get NRecord to inform windows to stay awake when within <Keepawakewindow> minutes of a scheduled recording using this api

http://msdn.microsoft.com/en-us/library/...85%29.aspx
Enables an application to inform the system that it is in use, thereby preventing the system from entering sleep or turning off the display while the application is running.
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#24
2013-03-11, 06:46 PM
gEd Wrote:Isn't the answer (as already stated) for Sub to get NRecord to inform windows to stay awake when within <Keepawakewindow> minutes of a scheduled recording using this api
It's already supposed to do this. I've been trying to find time to work out why it's not happening.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,165
Threads: 958
Joined: May 2006
#25
2013-03-11, 10:59 PM
imilne Wrote: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

Not much help if you are running a backend with NextPVR not running.

Martin
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#26
2013-03-12, 02:30 AM
gEd Wrote:Isn't the answer (as already stated) for Sub to get NRecord to inform windows to stay awake when within <Keepawakewindow> minutes of a scheduled recording using this api
sub Wrote:It's already supposed to do this. I've been trying to find time to work out why it's not happening.
I was always under the impression that NRecord didn't start asserting the "in use" api until the recording actually started. Hence why I was advocating for a second wakeup request at the actual recording time as being a good failsafe.
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
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#27
2013-03-12, 02:46 AM
It's supposed to start asking the machine to stay awake <WakeupPreRecordingSeconds> seconds before the recording is due to start, and logging "Keeping machine from entering standby due to pending recording" at the time.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,165
Threads: 958
Joined: May 2006
#28
2013-03-12, 03:00 AM
If the machine doesn't hit the "Resuming" code because it was already awake, maybe that logic isn't triggered? I just set up a recording for 11:00 with 3 minutes of padding and I don't see any logged messages

Code:
2013-03-11 22:55:18.656    [DEBUG][7]    Requesting wake up for 'RecordingOID2970' at 11/03/2013 10:55 PM
2013-03-11 22:55:18.656    [DEBUG][7]    Requesting wake up for 'RecordingOID2967' at 13/03/2013 9:56 PM
2013-03-11 22:55:18.656    [DEBUG][7]    Requesting wake up for 'RecordingOID2968' at 20/03/2013 9:56 PM
2013-03-11 22:57:00.097    [DEBUG][7]    allocating recording target filename: C:\movies\CBC News Ottawa Late Night\CBC News Ottawa Late Night_20130311_23002330.ts
2013-03-11 22:57:00.097    [DEBUG][7]    About to start recording (2970 on 1526): C:\movies\CBC News Ottawa Late Night\CBC News Ottawa Late Night_20130311_23002330.ts...
2013-03-11 22:57:00.097    [DEBUG][7]    Free space 32710569984  (C:\)
2013-03-11 22:57:00.098    [DEBUG][7]    Asking NDigitalHost to start: C:\movies\CBC News Ottawa Late Night\CBC News Ottawa Late Night_20130311_23002330.ts
2013-03-11 22:57:01.446    [DEBUG][7]    Temp at 11/03/2013 10:57:11 PM
2013-03-11 22:57:01.446    [DEBUG][7]    Started recording (2970:3:C:\movies\CBC News Ottawa Late Night\CBC News Ottawa Late Night_20130311_23002330.ts)

Martin
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#29
2013-03-12, 07:38 AM
mvallevand Wrote:Not much help if you are running a backend with NextPVR not running.

No, but there's plenty of us who don't use it that way Smile

It's a moot point anyway if NPVR is supposed to be doing it. Far better to spend time helping sub debug it than hacking in a half-baked solution to the plugin.

Iain
jcjefferies
Offline

Posting Freak

UK, North Gloucestershire
Posts: 1,220
Threads: 140
Joined: Jan 2011
#30
2013-03-12, 12:35 PM
sub Wrote:It's supposed to start asking the machine to stay awake <WakeupPreRecordingSeconds> seconds before the recording is due to start, and logging "Keeping machine from entering standby due to pending recording" at the time.

Is the problem that Windows can sleep just before <WakeupPreRecordingSeconds>. My server has 3 minutes pre padding so Wake happened 5 minutes before the actual start of the programme. Would starting "Stay Awake" say 10 minutes before the actual programme start cure the problem. Then even if even if the computer Sleeps seconds before "Stay Awake" starts it will be in a state to see the "Wake" several minutes later.
« 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,720 2024-06-03, 03:56 AM
Last Post: Rod Hutchinson
  Not recording errors vidwiz 4 1,091 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,574 2023-07-14, 10:13 PM
Last Post: ZeDoZ
  Recording to a network drive woes. 2leftfeet 12 7,399 2022-04-05, 08:03 PM
Last Post: mvallevand
  device needed for recording David209 2 1,775 2021-04-04, 08:47 AM
Last Post: David209
  PC not going to sleep after recording LeoL 7 3,424 2021-04-01, 07:17 PM
Last Post: Handy.Man
  HDHomerun recording bizzarely not working Jean0987654321 3 2,123 2021-03-27, 03:23 PM
Last Post: Jean0987654321
  Wake - Sleep Interaction -> Failed Recordings mikeh49 48 15,163 2021-03-21, 11:21 PM
Last Post: careads
Video Restrict Recording Space foucomm 1 1,369 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