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:
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).