I’ve tried ALL the troubleshooting and “fixes” posted here. Including the allow computer to sleep in the multi-media settings of power settings, turning off DLNA, stopping/disabling Plex Update service, making sure no paused clients, etc, etc, etc. The only thing that works 100% and every time is simply exiting Plex before putting the PC to sleep. This is an annoying extra step for manual sleep (and have to re-run Plex after waking the PC up), and of course not really useful for automatic sleep.
I feel like the “Support Away Mode when preventing system sleep” option is supposed to directly address this issue, but it doesn’t seem to have any effect.
Until some update comes along that actually fixes it, I will continue with the tried and true method of exiting Plex before initiating manual sleep. I known I could just do a full poweroff shutdown, but I sleep my PC before I go to bed to save power but not have to deal with restarting all of my work stuff when I wake up).
Put all the windows setting back to normal, you don’t have to screw with the windows setting on the server for sleep. But you still need to set how to wake them up… I use the magic packet.
Set the settings on WinOFF as in the screen shot (note it’s disabled at the moment, I’m working on that server)
Normally both CPU load is enabled and Network Transfer is enabled and both conditions must be triggered to it to put the server to sleep.
Only way I could get them to sleep, Clients are set to send hello messages to the server every 15 second…
When it’s running it adds a small screen down near the clock so you can see what the conditions are.
Hope this help someone… If it does like this post so others know it help others…
Thank you!!! This worked for me. It had to be toggled on and off again & I may have had to reboot as well. Thank you very much. (this is in response to SunnyDays post)
After following this and other related Windows 10 Sleep threads I thought I’d chime in here with some info, I’ll leave it up to people like @SunnyDays to determine it’s value.
I was having issues with Plex not allowing the PC to stay asleep (it would go to sleep just fine, but wake up randomly, before going back to sleep again…in the order of dozens of times throughout the night). My requirements are that the PC needs to be able to sleep, but needs to wake up when Plex is accessed on a device.
I did a test across several days using /sleepstudy.
Wiped system and installed clean Windows 10 64 bit. stayed asleep, didn’t wake up once in a ~24hr stretch.
Installed Plex Media Server (JUST the media server, no personal libraries added, default server settings, remote access disabled). stayed asleep, didn’t wake up once in a ~24hr stretch.
Added my Movies and TV Shows libraries (still default server settings, remote access disabled). woke up several times during a ~24hr stretch.
/sleepstudy shows it’s PCI Express Root Port, which is traced back to the LAN adapter, which makes sense…but why would this ONLY happen once Libraries were added…
<<<<<Can someone explain this?>>>>>
Obviously there is something going on with the LIBRARIES that is causing the server to wake the PC when before the media was added the server slept fine.
This isn’t a Windows issue, it’s a Plex issue and it’s insane how they have stayed silent on this for years…been using Plex for almost a decade and a Pass payer since ~2017, but their disregard for bugs and obsession for random useless endeavors is pushing me away.
This was happening only after streaming media on Xbox One. Quitting PMS and reopening would clear it.
Now it seems to be keeping Windows awake for no reason, even after closing PMS and reopening. Powercfg -requests immediately shows PMS under SYSTEM and AWAYMODE upon launch.
Hey guys, I can tell you how I got around this. I created a scheduled task to kill Plex, then a scheduled task to put the computer to sleep. Then I created a scheduled task to wake the computer every morning, and start Plex. If you want to do it this way, read below.
So first, create notepad file with these contents: taskkill /f /im “Plex Media Server.exe”
Save as plexkill.bat. Doesn’t matter where you save it.
Open Task Scheduler. Create a task. Name it PlexKill. Set the trigger it to run daily at whatever time, say 11:55PM for me. Under actions, find the .bat file you created. Click OK to create it. This kills Plex every night at that time.
Now create a second .bat file with the following contents:
Rundll32.exe Powrprof.dll,SetSuspendState Sleep
Save as sleep.bat.
Open Task Scheduler. Create a task named AutoSleep or something like that. Set it to run daily right after the PlexKill task, say 11:57PM. Find the .bat file. This puts your comp to sleep right after Plex is killed every night.
Now to wake the comp and begin Plex again. Create a scheduled task named PlexStart. Repeat it every morning at say 8AM. For this, you don’t need a .bat file–just direct the task to start the Plex program, usually located at \Program Files (x86)\Plex\Plex Media Server\Plex Media Server.exe. On the Conditions page of the Task, check “Wake the computer to run this task.”
That should do it. Your comp should automatically kill Plex, go to sleep, then wake up to start Plex at the times you chose every night and every morning.
You can use Teamviewer…Just start it up using wake-on-lan settings, then port forward from your router shown in this guide. https://www.youtube.com/watch?v=ee1e0KBSnjc&feature=emb_logo Settings for Teamviewer in Extras, general, configure wake-on-lan.
The beauty of this method is that you can use the mouse pointer to start up Plex, but also once you are on the desktop you can force the computer go to sleep again (just click on the power off icon above the windows start button on the bottom LHS of screen, using the sleep option).
At the end of your session this option will actually force the computer to sleep with plex still running and close it all down…it will only work with all the settings, DLNA etc unchecked as discussed above…but it does sleep!!