Remote restart of Shield TV? There is a solution!

server-nvidia-shield

#1

It happens that sometimes PMS crashes and is not working until the whole Shield Tv is restarted. I was wondering whether there is a way to make such restart when i am not home. And finally i found elegant workaraund how to do so.

For those lucky owners of Logitech Harmony remote control (the newer one with the always connected Hub extension) there is a possibility to create new activity (i named it Restart Shield) and program this activity to simply restart the Shield. As the mobile app can control connected staff even outside your home wifi (via cloud), you could easily restart the Shield from wherever you are. Which is AWESOME!

I generally think that Logitech's Harmony controllers are magic pieces of finetuned accessories which help to deal with multiple remote controls at home and this is just another application how usefull it can be.

Hope it helps at least to somebody!

Note: my setup of the "Shield TV restart" activity consists of start sequence and end sequence macros, which ensure the proper restart of my Shield TV. If you want to program the activity in the same manner, watch out a short video describing my setup of the activity.
1drv.ms/v/s!AsR4PAcXVKqExQseuAg9kaNe1-iF


#2

Great solution. Unfortunately I don't have a new Logitech so not a solution that works for me.

Wonder where this bug came from. Seems the very first version of the Plex Media Server is the only one I can't count on to not give me issues. There were a number of updates that had issue of not restarting when there was a power failure or Switch otherwise switches off. This was finally fixed in the Android 7 update. Then after that updates introduced this bug of server stopping and not being able to restart unless you restarted the Shield.

Quite frustrating. Might end up uninstalling all updates, reverting to the original server version and never ever updating ever again.


#3

a smart power plug?


#4

interesting. How hurtful is hooking it up to a Wemo and cutting the power every now and then?


#5

@claudio_roma said:
a smart power plug?

this is a good solution - although not sure if it will corrupt the linux OS.

Any other way to remotely restart the box - using CLI or Web command?


#6

@zluzar said:
It happens that sometimes PMS crashes and is not working until the whole Shield Tv is restarted. I was wondering whether there is a way to make such restart when i am not home. And finally i found elegant workaraund how to do so.

For those lucky owners of Logitech Harmony remote control (the newer one with the always connected Hub extension) there is a possibility to create new activity (i named it Restart Shield) and program this activity to simply restart the Shield. As the mobile app can control connected staff even outside your home wifi (via cloud), you could easily restart the Shield from wherever you are. Which is AWESOME!

I generally think that Logitech’s Harmony controllers are magic pieces of finetuned accessories which help to deal with multiple remote controls at home and this is just another application how usefull it can be.

Hope it helps at least to somebody!

Note: my setup of the “Shield TV restart” activity consists of start sequence and end sequence macros, which ensure the proper restart of my Shield TV. If you want to program the activity in the same manner, watch out a short video describing my setup of the activity.
1drv.ms/v/s!AsR4PAcXVKqExQseuAg9kaNe1-iF

Thanks a lot @zluzar! I changed the “OK” for “SELECT” and all worked great.
Regards from Brazil, Antonio.


#7

This is a pretty cool solution – thanks!


#8

Has anyone tried teamviewer as an alternative solution?


#9

You could always use adb to kill the plex server and start the process again…


#10

@“trent.curtis” said:
You could always use adb to kill the plex server and start the process again…

That is something i’ve been looking into recently. I am able to kill the server, but I can’t start it up again.
I use adb shell am force-stop com.plexapp.mediaserver.smb to stop the server, but when I try to use adb shell am start com.plexapp.mediaserver.smb it gives me an error message:

Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] pkg=com.plexapp.mediaserver.smb }
Error: Activity not started, unable to resolve Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.plexapp.mediaserver.smb }

I guess i’m using the wrong command, can anyone help me out?