Remotely running/stopping PMS on NVIDIA Shield TV

Server Version#: 1.18.7.2438
Player Version#: 8.0.0.17276
Does anyone please have a solution for remotely running & stopping PMS running on NVIDIA Shield TV? I already have a solution for controlling power to the Shield remotely but want to avoid hard resets for obvious reasons, plus a few times PMS has not automatically started when I have locally restarted the Shield. Teamviewer Host running on Mac fails to connect to Shield (just circles endlessly loading on Mac screen), don’t think Vysor can work and not sure SSL would reach the PMS on/off setting through a Shield root?!

This sounds like a bug! When this happen please try to get logcat if you can!

Vysor should work, as long as you can “adb connect” … you don’t need root for that! But if you want something free I highly recommend GitHub - Genymobile/scrcpy: Display and control your Android device; I use this daily to help me in testing; the only thing it lacks is audio support, but other than that it works really well; you can also easily record the screen which might be handy!

If you’re on mac you can use brew to install it.

Thanks for this @mikec_pt on both counts. Sorry but not sure what “logcat” or “adb connect” are? By brew are you referring to Homebrew, and if so do you have any installation workflows/guides you can recommend? Will look into these solutions - did not know Genymobile scrcpy can access PMS remotely by Mac/PC when running from NVIDIA Shield, which is great news.

“adb” is a tool to access android’s shell amognst other things, it can be used to install apks remotely i.e. (see: https://developer.android.com/studio/command-line/adb).
Logcat is a tool that dumps a log of system messages, if you have adb you can use adb logcat i.e to see it; there’s also some apps for android that allow you to see the log, but that’s not very useful on a TV screen.

As for scrcpy, not PMS per say, it allows access the SHIELD UI it self (or any android really) its like vysor but free! And yes I meant homebrew (if you have that you just need brew install scrcpy really) but you could then use the android app to start/stop PMS via settings.

What are you actually trying to achieve? stop/start pms via some script? you would still need access to the shell for that but adb does provide tools for such (maybe am force-stop/start)

I dunno why you would need that though, PMS should start when the shield start, if not that’s a bug!

Could restarting PMS potentially be built into the “Plex Dash” app?

Not really, how would the app start a binary in a remote machine without some form of acress to a shell?

Start/stop of services is in general maintained by the OS, via init.d/rc.d/systemd and equivalent, on macOS and windows PMS can be started/stopped via GUI too ofc.

I’m still unsure of what you want to achieve, if you detail it perhaps I can help.

Ah nvm the above (last line) I am on mobile and failed to notice this new question was not posted by the OP.

I thought OP is looking for a solution to remotely restart PMS. Typical solutions (like shell access through a VPN) require some crazy customization for the Shield, probably requiring root. I was trying to think up ways to restart PMS without that.

Good point though I’m not sure how to do it without shell access.

1 Like

You should need root, just shell access (adb). Should be possible with “am stop” and the if you look up the “main” activity of the app ( maybe with dumpsys or such… I can probably look that up in mine… ) “am start activyname” should start the app.

PMS is bundled in an actual app in this platform. And root shouldnt be needed to stop/start apps.

Yes, root is probably not needed to start/stop apps, but I think root is needed to remotely access the shell and do what you are talking about.

Unless you connect via USB which not all shields have that wouldnt adb access is always gonna be via network, and thats not hard to enable, visor or scrcpy need adb to work anyway.

I use this daily and I sure don’t have my shield rooted. Some android devices do require a 1st connection via USB to then switch to tcpip but that is not the case for the SHIELD from what I’ve seen do far, I don’t have the newer pro though but I suspect it’s the same since its the same OS.

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