Jump to content


Photo

New feature request: Management of server wake / sleep state

Emby Server Sleep wake WOL magic packet Windows Android TV

  • Please log in to reply
30 replies to this topic

#1 LeonP OFFLINE  

LeonP

    Newbie

  • Members
  • 4 posts
  • Local time: 02:05 AM

Posted 08 December 2018 - 04:20 PM

We have a couple of Samsung TVs in the house, which are not very "smart" out of the box.  To solve that problem we have installed nVidia Shield devices for each of these TVs.

 

This solved the problems with the built in functionality.  Streaming apps are working perfectly now ... with the exception of Emby.

 

The problem is that the Emby client for Android TV cannot manage a server that is in the Sleep State.

 

I'm respectfully requesting for a feature that can manage the sleep/wake state of the Emby Server (in my case the host is Windows 10).  This can be done by:

 

- Sending a WOL magic packet to the server when a client requests a video to be streamed (and the server is in the sleep state).

- Keeping the server awake during streaming.

 

Really love the Emby server, as it provides many benefits over its competitors, like Plex, but the absence of this feature really limits its usability in the Android TV space.

 



#2 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 52001 posts
  • Local time: 08:05 PM

Posted 08 December 2018 - 05:28 PM

Hi.  We already have this so please describe exactly the problem you are encountering so we can figure out what it is.  Thanks.

 

How to Report a Problem



#3 LeonP OFFLINE  

LeonP

    Newbie

  • Members
  • 4 posts
  • Local time: 02:05 AM

Posted 08 December 2018 - 07:17 PM

I'm talking about the client for Media Centres / TV (Android TV).  There is no evidence of this function in this version of Emby -- nor does it succeed in waking my PC.  All other methods to wake the Win10 server work, but not the Emby Android TV client.

 

If indeed this function does exist, please elaborate how this function is accessed / invoked.



#4 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 52001 posts
  • Local time: 08:05 PM

Posted 09 December 2018 - 11:24 AM

Hi.  Can you please tell me exactly what you are doing and what is happening?  What versions of everything, etc. (as outlined in the doc I linked)

 

Thanks.



#5 LeonP OFFLINE  

LeonP

    Newbie

  • Members
  • 4 posts
  • Local time: 02:05 AM

Posted 11 December 2018 - 02:13 PM

Client:  nVidia Shield, Android TV, version 1.6.56g (tv.emby.embyatv)

 

Server:  Windows 10 PC, Emby Server 3.5.3.0

 

Client and Server on same network subnet (home).

 

 

Problem description:

 

1.  Server is asleep (state S3).  Network interface power management is set to only wake up on receiving a WOL "magic packet".

 

2.  Try to connect to server.  Client just hangs, cannot wake server, and times out.  Client is obviously not sending a WOL "magic packet".  After the timeout period the server dialogue is displayed.  The only possible change for the Server is to "forget" it ... no "wake up" function.

 

3.  Workaround is to use "Wake on LAN" Android app from my smart phone, to send a WOL "magic packet" to server, which succeeds in waking it.

 

4.  Repeat:  this is the client for Android TV, not Android.

 

 

Have looked at all other Emby and related forums.  There is no evidence that the Emby client for Android TV sends a WOL "magic packet" to server.


Edited by LeonP, 11 December 2018 - 02:22 PM.


#6 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 52001 posts
  • Local time: 08:05 PM

Posted 11 December 2018 - 02:46 PM

Hi.  You said it "times out".  What, exactly, happens then?

 

What should be happening is that you should get a dialog up that asks you if you would like to try and wake the server.

 

Also, if you have a remote with a "menu" button on it, you can use that to produce a menu with the wake option.  Or, you should be able to long-press select and get the same menu.



#7 LeonP OFFLINE  

LeonP

    Newbie

  • Members
  • 4 posts
  • Local time: 02:05 AM

Posted 11 December 2018 - 03:05 PM

Many thanks for quick response.  After connection attempt, no response is received for say 60 seconds.  Then the server selection dialogue appears, but without any option to wake the server.

 

NB:  When I try to connect to the server from my smartphone, I get an option to wake the server, which works ok.

 

Please note that the Emby Client for Android and the Emby Client for Android TV behaves differently in this respect.



#8 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 52001 posts
  • Local time: 08:05 PM

Posted 11 December 2018 - 03:15 PM

Hi.  On that screen, there should be a "send logs" button. Can you create the issue and then use that and come tell me exactly what time you did it?

 

Thanks.



#9 Kodi_Newcomer OFFLINE  

