openvr not working in Soldier container
Reproducer: vr_inittest.cpp
Build with:
g++ -o vr_inittest -Iopenvr/headers/ vr_inittest.cpp -Lopenvr/lib/linux64/ -lopenvr_api
A super simple openvr test app fails during vr::VR_Init
. With VR hardware attached and SteamVR running, it should report success but instead fails with VRInitError_Init_HmdNotFoundPresenceFailed
(0x7e). This same app reports success when run in the non-containerized Scout runtime.
Here's an strace of the failure: vr_inittest.trace
You'll see failures to call lsusb
in there, but even with that copied into $PATH
from the host, it fails in the same way.
One of the VR log files dumps:
Returning HmdNotFound because the client-side presence check failed.
which might be a clue for someone with access to SteamVR source.
Edited by Andrew Eikum