protonscr

Fastest generic check if HMD is ready?

steamvrclosed
ValveSoftware/SteamVR-for-Linux#393 · opened 2020-10-05 by frostworx · updated 2020-10-09 · 2 comments · github
Ffrostworx 2020-10-05 github

Sorry, this is not really a Performance issue, but more a question (or a feature request at best if there's no easy option):

I'm looking for an as simple and generic as possible way to check whether a HMD is present or not.
"Generic" because I want to use it before the "Start regular game in Stereo3D VR" function in my SteamTinkerLaunch, so it is not even executed if the HMD is not present.

I found the command **/to/be/searched/SteamLibrary/path**/steamapps/common/SteamVR/bin/linux64/vrcmd
which returns VR_IsHmdPresent, so this is already pretty good, but if there is a way without having to find a binary first this would be great (checking dmesg or lsusb requires checking for multiple possible devices, which need to be hard-coded somewhere)

Ffrostworx 2020-10-05 github

vrcmd would work fine if it only would return if it is not present, it is too active though when the HMD is available, so this is no option.

Ffrostworx 2020-10-09 github

I'll just compare the steam-vr udev rules with lsusb worksforme

Nothing extracted yet.