Jump to content

Auto logoff to force users to swap/ login


Go to solution Solved by GrimReaper,

Recommended Posts

JuJuJurassic
Posted

Loving Emby, and wondered if there was an option I’d missed?

My family have their own accounts for Emby, Everythings working fine. The main TV in the front room has Emby, usually logged in in under my account. I’m finding that my sons will watch an episode, in turn meaning it’s marked as played, when I haven’t watched it. The “in progress” is also messed up.
 

ideally I need to log off every night forcing them to login with their account. Is there a way / script that would make Emby logoff after no activity for say 15 minutes. This would work perfectly.

Any suggestions?

Thanks

GrimReaper
Posted
37 minutes ago, JuJuJurassic said:

The main TV in the front room has Emby

Which client app?

JuJuJurassic
Posted

There are two apps, one running on a Nvidia shield, and several running on fire sticks.

thanks for your help 

  • Solution
GrimReaper
Posted

That is AndroidTV client app: Settings>Startup tab, there's AutoLogoff Timeout, choose desired interval.

  • Like 1
Posted

Why not just set the app to list all the users every time it starts - that way you just select the user everytime you use the app - same as Netflix etc.

To make this work effecitevely, you need to set each user as follows :-

image.png.5a6b9596e67db238d7d8e6bf09a765d8.png

and also ensure this option is unticked :-

 

image.png.cf366f8aeebb270efb32ed785d8b19c6.png

You also need to make sure the Client settings show to list the users each time - I believe this is in Settings > Startup > Startup behaviour - and choose 'Show Login Screen'

Posted
17 hours ago, GrimReaper said:

That is AndroidTV client app: Settings>Startup tab, there's AutoLogoff Timeout, choose desired interval.

Is this a Beta only setting - as there is no such setting on my Android/FireTV app ... ?

GrimReaper
Posted (edited)
7 minutes ago, rbjtech said:

Is this a Beta only setting - as there is no such setting on my Android/FireTV app ... ?

Hm, nope, AFAIK it has always been there?

Edit: You're right, there ain't one on FireTV client. @ebr?

Edited by GrimReaper
Append
Posted (edited)
8 minutes ago, GrimReaper said:

Hm, nope, AFAIK it has always been there?

? - On FireTV, I have 4 options - Start Up behaviour, prompt for password, use custom d-pad.. and Live TV Mode - I have nothing about AutoLogoff ?

I'll check on my Shield in a sec - but I've never seen this option .. ☺️

edit - ah-ha - it's AndroidTV only, the FireTV does not have this option .. 

But tbh, I suspect the OP can use the user selection options I gave - All my clients bar the Shield use this as the user login method and it works great - quick and easy.

Edited by rbjtech
GrimReaper
Posted
1 hour ago, rbjtech said:

But tbh, I suspect the OP can use the user selection options I gave - All my clients bar the Shield use this as the user login method and it works great - quick and easy.

No, that would work only if starting app each time, if you pull it from the background it's still logged as the last user. And if you have "AutoLogoff Timeout" on x hours or Never (as I've always had it), it'll stay in the background for a long time. @ebr needs to clarify what is the default logoff timeout for ATVa app due to no selectable option.

Posted
1 hour ago, GrimReaper said:

No, that would work only if starting app each time, if you pull it from the background it's still logged as the last user. And if you have "AutoLogoff Timeout" on x hours or Never (as I've always had it), it'll stay in the background for a long time. @ebr needs to clarify what is the default logoff timeout for ATVa app due to no selectable option.

So this is a two part issue.   If the user stays logged in, then having the Auto Logout will log them out.  Great.   At this point FOLLOWING an auto logout - You will get to see the login options for all users.  Is the issue solved - no it is not.

Now if the user (his Son) starts emby - and has either the 'use last user' or 'use user X' set - then they will be in exactly the same position.  It will be the wrong account, because the OP was the last to use it - not his son ..

So - by setting the client to show all users every time - the issue is then solved. 

Lets wait for the OP to see what they want.

GrimReaper
Posted
4 minutes ago, rbjtech said:

and has either the 'use last user' or 'use user X' set

As per:

On 1/9/2022 at 12:31 PM, JuJuJurassic said:

ideally I need to log off every night forcing them to login with their account

strongly suspect OP has neither of those enabled, as remembering any would be counter-productive to desired outcome.

Posted (edited)
On 09/01/2022 at 11:31, JuJuJurassic said:

Any suggestions?

Set the "Show Login Screen" option in the ATV app that @rbjtech suggested, but remember to exit the app when finished, rather than just putting it in the background.

If you set the Auto Logoff option to it's lowest setting (one hour I think), then if you do back ground the app, it will (should) log the user out.

If you background it and it doesn't log out, then the net time your son accesses the app, it will be you logged in instead of him.

It's really simple to change users within the app, so perhaps you need to educate him as well 😀

Let us know how you get on, although I'm sure Eric will be along soon enough to put us all right 😇
 

Edited by CBers
  • Like 1
Posted
On 1/10/2022 at 6:37 AM, GrimReaper said:

You're right, there ain't one on FireTV client

That is by design.  The Fire devices crash our app when going to sleep and there is no way to stop them from going to sleep which happens after about 20 minutes.  Therefore, we log out of the app every time the device sleeps on the Amazon platform.  So no customization is possible here.

  • Like 1
  • Thanks 1
Painkiller88
Posted (edited)
13 minutes ago, ebr said:

The Fire devices crash our app when going to sleep and there is no way to stop them from going to sleep which happens after about 20 minutes.  Therefore, we log out of the app every time the device sleeps on the Amazon platform.  So no customization is possible here

There is a way to change the sleep timer. you need to connect to the Fire Devices via ADB and can then customize the sleep timer:

EG:
adb shell settings put system screen_off_timeout 14400000  

changes the screensaver time to 4 hours

 

adb shell settings put secure sleep_timeout 14400000 


This would set the sleep time to 4 hours (time needs to be set in MS)

Edited by Painkiller8818
Posted
23 minutes ago, Painkiller8818 said:

There is a way to change the sleep timer. you need to connect to the Fire Devices via ADB and can then customize the sleep timer:

Yeah, that is not reasonable for any end user so we cannot depend on it.

JuJuJurassic
Posted

Thank you both for your help, so what your basically saying is, because of the firestick going to sleep mode, you can’t implement it.

thank you for looking into it

 

Posted
6 hours ago, JuJuJurassic said:

because of the firestick going to sleep mode, you can’t implement it.

Well, that depends on what you mean by "it".  The Android TV app will automatically log off (which is what was requested here).  The limitation on the Fire stick is that you can't configure the app to NOT do that.

JuJuJurassic
Posted

On the nvidea shield, there isn’t a log on / profile option, unless I missed it, is there a way of implementing it on that?

the shield runs our main tv.

thanks 😀

Posted
2 hours ago, JuJuJurassic said:

On the nvidea shield, there isn’t a log on / profile option, unless I missed it, is there a way of implementing it on that?

the shield runs our main tv.

thanks 😀

It's in the Settings on the Startup page.
 

JuJuJurassic
Posted

I missed that, thank you very much 🙂

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...