About the Health & Safety Warning
The Health & Safety Warning appears in every Oculus Rift application, every time you start it, and has done so since SDK version 0.4.0, the first version with full DK2 support. As of SDK version 0.4.3, it reads:
HEALTH & SAFETY WARNING
Read and follow all warnings and instructions included with the Headset before use. Headset should be calibrated for each user. Not for use by children under 13. Stop use if you experience any discomfort or health reactions.
Press any key to acknowledge
This warning helps stop users from doing dumb things and shields Oculus from legal liability. It is a good idea for anyone using your headset to read and understand it. Once. You really don’t need to keep seeing it every time you launch an app, especially if you’re a developer who is launching tests on a frequent basis.
It’s made all the more annoying by the fact that it contradicts Oculus’s own Best Practices Guide:
Oculus discourages the use of traditional HUDs. Instead, we encourage developers to embed that information into the environment itself.
On top of that, it says you can press a key to dismiss it, but it also has a minimum time before it—
—okay, that’s it, time for you to die.
Disabling the warning
Note: this guide is up-to-date as of the Oculus SDK and Runtime version 0.5.0.1 beta. It may also work with later versions.
In version 0.4.3 of the SDK, Oculus blissfully added an option to disable the Health & Safety Warning, intended for use during active development. It’s documented in the Oculus Developer Guide. To activate it, follow the steps below.
Method 1 (reg file method):
- Download and extract this ZIP file. If Chrome gives you a warning, press CTRL+J to bring up your Downloads window and click either “Keep” or “Recover malicious file”. (Alternate download links: Dropbox, Seedbox)
- Execute the .reg file. Click Yes to confirm.
- Double click the Oculus icon in your tray to open Oculus Config Util, then click “Advanced”.
- Check “Disable Health and Safety Warning”. Click “I Agree”. Click Close. Click Close.
Method 2 (no download required): (adapted from this post)
- Click Start button (or press WINDOWS key), type “cmd”, right click “Command Prompt” and choose “Run as administrator”. Click “Yes”.
- Copy this command to your clipboard:
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Oculus VR, LLC\LibOVR" /v "HSWToggleEnabled" /t REG_SZ /d 1
- Right click on the Command Prompt window and do Edit→Paste. Hit ENTER.
- Go to step 3 of Method 1 above.
On 32-bit Windows the steps are the same as above except the ZIP file download in Method 1 is different:
And the command-line in Method 2 is different:
REG ADD "HKEY_LOCAL_MACHINE\Software\Oculus VR, LLC\LibOVR" /v "HSWToggleEnabled" /t REG_SZ /d 1
This is untested. Please let me know in the comments below if it works for you.
Linux, OS X
I don’t know at this time whether a similar option exists for Linux or OS X. The Developer Guide does not document any such option as far as I can tell. If you discover a way that works, please let me know in the comments below and I’ll update this post.
This a global setting in the Oculus Runtime; therefore any change to the option in the Oculus Configuration Utility should immediately take effect in all apps and in other locations like the Unity editor. It should not affect your application builds or prevent your app from qualifying for Oculus Share or for VR jams.