Pimax P3C HMDs#

This driver adds support for the Crystal Light, Crystal Super, Dream Air, and Dream Air SE

Setup#

Kernel patches#

A few kernel patches are required. One to mark the display as non-desktop (can also be manually done without a patch on Xorg) and one to make the USB HID always pull the headset so it doesnt continously reinitialize (which causes bugs such as input device issues)

Alternatively, these patches are also available in the linux-bsbAUR kernel. You can install it using an AUR helper like yay or paru:

MAKEFLAGS="--jobs=$(nproc)" yay -S linux-bsb linux-bsb-headers

udev rules#

To allow Monado access to the Pimax HID, we have to make udev rules. Run this script as your regular user, not root.

export udev_group=$(groups | tr ' ' '\n' | grep -E "$(whoami)"'|wheel|sudo|adm|admin|video|plugdev' | head -n 1)
bash -c 'sudo tee "/etc/udev/rules.d/99-pimax-p3c.rules" > /dev/null <<EOF
SUBSYSTEM=="usb", ATTR{idVendor}=="34a4", MODE="0660", GROUP="${udev_group}"
KERNEL=="hidraw*", ATTRS{idVendor}=="34a4", MODE="0660", GROUP="${udev_group}"
SUBSYSTEM=="usb", ATTR{idVendor}=="2104", MODE="0660", GROUP="${udev_group}"
KERNEL=="hidraw*", ATTRS{idVendor}=="2104", MODE="0660", GROUP="${udev_group}"
EOF'

sudo udevadm control --reload && sudo udevadm trigger

Device and controller configs#

The Device and controller configs have been extracted directly from Pimax Play. the configs are available at pimax‑configs

Monado#

There are some optional dependencies that are required for the pimax-p3c branch to build.

sudo pacman -Syu corrosion eigen ceres-solver
sudo dnf install corrosion eigen3-devel ceres-solver
sudo apt install corrosion libeigen3-dev libceres-dev

Use Monado from the branch pimax-p3c from the repository https://gitlab.freedesktop.org/ultradev/monado. Make sure to use the lighthouse driver steamvr_lh.

At this point, you should have a working headset.

Refresh Rate#

Determining Current and Supported Display Modes#

If you wish to change the refresh rate on supported headsets, add these environment variables to Monado (or to your Envision device profile) to find the correct desired mode.

XRT_COMPOSITOR_LOG=debug
XRT_COMPOSITOR_PRINT_MODES=true

The log should output all available modes for your headset. To change modes, see the next section, which also has includes the default modes on most Pimax headsets.

Changing Refresh Rate#

Set the following environment variables through the Envision Preferences (if using the system profile), in the profile editor (if using development profiles), or in the environment before starting Monado:

  • 72 Hz: XRT_COMPOSITOR_DESIRED_MODE=0 PIMAX_REFRESH_HZ=72
  • 90 Hz: XRT_COMPOSITOR_DESIRED_MODE=1 PIMAX_REFRESH_HZ=90
  • 120 Hz: XRT_COMPOSITOR_DESIRED_MODE=2 PIMAX_REFRESH_HZ=120
⚠️ Warning

120 Hz is for the Crystal Light only, attempting to use it on other headsets will result in the headsets refusing to turn on until you remove it.

Using Volume buttons#

Change the Monado branch to pimax-p3c-monado-rust and download the latest development (git) version of WayVR.