Skip to content

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

License

Notifications You must be signed in to change notification settings

marcopompili/oculus-rift-direct-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages