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 … 110 Next »
Standby/Sleep During Playback

 
  • 0 Vote(s) - 0 Average
Standby/Sleep During Playback
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 54,991
Threads: 983
Joined: May 2006
#61
2025-11-28, 07:39 PM
I did lots of testing with pwrtest and it only shows the ES_SYSTEM_REQUIRED changes so the tools isn't as useful as I hoped it would be. During my testing machine would sleep if just ES_SYSTEM_REQUIRED was set so it is no just you.

Having NextPVR go to sleep after playback was almost as annoying though.

Martin
fla
Offline

Posting Freak

Posts: 916
Threads: 48
Joined: Mar 2006
#62
2025-11-28, 08:10 PM
Thanks for confirming ES_SYSTEM_REQUIRED alone doesn't prevent sleep anymore. Glad it's not just me.

Even if sub added ES_CONTINUOUS it's not easy to know when to clear it after playback. For recordings he added BlockShutdownForExtraSecondsAfterRecording. What if playing is paused so playing is temporarily stopped?

I don't know the answers.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 54,991
Threads: 983
Joined: May 2006
#63
2025-11-28, 08:22 PM
That shutdown is handled by the tray app so won't help, it doesn't know about playback.

During pause you can tell us, if power management logging is enabled, do you see the PowerManagement PreventStandby messages. I expect if the whole file is sent you could have issues if your try and rewind.

Basically using a server with aggressive sleep behaviour is a bad choice when you also want to use remote clients.

Martin
fla
Offline

Posting Freak

Posts: 916
Threads: 48
Joined: Mar 2006
#64
2025-11-28, 10:18 PM
One ugly hack that would be easy is a config file keyword to simply throw in ES_DISPLAY_REQUIRED with ES_SYSTEM_REQUIRED (default false).

Code:
<WorkAroundWindows11IdleTimerBug>true</WorkAroundWindows11IdleTimerBug>

This would work as it did on Windows 10 with the only caveat being the display also remains on. Note that ES_DISPLAY_REQUIRED alone on Windows 11 also doesn't prevent sleep unlike Windows 10. My HTPC TV is off anyways when playing remotely so no difference.

This can be tested in the script from post #53 by uncommenting the success line instead of the fail line.
Code:
#$ste::SetThreadExecutionState($ES_SYSTEM_REQUIRED -bor $ES_DISPLAY_REQUIRED) # success
$ste::SetThreadExecutionState($ES_SYSTEM_REQUIRED) # Win10 success, Win11 Fail

Interesting observations:

On Windows 11 ES_DISPLAY_REQUIRED alone does not work.
While playing back remotely on kodi, pwrtest.exe /es revealed that kodi is making repeated requests with ES_DISPLAY_REQUIRED and ES_SYSTEM_REQUIRED together even though documentation says ES_DISPLAY_REQUIRED alone should be used.
fla
Offline

Posting Freak

Posts: 916
Threads: 48
Joined: Mar 2006
#65
2026-03-06, 10:39 PM
I just tried playing an old recording in kodi over the LAN and the NextPVR Windows 11 server slept and kodi playback froze.

I then upgraded NextPVR on the server from 7.0.3 to 7.0.5 and it works like a charm.

This is fixed in 7.0.5.260307 yay!
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 54,991
Threads: 983
Joined: May 2006
#66
2026-03-06, 10:42 PM
Thanks for confirming but the next test is does it sleep.

Martin
fla
Offline

Posting Freak

Posts: 916
Threads: 48
Joined: Mar 2006
#67
2026-03-06, 11:01 PM
I stopped playback and I already had a cmd window pinging the server and it's now filled with "Request timed out." messages so it seems to correctly allow sleep after it's done playing. Didn't pay precise attention but it may even have a grace period after the stop. BlockShutdownForExtraSecondsAfterRecording perhaps?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 54,991
Threads: 983
Joined: May 2006
#68
2026-03-06, 11:23 PM
I just want to be prepared for the inevitable my PC doesn't sleep posts when we touch power management. Seems ok though thanks for confirming.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (7): « Previous 1 … 3 4 5 6 7
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  PC Enter Standby Issues BTV2Nextpvr 4 366 2026-03-03, 11:55 AM
Last Post: BTV2Nextpvr
  client playback Dale Dewing 8 563 2026-01-13, 12:42 PM
Last Post: JamesAllen
  [SOLVED] Windows won't sleep after waking for EPG update fla 2 424 2025-10-30, 07:56 PM
Last Post: fla
  NextPVRServer.exe preventing sleep after watching live TV alanteague 9 1,792 2025-08-09, 05:23 PM
Last Post: Bobins
  New Installation on WIN11 Sleep Problem 12vibes 3 968 2025-07-09, 03:57 PM
Last Post: 12vibes
  nextpvr.exe playback issues? hae 7 2,046 2025-05-31, 09:02 PM
Last Post: sub
  playback issue artmetz 4 1,321 2025-03-28, 07:47 PM
Last Post: artmetz
  NextPVRServer.exe (Version 7) Preventing Sleep PVR_Convert 4 1,290 2025-02-18, 07:18 PM
Last Post: mvallevand
  No standby after update to Version 7 Escape7 163 27,740 2025-01-04, 05:27 PM
Last Post: sub
  Jerky Playback at 2160p dshorrosh 6 1,536 2024-07-17, 01:49 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