Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 2.01 KB

README.md

File metadata and controls

56 lines (38 loc) · 2.01 KB

oculus-rift-direct-mode

My X.Org configuration and scripts used to emulate direct mode on Linux.

I've been testing the Rift on Linux for a while and I came out with a (almost) convenient way of emulating the Direct Mode on Linux.

Configuration

The folder xorg.conf.d contains a modular X.Org configuration, you will probably need to change some entries in 30-monitor.conf to make this work on your setup, but it gives an idea on how X.Org should treat the Rift as another Screen.

Here's my article about configuring the Rift on Linux

Using the scripts

Use the rift_switch command using on or off to switch the Rift state:

rift_switch on

Use the rift_run command to run a Rift application directly on the Rift, for example:

rift_run ./Rift_App

rift_run will check the Rift state and turn it on using the rift_switch command, then launch the application on the Rift's X.Org Screen.

If you quit the Rift application using CTRL+C, the script will handle that and switch off the Rift.

Known Issues

  • With the NVidia proprietary driver On MATE, Xfce and LXDE if you are using multiple displays the desktop area will cover both the displays resulting in a huge desktop size spanning on both the two monitors.

  • As noted above use this configuration only on Gnome 3 or KDE, if you are using multiple displays.

  • On Gnome 3 when switching on/off the Rift some screens may get corrupted, to restore them press ALT+F2 and put r as a command to refresh the Gnome desktop, the image should get normal again.

Notes