NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 23 24 25 26 27 … 101 Next »
NPVRTray.exe and power requests

 
  • 0 Vote(s) - 0 Average
NPVRTray.exe and power requests
fla
Offline

Posting Freak

Posts: 880
Threads: 46
Joined: Mar 2006
#1
2023-05-19, 01:26 PM
Why does NPVRTray.exe make power requests when running on the same PC as the NextPVRService who already makes the necessary power requests while a tuner is active?

The NPVRTray always shows green when my single tuner is idle and red when it's active so it's perfectly aware of what's going on. While investigating a rare problem with NextPVRService power requests  (now probably fixed by sub), I sometimes observed NPVRTray power requests out of sync with the red/green status.

On a few occasions NPVRTray had no power requests during live tv and on a few occasions NPVRTray had power requests during hours of idle time keeping the server awake (shown below).

Code:
C:\Windows\System32>powercfg /requests
DISPLAY:
None.

SYSTEM:
[PROCESS] \Device\HarddiskVolume5\Program Files\NextPVR\NPVRTray.exe

AWAYMODE:
[PROCESS] \Device\HarddiskVolume5\Program Files\NextPVR\NPVRTray.exe

EXECUTION:
None.

PERFBOOST:
None.

ACTIVELOCKSCREEN:
None.

Could NPVRTray.exe notice cases where NextPVRService is on the same PC and skip the power requests altogether?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,830
Threads: 954
Joined: May 2006
#2
2023-05-19, 01:33 PM
The tray app was always responsible for preventing shutdown during recordings, sub just added an extra minute after the recording ends in the tray app to prevent immediate sleep when recording or live tv finish. Make sure you use the fixed version released after 6.1.2

The tray app is optional.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,657
Threads: 767
Joined: Nov 2003
#3
2023-05-19, 06:38 PM
Processes running on the user's active desktop session get some more ability to do stuff like blocking shutdown attempts and showing the user messages, which wasn't possible for a service.
fla
Offline

Posting Freak

Posts: 880
Threads: 46
Joined: Mar 2006
#4
2023-05-20, 02:16 PM
I do like the feature of the extra minute of awake time when recording or live TV finish (great idea for Win11). I'm running official release 6.1.2.230502 so I must have the NPVRTray that came with that.

After watching a little bit of news last night over kodi, the server was still awake this morning with NPVRTray power requests as in post #1 above. Since Martin just taught me the tray app is optional, I now disabled it in Windows startup. I'd prefer not to disable it though and get the full NPVRTray feature set sub described.

Thanks for the info guys.
fla
Offline

Posting Freak

Posts: 880
Threads: 46
Joined: Mar 2006
#5
2023-06-07, 11:29 AM
Power requests seem to work well in 6.1.3. Smile Is the tray app power request extra minute to prevent immediate sleep when recording or live tv finish configurable in config.xml? I would play around with longer values if I could as I'm pretty slow these days.

Since 6.1.2 I have a background powershell script (from another thread) that looks for a live-*.ts file and does a power request of its own until "hibernate minutes" after live-*.ts disappears. If the extra minute tray delay is configurable, I'd remove the redundant powershell script.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,657
Threads: 767
Joined: Nov 2003
#6
2023-06-07, 05:24 PM
It is configurable in config.xml in the next release.
fla
Offline

Posting Freak

Posts: 880
Threads: 46
Joined: Mar 2006
#7
2023-06-08, 10:43 AM
Terrific! I presume the new config.xml keyword will survive NextPVR upgrades. I'll certainly upgrade when the next release comes out but 6.1.3 is already working nicely locally on Win11 and with a couple kodi LAN clients.
fla
Offline

Posting Freak

Posts: 880
Threads: 46
Joined: Mar 2006
#8
2023-06-30, 02:22 AM
I upgraded to 6.1.4 and saw the new keyword BlockShutdownForExtraSecondsAfterRecording in config.xml and set it to 300 and rebooted. I tried both live TV and a recording and the tray app power request still only lasted an extra minute as in 6.1.3. Am I doing this wrong?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,657
Threads: 767
Joined: Nov 2003
#9
2023-06-30, 04:35 AM
Can you see if this updated NPVRTray.exe fixes it for you?


Attached Files
.zip   NPVRTray.zip (Size: 15.3 KB / Downloads: 6)
fla
Offline

Posting Freak

Posts: 880
Threads: 46
Joined: Mar 2006
#10
2023-06-30, 01:04 PM
Yes! Tried live TV and a recording and both maintained the power request for the BlockShutdownForExtraSecondsAfterRecording.

The new one is 90 KB vs 101 KB in 6.0.4 release.

Removed the ugly powershell script that polled for a live-*.ts file and did a power request. Yay!

sub is awesome!
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Top Tip: Control windows power plans to manage windows sleep settings gEd 1 628 2023-04-04, 11:51 PM
Last Post: mvallevand
  Can't see progeamming after power failure selowan 5 847 2022-10-27, 12:08 AM
Last Post: mvallevand
  Here's an Odd One - Invalid Phantom Tuning Requests! PRBUK 10 1,871 2022-01-10, 04:16 PM
Last Post: sub
  NPVRTray Problem? jcole998 19 3,861 2020-07-23, 01:35 PM
Last Post: jcole998
  Script to delay NPVRtray running hansol123 5 1,932 2020-06-10, 02:27 PM
Last Post: hansol123
  NPVRTray - Status Peter Ingham 58 12,901 2019-12-02, 01:17 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