Forum Discussion

SimultaNeal's avatar
2 months ago

Device goes to sleep in 1 minute

Ever since I updated to v78, my devices go to sleep in 1 minute.  I'm on v79 now and this persists.  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?

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

 

4 Replies

  • I have the "power" settings so that it is supposed to sleep in 4 hours

    I'm on v79.1034 and the Display off and Sleep Mode settings on my Quest 3 are working as expected. What have you set your "Display off" setting to? It sounds like the headset is behaving like it is set to 1 minute, so you need to double-check that setting. Either that, or the tape over your proximity sensor isn't doing its job.

  • "Display off" is set to 2 hours.  "Sleep mode" is set to 4 hours.  I still turns off precisely 60 seconds after I set it down.  I also choose "disable proximity sensor -> 8 hours" in MQDH and I have tape over the proximity sensor.  It's the same tape that has been there for a year and always did the job just fine, but even without tape, disabling the proximity sensor is supposed to work, correct?

    • steve_40's avatar
      steve_40
      Trustee

      It sounds like your "Display off" setting isn't reading the correct values for some reason. It works on mine, so I don't think it is a universal bug. You might need to try a factory reset or reinstall v79 using the Meta Software Update tool.

      • SimultaNeal's avatar
        SimultaNeal
        Protege

        I factory reset my device extremely frequently because it regularly forgets that my PC is authorized for ADB and that's the only way I've found to fix it.  It doesn't help.

→ Find helpful resources to begin your development journey in Getting Started

→ Get the latest information about HorizonOS development in News & Announcements.

→ Access Start program mentor videos and share knowledge, tutorials, and videos in Community Resources.

→ Get support or provide help in Questions & Discussions.

→ Show off your work in What I’m Building to get feedback and find playtesters.

→ Looking for documentation?  Developer Docs

→ Looking for account support?  Support Center

→ Looking for the previous forum?  Forum Archive

→ Looking to join the Start program? Apply here.

 

Recent Discussions