ALVR icon indicating copy to clipboard operation
ALVR copied to clipboard

Linux direct mode driver issues

Open GK-Gaming opened this issue 3 months ago • 11 comments

I don't know if it's yet too early to report issues with the linux direct mode driver but I have some things I just want to make sure are at least reported.

Description

Encoder bugs:

  • [ ] 1. The video is too dark, it's fine in the steamvr vrview on desktop but on the headset its too dark
  • [x] 2. When the encoder restarts it doesnt restart properly but crashes with:
Could not set up the encoder: vk::Device::allocateMemory: ErrorOutOfDeviceMemory. Staying idle until the next client connect.

Even when there is still at least 4GB of free vram which should be more than enough for just alvr and steamvr. Reconnecting makes it just crash again.

Other rendering bugs:

  • [ ] 3. Steamvr home looks very bugged if the overlay is closed.
  • [ ] 4. Wayvr overlay shows behind the game. (i assume. Because it stops beeing visible as soon as the game enters vr. But you can still interact with it.)

Also async mode doesnt seem to activate editing config doesnt activate it ether. Steamvr says that either the config or the direct mode driver disable it. So might be intentional. idk.

Latency is also a little higher than old method, but that might also just be because its still wip.

Environment

Hardware

CPU: AMD Ryzen 5 5600X (12) @ 4.65 GHz

GPU: AMD Radeon RX Vega 64

GPU Driver Version: Mesa 26.2.1-arch1.1

Audio: ??

Installation

ALVR Version: Latest linux-direct-mode branch (945d3cc9be65f5db86d36508d9e4044f13dbd1ef)

ALVR Settings File: Default settings but 90Hz and high foveation. Both encoder issues also occur on h264 and hevc.

SteamVR Version: 2.16.7 and 2.17.7

Install Type:

  • [ ] Packaged (exe, deb, rpm, etc)
  • [ ] Portable (zip)
  • [x] Source

OS Name and Version: Arch Linux

GK-Gaming avatar Aug 26 '26 17:08 GK-Gaming

Retesting after: https://github.com/alvr-org/ALVR/commit/21b4b5be675b50bf88620e83ecf71e15f34da8eb still has wrong colors. something with the gamma i believe, its darker than it should be.

And still the crashing on reconnect.

GK-Gaming avatar Sep 22 '26 00:09 GK-Gaming

What does the coredump say?

Vixea avatar Sep 22 '26 03:09 Vixea

On the reconnect it doesnt fully 'crash', but gives a error popup: Could not set up the encoder: vk::Device::allocateMemory: ErrorOutOfDeviceMemory. Staying idle until the next client connect. Even when there's more than 4GB vram available, more info is in the description of the issue at the top.

GK-Gaming avatar Sep 22 '26 12:09 GK-Gaming

https://github.com/alvr-org/ALVR/pull/3407 did not fix anything for me here

GK-Gaming avatar Oct 04 '26 17:10 GK-Gaming

I'll try to fix it later today it's just vega is such an odd ball GPU arch

Vixea avatar Oct 04 '26 17:10 Vixea

You can compile it yourself right?

Vixea avatar Oct 04 '26 17:10 Vixea

You can compile it yourself right?

yes

GK-Gaming avatar Oct 04 '26 18:10 GK-Gaming

vega.patch

Go ahead and try this patch

Vixea avatar Oct 05 '26 21:10 Vixea

The Image is still too dark. BUT, no more crashing on reconnect!

GK-Gaming avatar Oct 05 '26 23:10 GK-Gaming

Thanks for the info

Vixea avatar Oct 05 '26 23:10 Vixea

getting the same dark color and overlay issue on Nvidia RTX 3060. I also get on occasion violent jittering of the headtracking if theres too much latency forcing me to set the resolution really low

jurassicjordan avatar Oct 20 '26 02:10 jurassicjordan