0

I'm 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 device-wide setting, this is far from ideal. iOS has idleTimerDisabled (Keep iPhone from sleeping) which is a simple one-line stay-awake type of command. I'm looking for the Oculus Go equivalent of iOS's idleTimerDisabled

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

JJ Rohrer
  • 2,671
  • 5
  • 29
  • 37

2 Answers2

1

Include

Screen.sleepTimeout = SleepTimeout.NeverSleep;

in your MonoBehaviour script if you just want keep the device awake while app is running and helmet is worn.

https://docs.unity3d.com/ScriptReference/Screen-sleepTimeout.html

  • This might be true, but I haven't been able to test this with the latest Go OS. They seem to have changed the mechanism behind going to sleep. – JJ Rohrer May 05 '19 at 18:23
  • 1
    @JJRohrer True. All of our previous projects, which weren't published in store, now have this issue unless this line is included. – Denys Kuznietsov May 07 '19 at 20:31
  • 1
    I've tested on latest Go OS and it seems to be getting ignored. I'm thinking the OS is making its own decision based on user movement. – JJ Rohrer May 08 '19 at 21:12
1

As of May 2019, it is not possible to keep the Oculus Go awake. Oculus wrote to me

Unfortunately, this doesn't look to be functionality (disabling sleep when there is no movement) that is available at this time.

JJ Rohrer
  • 2,671
  • 5
  • 29
  • 37
  • 1
    After some discussion with Oculus, I've submitted a bug report/feature request. So, let's hope this gets addressed in a future release. – JJ Rohrer Jun 11 '19 at 17:07
  • 1
    After Oculus Connect 6, their engineers confirmed that no-sleep just is not possible. – JJ Rohrer Dec 06 '19 at 12:40