NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
1 2 3 4 5 … 100 Next »
Standby/Sleep During Playback

 
  • 0 Vote(s) - 0 Average
Standby/Sleep During Playback
fla
Offline

Posting Freak

Posts: 876
Threads: 45
Joined: Mar 2006
#11
2023-01-17, 12:44 AM
Maybe a diagram will explain better what I'm trying to say.

Code:
Windows Awake--------sleep delay------>SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
           PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP!!!PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
NextPVR    [<-----Play channel A---------->]   [<-----Play channel B---------->]

In my diagram, windows will try to put the idle server to sleep after the configured sleep/hibernate time has passed (denoted by 'S'). Luckily NextPVR makes power requests while playing to prevent this from happening (denoted by 'P'). Unfortunately during a channel change there is a window of vulnerability where there is no 'P' (denoted by '!') which allows Windows' ongoing efforts to put the server to sleep to unfortunately succeed.

Notes:
  • A fast server appears idle to Windows even while serving live TV to a LAN client.
  • A keystroke on the server resets the sleep delay to zero giving "sleep delay" more minutes safe from sleep, but a power request clearly doesn't reset the idle timer.
  • Delaying the "No longer active" power request described previously is an effort to remove the area marked by exclamation marks in the diagram.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,778
Threads: 954
Joined: May 2006
#12
2023-01-17, 12:50 AM
Yes that is what I suspected but what is your unattended Windows sleep mode setting? If you used WOL to wake it and never touch the server that would be in play here.

Martin
fla
Offline

Posting Freak

Posts: 876
Threads: 45
Joined: Mar 2006
#13
2023-01-17, 06:04 AM
I unhid the unattended Windows sleep mode setting interface which was set to 2min by default. I set it to 15min just like my hibernate setting (sleep is never). It made no difference. After watching a 30min TV show, the sleep/sleep unattended/hibernate timeout is well expired and Windows jumps at the opportunity in between channels when nothing is asking for power to put the server to sleep.

My suggestion earlier was for the NextPVR service to read the power setting (sleep/sleep unattended/hibernate timeout/whichever) and delay by that amount of time the withdrawal of the power request. If a new power request arrives in the meantime to play channel B, the pending withdrawal of the power request for ending playing channel A is dropped.
fla
Offline

Posting Freak

Posts: 876
Threads: 45
Joined: Mar 2006
#14
2023-03-28, 12:15 AM
This problem is biting me again trying to use kodi on Windows. If I watch a 30 min TV program then press "Stop" then go to power and select "Exit", kodi hangs. Windows will then popup that kodi is not responding and ask if I want to force close it or wait for it to respond. If on another PC a WOL is sent to the nextpvr server seconds after the "Stop", then kodi exits normally after the server wakes up.

On libreelec you never quit kodi so I never saw this particular problem.

As requested earlier, the nextpvr server should maintain an active power request for a grace period (sleep unattended setting?) after playing/serving media stops.
fla
Offline

Posting Freak

Posts: 876
Threads: 45
Joined: Mar 2006
#15
2025-02-24, 01:55 PM
NextPVR version: 7.0.1.241229 on Windows 11

Problem: NextPVR server hibernates during playback in kodi over LAN
  1. Started a 2.5 hour recording
  2. An hour later, started playing in kodi in another room over the LAN
  3. The playback froze when the recording ended and the server hibernated
  4. Woke up the server with the "Advanced wake on LAN" kodi addon
  5. Watched another 15 min and the server hibernated again
  6. Went to the NextPVR room to finish playing the recording
Tested today with "powercfg /requests" and NextPVR only has active power requests during recording and Live TV but not during playback in kodi over the LAN.

It would be great if whatever power requests happen for Live TV and recordings also happened for playback over the LAN.
fla
Offline

Posting Freak

Posts: 876
Threads: 45
Joined: Mar 2006
#16
2025-02-26, 07:12 PM
I tested playing a completed recording over the LAN in a web browser (firefox Windows 10). The NextPVR server (Windows 11) has no power requests so it's not just with kodi.

