Htc vive driver linux

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Step by step guide to setting up HTC Vive on Ubuntu

ankurhanda/HTC-Vive-Setup-Ubuntu

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Step by step guide to setting up HTC Vive on Ubuntu

Ankur Handa and Clemens Eppner

Get the latest versin of Steam from Steam Store

Make sure you have an up-to-date NVIDIA driver (on 20th Feb 2020, we had NVIDIA driver version 430.64 installed on our Ubuntu 16.04). We installed the driver via NVIDIA-Linux-x86_64-430.64.run file we obtained from the NVIDIA website. You will need to make sure it also installs 32-bit GL libraries, so click on Yes when it prompts during the installation process.

If you do not install 32-bit GL libraries, you may get the following error

You are missing the following 32-bit libraries, and Steam may not run:libGL.so.1 

Search for SteamVR in the steam application, you should see the following image:

SteamVR search

Click on Launch to install it. Make sure you have SteamVR beta (and not linux_temp) version installed otherwise the SteamVR apps and OpenVR will not work. Now, to ensure that you install SteamVR beta, right click on the SteamVR app and click on properties.

SteamVR properties

You will see another window pop up and now click on BETAS and you can select beta from the options presented in the menu

Читайте также:  Diskinternals linux reader pro repack

SteamVR Beta

Most of the process mentioned below is from this blog

$ git clone https://github.com/ChristophHaag/openvr.git $ cd openvr $ mkdir build $ cd !$ $ cmake -DCMAKE_BUILD_TYPE=Release ../ $ make 

Now plug in the vive and set up the permissions as below:

Create a shell file to set up the variables necessary for running openvr via steamvr. On our computer the file, called run_openvr.sh looks like this:

export openvr=~/workspace/codeopenvr export steam=~/.steam export steamvr=$steam/steam/steamapps/common/SteamVR export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:\ /usr/lib/:\ /usr/lib32/:\ $openvr/lib/linux32/:\ $openvr/lib/linux64/:\ $steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/:\ $steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/:\ $steamvr/bin/linux32/:\ $steamvr/bin/linux64/:\ $steamvr/drivers/lighthouse/bin/linux32/:\ $steamvr/drivers/lighthouse/bin/linux64/ 

We also need to set up the following permissions

$ sudo vim /etc/udev/rules.d/83-hmd.rules $ echo 'SUBSYSTEM=="usb", ATTR=="0bb4", MODE="0666", GROUP="plugdev"' >> test.txt $ echo 'SUBSYSTEM=="usb", ATTR=="28de", MODE="0666", GROUP="plugdev"' >> test.txt $ sudo cp test.txt /etc/udev/rules.d/83-hmd.rules $ sudo udevadm control --reload-rules 

The file /etc/udev/rules.d/83-hmd.rules may not exist, so it needs to be created first.

source the run_openvr.sh file

Running HelloVR example with OpenVR

Now run the Steam server via

$steamvr/bin/linux64/vrserver --keepalive 

In another window, run this hellovr_opengl example

~/.steam/steam/ubuntu12_32/steam-runtime/run.sh ~/workspace/code/openvr/samples/bin/linux64/hellovr_opengl 

You should see the following images streamed in your Vive when you wear it

HelloVR view1

HelloVR view2

Running TrackingCamera example with OpenVR

To run this example, you have to enable the camera via SteamVR as shown in the gif below:

Once the camera is enabled, you should be able to play the tracking camera example via

~/.steam/steam/ubuntu12_32/steam-runtime/run.sh ~/workspace/code/openvr/samples/bin/linux64/tracked_camera_openvr_sample 

and see the following images

Tracking Camera1

Tracking Camera2

If you’d like to play these examples in python then we recommend to install this (unofficial) version of pyopenvr.

This requires Python 3.5+ and many other dependencies including pillow, pyopengl, glfw etc.

In addition, it is important to change c_void_p in this line in the pyopenvr code to c_uint32 otherwise any python example will crash with a message that might look like this:

 self.texture.handle = self.resolve_texture_id TypeError: cannot be converted to pointer 

This is also mentioned in this particular issue in the pyopenvr repository.

Make sure that the PYTHONPATH variable is set up correctly:

export PYTHONPATH=~/workspace/code/pyopenvr/src:$PYTHONPATH 

Now you should be able run the samples in python via

~/.steam/steam/ubuntu12_32/steam-runtime/run.sh python src/samples/glfw/hellovr_glfw.py 

and see the following image

HelloVR PyOpenVR

About

Step by step guide to setting up HTC Vive on Ubuntu

Источник

Htc vive driver linux

20 фев. 2019 в 2:32

Hey there. I recently had the possibility to upgrade from vive to vive pro for literally nothing. but since i have the vive pro the problems started.
my settings:
Proton:3.16-6
Distro:Linux 4.x
Kernel:4.20.3-arch1-1-ARCH
RAM:16 GB
GPU Driver:NVIDIA 415.25
GPU:NVIDIA GeForce GTX 1070
CPU:Intel Core i7-4790K @ 4.00GHz

with the vive 1 it ran all fine. i could play a ton of vr-games via proton and the few games that have native vr for linux .
now with the pro the screen freezes after a very short time in all games and the sound is distorted everywhere. in the home vr, in the native games , in proton games.

