ALVR icon indicating copy to clipboard operation
ALVR copied to clipboard

SteamVR Sandboxing, Black screen on headset

Open The-personified-devil opened this issue 1 year ago • 5 comments

This issue describes the black issue caused by SteamVR sandboxing. Other causes of the black screen issue are also covered on the troubleshooting page though. Reference workaround for this issue: https://github.com/alvr-org/ALVR/wiki/Linux-Troubleshooting

The black screen issue is caused by a component of SteamVR called vrcompositor running in the Steam Linux Runtime Scout (SLR 1) sandbox, which we can't compile our vulkan layer for. The workaround solves this by partly disabling the sandbox. The workaround is always needed to fix this issue. This is a known issue, please don't report it again.

NOTE: The vulkan layer is needed because SteamVR doesn't expose internal information related to rendering, so the vulkan layer intercepts it for us. An api to solve this called direct mode has been exposed by SteamVR, but it has a bug that makes it unusable currently. Once a fix is shipped we'll use this api, rendering the workaround redundant.

The-personified-devil avatar Jul 10 '24 04:07 The-personified-devil

Would this happen to affect Windows over USB, particularly a few days ago and with SteamVR beta?

I have a Quest 2 and with ALVR (sideloaded nightly or App Lab), using wifi as-is was fine, but after the USB forwarding commands and trying USB, ALVR in the headset would render nothing (black screen).

Edit: Yep I forgot to set TCP; that solved that fine

Espionage724 avatar Jul 10 '24 17:07 Espionage724

Nope its specific to Linux

Vixea avatar Jul 10 '24 17:07 Vixea

@Espionage724 that sounds like you forgot to set the stream to tcp

The-personified-devil avatar Jul 10 '24 18:07 The-personified-devil

UPD: Technically, Valve have fixed API to make direct mode possible on linux and avoid doing vulkan layer altogether, but no one fully tested it and someone needs to port alvr to direct mode api on linux now #2880 related

Meister1593 avatar Jul 05 '25 17:07 Meister1593

I've spent half my day today setting op this ALVR stuff, it's been great, everything looks so much better, but Steamvr keeps crashing after I play for a bit, constantly, I'm on Windows using a wireless connection to a quest 2, I'd make a new issue, but this seems very similar, cause whenever I try to reopen ALVR it just shows a grey screen till I restart SteamVR.

Wild-Raven avatar Aug 31 '25 23:08 Wild-Raven