2022-05-02, 07:56 PM
So here's the issue I'm having:
I have NextPVR set up on a Windows box, using Kodi as a front end, set to sleep on 30 minutes of inactivity, and 5 minutes unattended sleep timeout, and it runs through the HDMI passthrough on my Xbox One X right now. Normally this works great for me.
But I'm looking ahead, and eventually the Xbox One X is probably going to get pulled out and moved into another room and I will just have the Xbox Series X in here. And often it's useful for me to use the Kodi client on the Xbox to access the DVR, so I have that set up as well. BUT: when I watch Live TV (with an HDHomeRun Prime, properly configured through NextPVR on the Windows box) the box will sleep when the 30 minutes expires.
I do not want to turn off that 30-minute sleep.
What I want is for NextPVR to send some kind of ping every few minutes to the OS when it's playing back LiveTV that says "hey, yo, Windows, still awake over here!" simply so Windows notes something is active and doesn't go to sleep.
Right now I'm playing around with SmartPower, which seemed like a good solution because I could set a network threshold (if more than 2Mbps are travelling over the network interface, then clearly its pumping out a video stream of some sort, so stay awake), but you have to give it full control over it telling your machine to sleep instead of simply being able to say "if these conditions are satisfied, stay up, otherwise let Windows do its thing" so I suspect it's not gonna work long-term.
Anyone have an idea how I could make that ping happen myself, or if that couple lines of code are something the devs would consider?
I have NextPVR set up on a Windows box, using Kodi as a front end, set to sleep on 30 minutes of inactivity, and 5 minutes unattended sleep timeout, and it runs through the HDMI passthrough on my Xbox One X right now. Normally this works great for me.
But I'm looking ahead, and eventually the Xbox One X is probably going to get pulled out and moved into another room and I will just have the Xbox Series X in here. And often it's useful for me to use the Kodi client on the Xbox to access the DVR, so I have that set up as well. BUT: when I watch Live TV (with an HDHomeRun Prime, properly configured through NextPVR on the Windows box) the box will sleep when the 30 minutes expires.
I do not want to turn off that 30-minute sleep.
What I want is for NextPVR to send some kind of ping every few minutes to the OS when it's playing back LiveTV that says "hey, yo, Windows, still awake over here!" simply so Windows notes something is active and doesn't go to sleep.
Right now I'm playing around with SmartPower, which seemed like a good solution because I could set a network threshold (if more than 2Mbps are travelling over the network interface, then clearly its pumping out a video stream of some sort, so stay awake), but you have to give it full control over it telling your machine to sleep instead of simply being able to say "if these conditions are satisfied, stay up, otherwise let Windows do its thing" so I suspect it's not gonna work long-term.
Anyone have an idea how I could make that ping happen myself, or if that couple lines of code are something the devs would consider?