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

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

Posting Freak

London
Posts: 3,514
Threads: 100
Joined: Jan 2005
#41
2025-05-03, 09:30 PM
I had this niggle in the back of my mind that I should check that it really was telling the PC to stay awake but I didn't have time to test it.

Just tested it and no, it's not telling windows to stay awake when playing back via UIdroid. Is *is* doing so when watching live TV.
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
fla
Offline

Posting Freak

Posts: 880
Threads: 46
Joined: Mar 2006
#42
2025-05-04, 12:06 AM (This post was last modified: 2025-05-04, 12:16 AM by fla.)
Thanks Martin. I tried setting the server to hibernate after 1, 2 and 5 minutes and it still sleeps after that amount of time when kodi is playing a recording over LAN despite the "PowerManagement PreventStandby".

A quick google found deprecated PBT_APMQUERYSUSPEND event that allows grant/deny the request to suspend so that can't be it. Whatever NextPVR uses on Win11 while serving existing recordings isn't working here. Why not use the same mechanism that works during live TV and creating recordings?

Edit: Didn't see @gEd's post, excuse the redundancy...
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,818
Threads: 954
Joined: May 2006
#43
2025-05-04, 12:28 AM
This should have the pre-release change related to power management https://forums.nextpvr.com/showthread.ph...#pid599524

You probably need to run this tool to check for the state changes those aren't logged by powercfg https://learn.microsoft.com/en-us/window...st/pwrtest

Martin
fla
Offline

Posting Freak

Posts: 880
Threads: 46
Joined: Mar 2006
#44
2025-05-04, 04:47 AM
It seemed to last longer but the server still slept during playback eventually.

Should the stable release be reinstalled before swapping nshared.dll? I have the prerelease build. Maybe I messed up replacing the nshared.dll in two directories? I make lots of mistakes... Hopefully @gEd can test this more reliably. Using that tool will take me more time to learn.

Thanks Martin!
gEd
Offline

Posting Freak

London
Posts: 3,514
Threads: 100
Joined: Jan 2005
#45
2025-05-04, 05:42 PM (This post was last modified: 2025-05-04, 10:47 PM by gEd.)
Martin
I'm already running a newer version of nshared.dll that the one in that thread from March 8.
I just see what I believe you guys have already discussed together in this thread previously.

I see StayAwake when you start live TV and AllowSleep when you stop live TV. During Stayawake, we see in powercfg that NextPVRServer.exe (and NPVRTray.exe also initially) is telling windows to stay awake.

However playback via UIdroid shows PreventStandby every 60 seconds but there is [edit: no] process listed in powercfg.
(I presume there is a reason why Sub added PreventStandby instead of just using stayawake)

I can't make sense of pwrtest to understand I should do with it that would be of any help here.
“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,818
Threads: 954
Joined: May 2006
#46
2025-05-05, 01:56 PM (This post was last modified: 2025-05-05, 02:12 PM by mvallevand.)
I just installed the WDK here https://go.microsoft.com/fwlink/?linkid=2307500 and pwrtest is there.

To monitor the state change I use

"C:\Program Files (x86)\Windows Kits\10\Tools\10.0.26100.0\x64\pwrtest.exe" /es

which gives logs like this during streaming.

Code:
Execution State Changed by a process
TimeStamp:      05/05/2025 09:51:37::669
Process:        \Device\HarddiskVolume3\v8\programs\NextPVRServer.exe
PID:            0x522c
TID:            0xffc
RawState:       0x00000001
Continuous: 0  Display:  0  System:  1  AwayMode: 0  UserPresent: 0

And I see it set every 5 seconds. This resets the sleep timer.

Martin
gEd
Offline

Posting Freak

London
Posts: 3,514
Threads: 100
Joined: Jan 2005
#47
2025-05-05, 05:40 PM
Thanks Martin.

You are (as usual) absolutely correct and I see system and display stayawake messages in pwrtest. Very good news.

What I've also discovered today is that my PC isn't handling it's power settings properly and keeps sleeping despite having a stay awake power profile applied.
So when I chimed in here that my PC was going to sleep during playback, I see that the problem is with my PC, not with UIdroid & NPVR which is good to know.

I'll read about pwrtest some more to troubleshoot my problem but I suspect it's a recent windows11 update not sitting nicely with my 14 year old cpu and mobo. I could just leave it on 24x7 but prefer it to sleep when not needed. It's not a problem worth scrapping an otherwise perfectly useable HTPC.
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

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


Possibly Related Threads…
Thread Author Replies Views Last Post
  playback issue artmetz 4 337 2025-03-28, 07:47 PM
Last Post: artmetz
  NextPVRServer.exe (Version 7) Preventing Sleep PVR_Convert 4 359 2025-02-18, 07:18 PM
Last Post: mvallevand
  No standby after update to Version 7 Escape7 163 9,095 2025-01-04, 05:27 PM
Last Post: sub
  nextpvr.exe playback issues? hae 5 552 2024-12-29, 10:15 PM
Last Post: hae
  Jerky Playback at 2160p dshorrosh 6 563 2024-07-17, 01:49 PM
Last Post: mvallevand
  Error at 58 minutes playback Offroad 4 567 2024-06-01, 01:17 PM
Last Post: Offroad
  Recording wont resume, just playback from beginning dallascowboy23 26 2,686 2024-05-15, 01:35 PM
Last Post: mvallevand
  Sleep WakeUp, PC shuts down instead FM5 3 474 2024-05-09, 09:52 PM
Last Post: mvallevand
  Playback record skips back while recording a program sgar75 2 582 2024-03-23, 05:41 AM
Last Post: sgar75
  Occasional delay during skip/playback artmetz 11 1,286 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