protonscr

[BUG] "SteamVR Fail" (306) as normal user, launches but can't play anything with sudo

steamvropen bug
ValveSoftware/SteamVR-for-Linux#558 · opened 2023-01-17 by 64-Tesseract · updated 2023-02-08 · 0 comments · github
664-Tesseract 2023-01-17 github

Describe the bug
Launching SteamVR through the Steam client as a normal user shows the error A key component of SteamVR isn't working (306). Nothing shows up on the headset, and trying to restart the headset (not SteamVR) then doesn't detect the headset (106) and disables mouse input, so I can't do further tests.

I've only had some luck by running SteamVR with sudo, where despite showing the errors SteamVR failed to initialize for unknown reasons (Error: Installation Corrupt (101)), the headset starts tracking and outputting video.
Interestingly, it loads me into the "home" environment, but other VR apps/games can't seem to interact with the headset - the windows load fine most of the time, but moving the headset doesn't respond in the game, and the headset itself only displays the "empty" environment.
Also, the "home" environment says I don't have any games installed, and I can't open the dashboard, there's not even a blur or the opening sound effect when I try. After pressing the dashboard button, a simple Cannot run as root user window pops up, which probably explains that issue.

To Reproduce

  1. Open Steam
  2. Install SteamVR and run the setcap command to finish setup manually
  3. Start SteamVR and watch it fail
  4. cd to the Steam library
  5. chown root of SteamVR
  6. Run sudo -E ./SteamVR/bin/vrstartup.sh
  7. Launch a game, through Steam or with sudo and observe as nothing happens

Expected behavior
I should be able to use SteamVR as a regular user. Apps being able to access the headset when SteamVR is started with sudo is probably unintended, but it's the only hope I have of playing VR games at the moment.

System Information (please complete the following information):

Screenshots
image

Additional context
I suspect all this is just a permissions issue. Looking through my log, I found the infamous Unable to connect to pipe errno=111, but the solution of installing missing libraries that I read in other issues doesn't make sense to me, since it works fine with sudo...

Programs not being able to interact with sudo-started SteamVR probably makes sense, since user-mode processes probably shouldn't be interacting with root processes. I was only trying to run games through it because nothing works at all as a normal user, and hopefully everything else will work as it should after fixing the normal user problem.

Nothing extracted yet.