Can someone confirm if there are power requests on their Windows server while playing a completed recording over the LAN with kodi or a web browser? Not Live TV or a recording in progress which do make power requests.

Code:
powercfg /requests

My CPU and disk activity in task manager on the server are almost nothing during playback so it's no wonder Windows 11 puts the machine into standby.
Bobins
Offline

Posting Freak

UK (North West)
Posts: 1,200
Threads: 133
Joined: Sep 2004
#17
2025-02-27, 11:43 PM
NPVR does not create power requests during playback. To my knowledge I've only ever seen it do that during recordings (which includes live TV with time shift buffer effectively being a recording).
I too have seem my system sleep during playback of a previously recorded programme. In my case it's set to sleep just gone midnight and occasionally I'm watching something not noticing the late hour :-)
I have a scheduled task which checks a recoding isn't in progress after midnight before triggering sleep.

Ray
NPVR Version= 7.0.1.241229
Intel i5 Ten Core 14400 + 16GB DDR5 in Gigabyte B760 AX Motherboard
Windows 11 Pro 64bit
TBS-6902 dual DVB-S tuner
TBS-6205 quad DVB-T tuner
500Gb System Disk (M2 Nvme SSD)
4Tb Media Store (2 x 2Tb M2 Nvme SSD Spanned)

Raspberry Pi3 B+, Pi4B (OSMC) & Pi5 (XBian) running Kodi v21.1
fla
Offline

Posting Freak

Posts: 876
Threads: 45
Joined: Mar 2006
#18
2025-03-01, 12:19 AM
Thanks @Bobins, good to know it's not just me. The original post was about standby during playback and that is still a problem today. Perhaps the code is such that making a power request during playback and maintaining it during pause would be difficult to implement.

As a workaround, users could record something unwanted during playback and cancel/delete it when done playing back just to get the power request protection that provides.
gEd
Offline

Posting Freak

London
Posts: 3,512
Threads: 100
Joined: Jan 2005
#19
2025-03-01, 12:37 AM
As a slight tangent, I have a scheduled task that wakes the PC at 5pm and sets the power profile to stay awake until 1am, which covers the period during which I would ever want to watch TV (or listen to music). Another task runs at 1am to switch the power profile to power saving so that it wakes when it needs to and then sleep after 20mins.
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,778
Threads: 954
Joined: May 2006
#20
2025-03-01, 12:39 AM
It is not setting power requests, the OS sends requests to sleep to NextPVR which need blocking.

If multimedia sleep sharing settings aren't being respected, with Kodi one workaround is to record from NextPVR to an always on NAS and then Kodi will play from the NAS. When the playback stops and if the server has gone to sleep pvr.nextpvr's WOL settings should wake the server up so the resume point etc can be set and you can continue on. You shouldn't need alternative WOL addons.

Martin
« 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
  playback issue artmetz 4 314 2025-03-28, 07:47 PM
Last Post: artmetz
  NextPVRServer.exe (Version 7) Preventing Sleep PVR_Convert 4 341 2025-02-18, 07:18 PM
Last Post: mvallevand
  No standby after update to Version 7 Escape7 163 8,855 2025-01-04, 05:27 PM
Last Post: sub
  nextpvr.exe playback issues? hae 5 529 2024-12-29, 10:15 PM
Last Post: hae
  Jerky Playback at 2160p dshorrosh 6 551 2024-07-17, 01:49 PM
Last Post: mvallevand
  Error at 58 minutes playback Offroad 4 553 2024-06-01, 01:17 PM
Last Post: Offroad
  Recording wont resume, just playback from beginning dallascowboy23 26 2,624 2024-05-15, 01:35 PM
Last Post: mvallevand
  Sleep WakeUp, PC shuts down instead FM5 3 464 2024-05-09, 09:52 PM
Last Post: mvallevand
  Playback record skips back while recording a program sgar75 2 564 2024-03-23, 05:41 AM
Last Post: sgar75
  Occasional delay during skip/playback artmetz 11 1,274 2023-11-11, 03:29 PM
Last Post: artmetz

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

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

Linear Mode
Threaded Mode