MythTV-Clients / MythTV-Android-Frontend

Implementation of MythTV .25+ Services API for Android
GNU General Public License v3.0
66 stars 16 forks source link

Implement wakeonlan #88

Open gergnz opened 11 years ago

gergnz commented 11 years ago

it would be really cool, if there was a wakeonlan button for the back and/or the frontend.

I currently have my myth-backend shut off between shows to save power, and it can be turned on via a wakeonlan packet, it would be nice to have that feature in the mythmote and myth-android-frontend.

billmeek commented 11 years ago

Note that if a backend host responds to a WOL and a Android user starts watching a video (which implies mythtranscode starts,) all is well. Because mythtranscode is one of many things that prevent the backend from shutting itself down.

However, mythtranscode will finish before the entire recording is watched and (baring some other reason) the shutdown process will start. I don't see any Services API that would prevent shutdown. Users could craft a Pre Shutdown Wakeup Check Command script to detect the connection of the Android device. E.g. the backend could check (if the Android had a static IP address,) the output of netstat for staticIP:6544.

gergnz commented 11 years ago

Currently I have only 1 machine that shares the FE/BE. If say I want to check a recording or watch something, it would be great to have be able to turn the machine on from my android device either via the myth-mote section or the FE section.

billmeek commented 11 years ago

You can do that now, if you're willing to do it outside of this app. Go to the Play Store and search for Wake On LAN. I'm using the 1st item that comes up (by mafro.) Then you can fire up this app.

It sounds like you have your backend configured the same as I do, that is it shuts off when MythTV has nothing to do. Just beware that the backend will shutdown as I outlined above. My backend is set to shutdown after 2 minutes of inactivity (no recording, playback, transcoding etc.) Naturally, you could configure that backend to delay more than 2 minutes.

gergnz commented 11 years ago

Good suggestion, thanks.

pot8oe commented 11 years ago

The original mythmote app has WOL built-in. I'll look into moving it into mythtv for android.

-Tom

On Wed, Nov 28, 2012 at 12:18 AM, Greg notifications@github.com wrote:

Good suggestion, thanks.

— Reply to this email directly or view it on GitHubhttps://github.com/MythTV-Clients/MythTV-Android-Frontend/issues/88#issuecomment-10791076.