Plex Media Server prevents Windows 10 sleep/hibernation (both PC AND monitors)

I do believe something in the NVidia shield TVs is the culprit. I just unglugged the LAN cable from both of my shieldTVs and the server went to sleep without me doing anything.

Anyone have any ideas on how to fix/deal with this?

I am using a WOL app on my phone to wakeup my server when I want to use it.

Still waiting for Plex to fix this problem.

Following the instructions seemed to have worked for me and keeps it in sleep, especially #2.

1. Enable DLNA Server - Unchecked
2. Support away mode when preventing system sleep - Unchecked
3. Run a partial scan when changes are detected - Unchecked
4. Update my library automatically - unchecked
5. Update my library periodically - 12 hours

Thank you, but I already went throught those steps, I checked my config again just now and everything is set up exactly as you said. Doesn’t work for me.

I also tried rolling back to 1.4, to see what happens. Didn’t work either.

The last update fixed the problem for me.

Would be nice if this was fixed sometime soon.
At the moment I need to kill Plex Media Server to get Windows 10 to sleep.
Have tried all the above with no success. And the latest update didn’t make any change :frowning:

Make sure “Support Away Mode when preventing system sleep” is activated (on settings / settings / general).

If I turn it off, the problem returns, so it has to be important. Turning it off or on before the update didn’t do anything.
If this doesn’t work, I could give you the rest of my settings. Good luck.

Make sure “Support Away Mode when preventing system sleep” is activated (on settings / settings / general).

That was one of the first things I tried, but it made absolutely no difference.

Then I don’t what’s going on. In case it helps, I’ve made screenshots of everything I think I’ve tinkered with. I don’t really know what I did anymore, all I know is that W10 sleeps fine now and Plex works as it should.
If you want screenshots from other settings, just say so.

Screenshots:
https://drive.google.com/drive/folders/1qtnQ9jhd7-KiS2i47w7Rqx0gYBFtFCFn?usp=sharing

All I can tell you is I have to have it unchecked to get my Windows 7 systems to sleep.

I tried your settings and you know what?

It worked!!!


once.
The next day it wouldn’t go to sleep again without me first shutting down PMS manually.

o_O
That’s so weird, I can’t see how any of this makes any sense. My plex is still working fine, by the way. For now.

this is an object lesson in running production software on a workstation. you will want something dedicated to handle Plex.

I had posted earlier with this problem, but am realizing that somewhere in the last few updates, the problem has fixed itself. My computer is going to sleep just fine – sometimes at points that I wish it wouldn’t. Now I may need to turn to away mode setting back on so that it won’t go to sleep while I’m listening to music!

Hi,

This same error just started to occur on my Windows Plex Media Server, uncertain whether because of a recent Plex update, new XBox One or some changes I did on the computer.

However, I like to control my computer’s sleep patterns, and not the other way around! :wink:

This solved it for me in a cmd prompt with admin rights, after every Plex menu setting proved useless:

powercfg /requestsoverride PROCESS “Plex Media Server.exe” AWAYMODE SYSTEM

Actually, it worked only with AWAYMODE, as well, but I like to control computer sleep with the excellent WinSleep app and only fire up the 300W behemoth when I need heavier services, like gamestreaming, HD transcoding etc., and leave the other lighter and trivial server tasks to a 1W RPi instead.

To wake the Plex Media Server when needed, one could use for instance the Plex WOL-plugin on an always-on embedded device, which uses a lot less power, or with other WOL tools and solutions.

This might not work for everyone, or be a solution to everyone’s liking. Just a friendly tip, without a personal need for a further discussion about the definition of a server, whether every server should always be on etc.

Have a nice day!

Br,
Vegard

I noticed this problem as well, pretty recently, within the last two weeks. It seemed to occur with the 2nd to last server update. In my case, the issue seems to be caused by running more than 1 plex media server (on different host machines). Recently, they seem to establish peer-to-peer network connections between themselves, and as soon as that connection is established, the away and system blocks show up in “powercfg /requests”. If I shut-down one of the servers, then the requests fall away and the system can sleep. It is notable that the “/requestsoverride” approach has two downsides. First, it likely prevents PMS from keeping the machine from sleeping when an active stream is occurring (or a DVR recording session). Next, the PlexWOL plugin (which I do happen to run on my router to wake the server on client connections), will spuriously wake the system since these peer-to-peer requests between servers seems to happen at least a couple times per hour.

I’m looking for workarounds, but it seems to be a regression in PMS itself.

I’m noticing this issue with PMS recently as well.
All was working fine until a recent update

Are Plex aware of this?

I run a number of servers
 all run windows currently
Because Plex.TV polls the servers hourly they would never sleep on their own.
Also the settings that affected the systems;
image
image
image
image


image

That’s the current list, every update may add another setting


Now how I got it all to work
First the sleep part

I installed on every system that I need to sleep “AMP WinOFF”
image
I disabled all windows sleep options, so windows wont put it to sleep only that application.
I set the following in “AMP WinOFF”

These setting require the system to have no more CPU activity then 5% AND Network activity have to be below 10%

NOTE: my systems have 4 port ethernet cards, I select the one that PMS uses for remote access.

Now to wake them up


I first used the DDWRT network router patch, That did work on the older router

But I upgraded my external network and that router was of no use.
I tried all the solutions I could find on the internet, looking for something that would wake them automatically.
Nothing I found seem to work. Sometime it wouldn’t wake up the system (I’m on the road 300 miles away, can’t do much about it, out of luck) or they wouldn’t go to sleep.

So I figured I would give it a try myself, (I am no programmer)


First I had to figure a way to catch the traffic between the private IP access and the systems, Did a lot of searching and it came down to having to tap into the line.

so I setup a Plex LAN segment

Public IP <----> router <----> network hub <----> systems
So I placed a tap between the router and the network hub watching for incoming only traffic from the public side.
.That tap connected to a system that runs 24/7 anyway on it own network port.
I installed win-dump on that system.
Win-dump can be configure to catch network traffic.
I then wrote a bat script to catch that traffic and do something with it.
It basically looks to see it a packet has a destination address to one of the PMS servers at port 32400.
If it does then it sends a WOL command to that server, waking it.
Work good other then Plex.Tv keeps polling them.
So I now check for the remote IP and if it’s one of the Plex.Tv systems I do nothing.
Also I found that I had to ignore my routers own traffic since it would check if the system was alive, not 100% sure why it does this, any way I ignore it.

Been working for a few years now,
Plex updates don’t affect the operation.
I do have to keep an eye out for new Plex.Tv servers that poll.

I also now use it for a few other systems (non PMS) now.
It does save a lot in power
 My average system runs only about 4-5 hours out of 24 in a day


Hi,

Quick note.

If your windows plex server isnt sleeping.

Make sure it’s not scanning.

Went through a lot of troubleshooting till i realized that


Moved my Plex server from one Win 10 Pro X 64 system (built last summer) to another (built in 2012) and the system I wanted to setup wouldn’t go to sleep. So I compared power saving options between the two systems and found the solution that worked for me.

It was in the Windows 10 power saving advanced settings.

Here is the solution that worked for me - hope it helps others:

  1. Go to settings and search for sleep
  2. Select Power & Sleep Settings
  3. Select additional Power settings on the right
  4. Select change plan settings
  5. Select change advanced power settings
  6. Scroll down to multi-media settings and expand tree
  7. Expand when sharing media files
  8. Change to allow the computer to sleep
1 Like