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

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

Posting Freak

Ontario Canada
Posts: 54,376
Threads: 972
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: 910
Threads: 47
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
Offline

Posting Freak

Ontario Canada
Posts: 54,376
Threads: 972
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: 910
Threads: 47
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.
« 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
  [SOLVED] Windows won't sleep after waking for EPG update fla 2 222 2025-10-30, 07:56 PM
Last Post: fla
  NextPVRServer.exe preventing sleep after watching live TV alanteague 9 1,153 2025-08-09, 05:23 PM
Last Post: Bobins
  New Installation on WIN11 Sleep Problem 12vibes 3 680 2025-07-09, 03:57 PM
Last Post: 12vibes
  nextpvr.exe playback issues? hae 7 1,618 2025-05-31, 09:02 PM
Last Post: sub
  playback issue artmetz 4 1,006 2025-03-28, 07:47 PM
Last Post: artmetz
  NextPVRServer.exe (Version 7) Preventing Sleep PVR_Convert 4 999 2025-02-18, 07:18 PM
Last Post: mvallevand
  No standby after update to Version 7 Escape7 163 21,495 2025-01-04, 05:27 PM
Last Post: sub
  Jerky Playback at 2160p dshorrosh 6 1,281 2024-07-17, 01:49 PM
Last Post: mvallevand
  Error at 58 minutes playback Offroad 4 1,171 2024-06-01, 01:17 PM
Last Post: Offroad
  Recording wont resume, just playback from beginning dallascowboy23 26 5,694 2024-05-15, 01:35 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