SteamVR-for-Linux icon indicating copy to clipboard operation
SteamVR-for-Linux copied to clipboard

[BUG] Cannot output to Vive display

Open semilin opened this issue 5 years ago • 4 comments

Describe the bug SteamVR cannot display an image to my Vive monitor.

To Reproduce I don't believe this is reproducible on most machines, but for the sake of following along with the template I will include it. Steps to reproduce the behavior:

  1. Install Ubuntu
  2. Install Nvidia graphics driver, vulkan, etc.
  3. prime-select nvidia, reboot
  4. Install steam, steamvr, update to betas
  5. Run steamvr, results in "SteamVR Fail" (307) No image is displayed to the monitor.

Expected behavior SteamVR should function correctly and display image to my Vive.

System Information (please complete the following information):

  • Distribution: Ubuntu
  • SteamVR version: 1.15.12
  • Steam client version: Latest Beta
  • Opted into Steam client beta?: Yes
  • Graphics driver version: NVIDIA 455.38:
  • Gist for SteamVR System Information: Link

Additional context I think this could be an issue with Nvidia. When running xrandr --query, the output is:

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
eDP-1-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
(unimportant laptop display info omitted)

This would make it seem as if the Vive is not plugged in. However, nvidia-xconfig --query-gpu-info results in

Number of GPUs: 1

GPU #0:
  Name      : GeForce RTX 2070 with Max-Q Design
  UUID      : GPU-c3c8b18c-939b-a1a4-f2cc-f1bbea6aeaf9
  PCI BusID : PCI:1:0:0

  Number of Display Devices: 1

  Display Device 0 (TV-4):
      EDID Name             : HTC Corporation HTC-VIVE
      Minimum HorizSync     : 1.000 kHz
      Maximum HorizSync     : 255.000 kHz
      Minimum VertRefresh   : 20 Hz
      Maximum VertRefresh   : 120 Hz
      Maximum PixelClock    : 297.000 MHz
      Maximum Width         : 2160 pixels
      Maximum Height        : 1200 pixels
      Preferred Width       : 2160 pixels
      Preferred Height      : 1200 pixels
      Preferred VertRefresh : 90 Hz

This shows that the Vive is plugged in directly to my Nvidia GPU.

In addition, if I set the prime mode to on-demand instead of nvidia, SteamVR will instead report that it is running in extended display mode rather than direct mode, and it puts the image on my laptop monitor instead of in the Vive headset. The fact that clicking the enable and restart button does not do anything is a known issue.

Note: Commenters who are also experiencing this issue are encouraged to include the "System Information" section in their replies.

semilin avatar Nov 28 '20 23:11 semilin

xrandr saying your HMD is disconnected is normal; it means that the display is off. With xrandr --verbose you can get the information you want; VR headsets have the property "non-desktop: 1"

Zamundaaa avatar Nov 30 '20 18:11 Zamundaaa

Having the same issue, SteamVR, tracking, etc works on my monitor but plugging in the headset doesn't output to it. Practically getting the same output as OP with xrandr and nvidia-xconfig.

sini-kettu avatar Mar 04 '21 21:03 sini-kettu

Having the same issue, SteamVR, tracking, etc works on my monitor but plugging in the headset doesn't output to it. Practically getting the same output as OP with xrandr and nvidia-xconfig.

It turns out the issue I was having was the fact that I would unplug my monitor to plug in my headset which didn't work, after swapping the monitor for Displayport and the headset for HDMI, everything worked fine.

sini-kettu avatar Mar 16 '21 03:03 sini-kettu

Is there any update, who is working on this? I have the same problem. No display on VIVE and I got a brand new laptop with RTX 3060 to play VR on linux. This is sooo anoying...

andi8086 avatar Feb 11 '22 20:02 andi8086