# Set EnableHMD=false freeze Oculus for about 10 seconds

**URL:** <https://forums.unrealengine.com/t/set-enablehmd-false-freeze-oculus-for-about-10-seconds/603129>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [July 12, 2022, 12:56pm UTC](https://forums.unrealengine.com/t/set-enablehmd-false-freeze-oculus-for-about-10-seconds/603129 "2022-07-12T12:56:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NicolasNucifora](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nicolasnucifora/32/570281_2.png) [@NicolasNucifora](https://forums.unrealengine.com/u/NicolasNucifora)\
**Post date:** [July 12, 2022, 12:56pm UTC](https://forums.unrealengine.com/t/set-enablehmd-false-freeze-oculus-for-about-10-seconds/603129/1 "2022-07-12T12:56:05Z")

</div>

Hi guys,

I’m developing a VR game using Oculus Quest 2. In this project there are two users: one user will use PC to select minigames that the second user will play; the second user will play the minigame using Quest 2.

The game has a main menu where you can select from PC the mini game you want to play and set some parameters. When you press “Start”, the minigame start with EnableHMD=true so you can play it using the headset.

At any time, you can quit the minigame and return to main menu setting EnableHMD=false so you can use PC again.

The problem is when the Oculus is attached and I set EnableHMD=false. The Oculus start a loading (with hourglass and distorted images) for about 10 seconds and then the main menu appears on PC and Quest 2 returns to Oculus Dashboard.

Is there a way to avoid that Oculus get stuck after EnableHMD=false? Or is this normal?

Thank you!
