Oculus Go: How to keep awake while still in app — Oculus
Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

Oculus Go: How to keep awake while still in app

JJBigThoughtsJJBigThoughts Posts: 4 Oculus Start Member
I working on an Oculus Go app, using Unity, where the user is literally expected to sleep while using the app and with the headset still on their head.  I seem to be running into the problem where the Oculus Go goes into power save mode because of inactivity.  Presumably, the user isn't moving enough when they are in a deep sleep.  

Although I've included instructions for the user on how to disable sleep as a system wide setting, this is far from ideal.  On iOS, it is a simple one-line stay-awake type of command.

Does anyone have any hints on how to keep the Oculus Go from turning off?

Just to be clear, this stay-awake behavior should only happen while the user is wearing the headset and using the this app, and only this app.  If the user takes off the headset, normal turn-off behavior should be immediately restored.  

Thanks in advance,
JJ

Answers

  • JJBigThoughtsJJBigThoughts Posts: 4 Oculus Start Member
    Nudging - I'm still hoping somebody knows how to keep a Go from going to sleep if the user is too still (like when they are sleeping).
  • JJBigThoughtsJJBigThoughts Posts: 4 Oculus Start Member
    Nudging - I'm still hoping somebody knows how to keep a Go from going to sleep if the user is too still (like when they are sleeping).
  • JacksonGordonJacksonGordon Posts: 138
    Art3mis
    You might try putting a print line in the Update() function, so it is constantly "doing something" each frame.  Not sure on a specific sleep related command though.
  • JJBigThoughtsJJBigThoughts Posts: 4 Oculus Start Member
    Thanks for the idea, but the app does do stuff frequently, at least once a second. The problem seems to be when the user doesn't move.

    iOS has this:

     [UIApplication sharedApplication].idleTimerDisabled = YES;

    I'm looking for the equivalent. I would, of course, re-enable it then the headset was unmounted.  
Sign In or Register to comment.