Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
SimultaNeal's avatar
4 months ago

Device goes to sleep in 1 minute

Since my latest update (v78), my devices go to sleep in 1 minute.  I have the "power" settings so that it is supposed to sleep in 4 hours, but they seem to have no effect.  I also have my presence sensor disabled (as well as having tape over it).

This is driving me crazy because if I set my headset down, I have 60 seconds to debug before it turns off and suspends my title, then when I pick it up, I have to choose a profile again before I can continue.  

Meta: how do I disable this?

1 Reply

Replies have been turned off for this discussion
  • To add to this, I used to be able to keep my devices awake and running my app for HOURS, through many iterations of debugging.  I try to drive my app through automation as much as possible, and when I am debugging multiplayer, I would be in the habit of running the app on both headsets via ADB and driving most of the interactions through APIs so I don't have to juggle headsets.  This is now impossible because in 60 seconds, the device goes to sleep.  I'm desperate for a setting that fixes this.

    Here is what I see after 60 seconds:

    07-23 18:33:23.012 26999 26999 I OpenXR  : nativeOnActivityPaused: com.xxx/com.unity3d.player.UnityPlayerActivity
    07-23 18:33:23.030 26999 27020 I Unity   : [XR] [517062613424] [18:33:23.030][Info   ] OpenXRSession::HandleSessionStateChangedEvent: state XR_SESSION_STATE_FOCUSED->XR_SESSION_STATE_VISIBLE session=3 time=4042000107552
    07-23 18:33:23.033 26999 27020 I Unity   : [XR] [517062613424] [18:33:23.033][Info   ] OpenXRSession::HandleSessionStateChangedEvent: state XR_SESSION_STATE_VISIBLE->XR_SESSION_STATE_SYNCHRONIZED session=3 time=4042003440209
    07-23 18:33:23.033 26999 27020 I Unity   : [XR] [517062613424] [18:33:23.033][Info   ] OpenXRSession::HandleSessionStateChangedEvent: state XR_SESSION_STATE_SYNCHRONIZED->XR_SESSION_STATE_STOPPING session=3 time=4042003630209
    07-23 18:33:23.188 26999 27020 I Unity   : [XR] [517062613424] [18:33:23.188][Info   ] OpenXRSession::HandleSessionStateChangedEvent: state XR_SESSION_STATE_STOPPING->XR_SESSION_STATE_IDLE session=3 time=4042171927934
    07-23 18:33:23.192 26999 27091 I Unity   : [XR] [511524841904] [18:33:23.192][Error  ] xrDestroySwapchain: XR_ERROR_HANDLE_INVALID
    07-23 18:33:23.192 26999 27091 I Unity   : [XR] [511524841904] [18:33:23.192][Error  ] xrDestroySwapchain: XR_ERROR_HANDLE_INVALID
    07-23 18:33:23.192 26999 27091 I Unity   : [XR] [511524841904] [18:33:23.192][Error  ] xrDestroySwapchain: XR_ERROR_HANDLE_INVALID