Plex Media Player prevents sleep

Hi,

I run MediaPortal and Plex Media Player on the same PC. MP exists only to record TV and to pull down the guide but because it needs to wake the machine and prevent sleep while recording MP manages the PC’s sleep function (unless I press sleep on the remote). Unfortunately the PC will no longer sleep as the Plex Media Player logs audio and video subsystem requests against windows to deny sleep requests. This is understandable if plex is playing media, has just been launched, or is idle for just a few minutes…but this is a permanent state - as soon as you launch plex it blocks sleep, as soon as you close it it releases. So in my case as long as plex runs my PC will never sleep - so it is always awake…which is not cool - awake for 24 hours so I use it for just 2-3… I don’t really wan tot exit/launch plex all the time as I like just being there when the PC wakes.

In my opinion the blocking of sleep requests should only happen when Plex is actually needing to prevent sleep because it is doing something…rather than just sitting ‘on deck’ idle hour after hour.

Is there a setting I can tweak or is this future fix?

Cheers,
B.

Normally that shouldn’t happen. Can you post the output of powercfg /requests?

If it turns out to be something complicated, you could do this to provide us with full information:

  • stop PMP
  • run powercfg /requests
  • start PMP
  • run powercfg /requests again
  • stop PMP
  • grab the PMP log, and post it with the two powercfg outputs

I have the same issue with Windows 10. Something changed in Windows 10 and RDP is causing the issue.

I use RDP to connect to my PLEX box and after disconnecting it keeps the computer awake (not PLEX). Restarting the “Remote Desktop Service” clears the issue.

Microsoft link here:

https://answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_desktop/remote-desktop-host-does-not-allow-host-pc-to/a0c518cc-8a4d-43e5-bcc5-38aa5679dc8a

I have this problem too. My PC will not sleep (even when I tell it to explicitly) while PMS is running.

powercfg with PMS running:

C:\WINDOWS\system32>powercfg /requests
DISPLAY:
None.

SYSTEM:
[PROCESS] \Device\HarddiskVolume2\Program Files (x86)\Plex\Plex Media Server\Plex Media Server.exe

AWAYMODE:
[PROCESS] \Device\HarddiskVolume2\Program Files (x86)\Plex\Plex Media Server\Plex Media Server.exe

EXECUTION:
None.

PERFBOOST:
None.

ACTIVELOCKSCREEN:
None.

powercfg with PMS not running:

C:\WINDOWS\system32>powercfg /requests
DISPLAY:
None.

SYSTEM:
None.

AWAYMODE:
None.

EXECUTION:
None.

PERFBOOST:
None.

ACTIVELOCKSCREEN:
None.

There is an “official” (five year-old) feature request for this. https://forums.plex.tv/discussion/48706/wol/p1
You can like the original post to vote for it.

Cheers

any news on this?

Hi guys, I have the same problems since a long time ago. Actually, that is the main reason I don’t exclusively use PMP. I use OpenPHT for everything except 4K movies, because it allows the computer to sleep and I don’t have to actively turn it off.

However, I solved the problem by denying PMP the power requests:

powercfg /requestsoverride PROCESS “\Device\HarddiskVolume3\Program Files\Plex\Plex Media Player\PlexMediaPlayer.exe” system

or

powercfg /requestsoverride PROCESS “\Device\HarddiskVolume3\Program Files\Plex\Plex Media Player\PlexMediaPlayer.exe” display

1 Like

I’m fighting with this right now. I tried your disable scripts with some tweaks for my setup and they worked but it doesn’t stick and the media server keeps reloading the power requests. Of course if I disable it it sleeps fine again. My sleep button however shuts everything down as it should. I have a win7 ultimate box and after a small time once I stop using Plex directly the power requests go away and it sleeps properly again. It doesn’t once Plex loads in 10 and I’m pretty sure sleep used to be fine without too much tweaking. Any new ideas since this was posted as this is driving me nuts.

Yeah, this has been broken forever. Based on the threads, Plex stopped allowing sleep sometime in 2017. I’m surprised they haven’t fixed it yet.