Kodi_Newcomer

    Advanced Member

  • Members
  • 228 posts
  • Local time: 01:05 AM

Posted 02 September 2019 - 03:17 PM

I have the Same Problem. I have an Nvidia shield Android TV Box. In this there is the latest emby App, my emby Server on win 10 is running the latest beta. When my server is at Standby mode s3 the Android App in the Nvidia shield did Not start the emby server when i Start the emby App in the Android TV Box. Is there no wol Feature ?

#10 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156920 posts
  • Local time: 08:05 PM

Posted 02 September 2019 - 03:31 PM

I have the Same Problem. I have an Nvidia shield Android TV Box. In this there is the latest emby App, my emby Server on win 10 is running the latest beta. When my server is at Standby mode s3 the Android App in the Nvidia shield did Not start the emby server when i Start the emby App in the Android TV Box. Is there no wol Feature ?

 

Hi, yes there is WOL. Did you try selecting the Wake Server option from the menu?



#11 Kodi_Newcomer OFFLINE  

Kodi_Newcomer

    Advanced Member

  • Members
  • 228 posts
  • Local time: 01:05 AM

Posted 02 September 2019 - 03:49 PM

In the emby Server or the emby Android App ? In the App i cant found anything.

#12 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 52001 posts
  • Local time: 08:05 PM

Posted 03 September 2019 - 10:14 AM

In the emby Server or the emby Android App ? In the App i cant found anything.

 

Did you click on the server in the server list?



#13 Kodi_Newcomer OFFLINE  

Kodi_Newcomer

    Advanced Member

  • Members
  • 228 posts
  • Local time: 01:05 AM

Posted 04 September 2019 - 02:09 PM

Here is what i have on options at the app, there is no wol settings or similar to it !

 

When the server is not running, and i click on the server to choose for some time the app hangs and after this nothing happens, no server is waked up or anything happens.

When i start the app it tooks a long time until he reacts, i think he is trying to connect to the known server but when he is off nothing happens.

 

When i start kodi for example he starts my server. but i will change to emby app so i did not need kodi anymore.

Attached Files



#14 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156920 posts
  • Local time: 08:05 PM

Posted 04 September 2019 - 02:36 PM

Did you try selecting the Wake Server option?



#15 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 52001 posts
  • Local time: 08:05 PM

Posted 04 September 2019 - 02:43 PM

Please be sure you wait at least 45 seconds after selecting the server from the server list screen.



#16 Kodi_Newcomer OFFLINE  

Kodi_Newcomer

    Advanced Member

  • Members
  • 228 posts
  • Local time: 01:05 AM

Posted 05 September 2019 - 08:53 AM

Did you try selecting the Wake Server option?

Where should this Option be ? I looked though all Options unter settings in the App nothing found.



#17 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 52001 posts
  • Local time: 08:05 PM

Posted 05 September 2019 - 10:42 AM

Where should this Option be ? I looked though all Options unter settings in the App nothing found.

 

 

It will be on the dialog that comes up after the server connection times out so please be sure you are waiting at least 45 seconds.


  • Kodi_Newcomer likes this

#18 Kodi_Newcomer OFFLINE  

Kodi_Newcomer

    Advanced Member

  • Members
  • 228 posts
  • Local time: 01:05 AM

Posted 05 September 2019 - 03:40 PM

Hm i Start the App and in the Screen there stand loading. I was i think the 46 Seconds. After that there comes a Message unable to connect ... And after this i See the Server to choose. I click on IT again but IT will Not Work. Nothing Happens nothing to choose wol Option .

 

Is there no way i can Set wol permanently ? So when i Start the App He sends directly an wol package ?



#19 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 52001 posts
  • Local time: 08:05 PM

Posted 05 September 2019 - 03:44 PM

We removed the automatic attempt to wake the server because it potentially slowed things down and made it manual.  Perhaps it makes sense to try to wake automatically IF you have the app configured to auto login...



#20 Kodi_Newcomer OFFLINE  

Kodi_Newcomer

    Advanced Member

  • Members
  • 228 posts
  • Local time: 01:05 AM

Posted 06 September 2019 - 10:18 AM

We removed the automatic attempt to wake the server because it potentially slowed things down and made it manual.  Perhaps it makes sense to try to wake automatically IF you have the app configured to auto login...

Did you mean login with MediaBrowserConnect ? Or did you mean to implement this maybe as an option for auto login ?

 

But when i start the app he try's to connect to the server, is this not auto connect ?







Also tagged with one or more of these keywords: Emby Server, Sleep, wake, WOL, magic packet, Windows, Android TV

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users