now my question: is the vive pro not yet implemented in linux steamvr or does anybody of you have a vive pro running, so you can play at least a few games without a hazzle?

Читайте также:  Линукс забыл пароль суперпользователя

Sidenote: on Windows everything works fine. it doesnt seem to be a hardware-defekt

23 фев. 2019 в 11:02

Sad to hear that the Pro version doesn’t work on linux.

You should report it on github to have better chances to get an answer:

14 мар. 2019 в 16:04

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

SteamVR driver for VivePro2 on Linux

License

CertainLach/VivePro2-Linux-Driver

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Because HTC doesn’t care about non-windows users, even if OG Vive worked just fine for them

Current implementation of driver intercepts some calls between SteamVR and common headset driver driver_lighthouse , which is used for OG Vive, and makes it work with newer Vive Pro 2

  • HMD image — standard interface (DP) used, however there are some things missing in kernel, see patches below
  • Audio output — standard interface used
  • Front facing camera — works, with minor noise/distortion, standard interface (UVC) used
  • Lighthouse power management
  • Headset, controllers, Vive tracker (tracking) — part of original driver
  • Headset/controllers firmware updates — part of original driver
  • Configuration utilities — most of reconfiguration (resolution, noise cancelation, brightness, lighthouse power management) abilities are already reverse-engineered, they just aren’t easly configurable, some GUI utility should be written
  • Focus knob overlay (Some third-party may work though). Focusing does work, but there is no visual helper.
  • Audio output is not targeted to correct device yet (You need to manually switch it every time), it should be possible to implement this feature in this driver however
  • Front facing camera noise — can be solved with some kernel tinkering (UVC driver)
  • Front facing camera distortion — distortion matrix should be submitted to SteamVR
  • Standalone driver/integration with OpenHMD/Monado — most complex parts (tracking) is already implemented in open source, only thing needed — is to port vive pro 2 specific features/tools
  • Vive Wireless Adapter — support may be implemented, i have some ideas about how it should work, however i dont have one for testing, see donate section below, first received donations will be spent on one
Читайте также:  Linux графической оболочки gnome

This driver can be built using nix package manager (it works on any distribution), build is fully reproducible, all needed dependencies will be downloaded automatically:

# Note: the #driver-proxy-release part of this command is not a comment, it's just github syntax highlighter is wrong nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#driver-proxy-release

. or using manual building instructions from here (i dont provide any guarantees about contents of this repo) https://github.com/santeri3700/vive-pro-2-on-linux#install-vive-pro-2-linux-driver-by-certainlach

. or be downloaded from patreon page, see donate section below

Latest version of driver automatically patches SteamVR, so VIVE Console no longer required to be installed

vivepro2.resolution : 0-5 , 0 by default, to make it most compatible with every hardware

Reconfigures helmet to specified resolution/framerate before startup

  • 0 — 2448×1224 90fps
  • 1 — 2448×1224 120fps
  • 2 — 3264×1632 90fps
  • 3 — 3680×1836 90fps
  • 4 — 4896×2448 90fps
  • 5 — 4896×2448 120fps

Similar to original vive console utility

vivepro2.brightness : 1-130 , 130 by default

Original vive console seems to fade from 0 to 130 on start, and then no longer touch this setting

vivepro2.noiseCancel : true/false , disabled by default

Toggle built-in microphone noise canceling

Similar option exists in vive console

  • Mark HMD as non-display (Otherwise SteamVR will not be able to occupy display) https://lore.kernel.org/linux-kernel/20220118170037.14584-1-iam@lach.pw/ — should be fixed in kernel 5.18 with another patch
  • Support type VII timings in DisplayID (VIVE reports mode in them) https://lore.kernel.org/linux-kernel/20220118215956.17229-1-iam@lach.pw/ — merged to kernel in 5.18
  • Support fixed DSC BPP rate https://lore.kernel.org/linux-kernel/20220220151940.58327-1-iam@lach.pw/, https://lore.kernel.org/linux-kernel/20220220151940.58327-2-iam@lach.pw/ — not yet merged, currently planning to propose it to 5.19, without this patch highest resolution modes will not work

All of those patches are kept up-to-date in this repo, in kernel-patches subdirectory

I recommend you to use kernel 5.17+, as there is other issues in older kernels

If you use NixOS, then you can use kernelPatches from this flake:

boot.kernelPatches = vivepro2-linux-driver.kernelPatches;

If you use arch btw, then you can use this kernel package with all required patches applied (i have not tested it, and can’t provide any guarantees about contents of this repo): https://github.com/santeri3700/vive-pro-2-on-linux

I don’t recommend using other distributions, because it will be harder, because of usage of bleeding-edge kernel, but it should work, and I will fix any issues with them (I.e I have fixed usage of this driver on ubuntu)

I dont have enough motivation making this thing work for everyone/adding features everyone wants/needs

You can, however, help me to develop this motivation, here: https://patreon.com/0lach

https://github.com/ChristophHaag for initial OpenVR guidance, which helped me to fix some issues

https://github.com/santeri3700 for writing driver/kernel build instructions here: https://github.com/santeri3700/vive-pro-2-on-linux (i don’t provide any guarantees about contents of this repo)

Testers, backers, everyone else

About

SteamVR driver for VivePro2 on Linux

Источник

Оцените статью
Adblock
detector