Plex not pausing playback when TV turned off

I recently swapped out my Pi3 with Rasplex for a Pi4, meaning I had to toddle off and install Plex manually. I’ve followed the steps in this guide:

I have managed to get it all up and running with the exception of one irritating point; it won’t pause content when the TV turns off.

The Pi is connected to a non smart Samsung TV with Anytime+ enabled/configured, and is working fine to control the general workings of Plex (traversing menus etc).

I have enabled the suspendonstandby option within the plex config file, but this doesn’t seem to have changed the situation. Looking at the log files it does look like it’s getting the command from my TV:

2020-09-10 16:29:14 [ DEBUG ] InputCEC.cpp @ 366 - CecCommand : Got a standby Request

I’ts just not doing anything with Plex, what am I missing here?

Server Version#: 1.20.1.3252
Player Version#: 4.29.6

Many Thanks
Ste.

Still no idea why Plex doesn’t do this out of the box when Rasplex can, something broken, never worked, missing a trick? who knows…

However, I have managed to come up with a work around…

I started by looking at the PMP web api commands here:

Unfortunately the none of the playback based commands seemed to do anything other than return 200/OK (tested with pause and stop), however the navigation commands do seem to work.

So… my final “solution/workaround” is that I setup SWATCH to monitor the Plex log file for the CEC standby request above which then fires off a script that then subscribes to the api, sends the navigation command to load the home screen, and then unsubscribes (not really needed as it would time out).

Example:

wget -d --header=“X-Plex-Client-Identifier: anyidentifier” --header=“X-Plex-Device-Name: anyname” “http://:32433/player/timeline/subscribe?protocol=https&port=32433&commandID=50”

wget -d --header=“X-Plex-Client-Identifier: anyidentifier” --header=“X-Plex-Device-Name: anyname” “http://:32433/player/navigation/home?commandID=51”

wget -d --header=“X-Plex-Client-Identifier: anyidentifier” --header=“X-Plex-Device-Name: anyname” “http://:32433/player/timeline/unsubscribe?commandID=52”

Enjoy,
Ste.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.