Skip to content

[BUG] VR Compositor displays SteamVR on Laptop Screen #496

Description

@shaunblyde

Describe the bug
I am running an all-AMD laptop (Asus G513QY) and have tried many troubleshooting suggestions, but cannot get SteamVR to display on my Valve Index, VRCompositor always shows on my laptop display instead. There is no issue with movement of the headset and controllers as this can be demonstrated as functional within the display of VRCompositor.

I am currently using DRI_PRIME=1 VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.i686.json:/usr/share/vulkan/icd.d/radeon_icd.x86_64.json %command% as Launch Options within Steam, and running X11.

It works fine on Windows, so there is no hardware issue, they USB-C port I am using (to DisplayPort adapter) is directly connected to the dGPU.

I suspect SteamVR is not loading using the dGPU (despite my best efforts with Launch Options) as there is a line in the logs (see below) referencing the AMD RADV RENOIR, which I believe is the iGPU. My understanding is that this would also explain the Failed to acquire xlib display error.

SteamVR also wants to select 90Hz as the operating frequency, and I would like it to run at 144Hz. I cannot currently change this, but perhaps it will become possible once the display issue is resolved.

Thank you for the assistance.

To Reproduce
Steps to reproduce the behavior:

  1. Create '/etc/X11/xorg.conf.d/10-steamvr.conf' with the below config.
    Section "Monitor" Identifier "DisplayPort-1-0" Option "PreferredMode" "2880x1600" Modeline "2880x1600_120.00" 827.00 2880 3128 3448 4016 1600 1603 1613 1717 -hsync +vsync Modeline "2880x1600_100.00" 678.50 2880 3128 3440 4000 1600 1603 1613 1697 -hsync +vsync Modeline "2880x1600_90.00" 607.00 2880 3128 3440 4000 1600 1603 1613 1687 -hsync +vsync EndSection
  2. Open 'Steam'
  3. Set 'Launch Options' as DRI_PRIME=1 VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.i686.json:/usr/share/vulkan/icd.d/radeon_icd.x86_64.json %command%
  4. Run 'SteamVR'

Expected behavior
I expect SteamVR to use my Valve Index as the display, rather than open VRCompositor on my laptop display.

System Information (please complete the following information):

Additional context
vrcompositor.txt logs below.

Mon Feb 14 2022 20:07:09.506670 - vrcompositor 1.21.8 startup with PID=45359, config=/home/user/.local/share/Steam/config, runtime=/home/user/.local/share/Steam/steamapps/common/SteamVR
Mon Feb 14 2022 20:07:09.506689 - VR compositor 1.21.8 (v1644369508) Mixed starting up
Mon Feb 14 2022 20:07:09.522167 - CIPCPipe::ConnectPipe(SteamVR_Namespace) attempting connect to steamvr:SteamVR_Namespace
Mon Feb 14 2022 20:07:09.522192 - CSharedResourceNamespaceClient::Init(): received namespace data 45295
Mon Feb 14 2022 20:07:09.522205 - CIPCPipe::CreatePipe(VR_CompositorPipe_45295) bound to steamvr:VR_CompositorPipe_45295
Mon Feb 14 2022 20:07:09.522638 - Set fd limit to: 524288
Mon Feb 14 2022 20:07:09.523105 - Skipping external driver /usr/share/steamvr-monado because it is not a directory
Mon Feb 14 2022 20:07:09.523118 - Skipping external driver /home/user/monado/build/steamvr-monado because it is not a directory
Mon Feb 14 2022 20:07:09.523126 - Skipping external driver /home/user/.local/share/Steam/steamapps/common/MixedRealityVRDriver because it is not a directory
Mon Feb 14 2022 20:07:09.523183 - [Settings] Load Default Json Settings from /home/user/.local/share/Steam/steamapps/common/SteamVR/drivers/htc/resources/settings/default.vrsettings
Mon Feb 14 2022 20:07:09.523211 - [Settings] Load Default Json Settings from /home/user/.local/share/Steam/steamapps/common/SteamVR/drivers/lighthouse/resources/settings/default.vrsettings
Mon Feb 14 2022 20:07:09.523237 - [Settings] Load Default Json Settings from /home/user/.local/share/Steam/steamapps/common/SteamVR/drivers/null/resources/settings/default.vrsettings
Mon Feb 14 2022 20:07:09.523341 - [Settings] Load Default Json Settings from /home/user/.local/share/Steam/steamapps/common/SteamVR/resources/settings/default.vrsettings
Mon Feb 14 2022 20:07:09.523562 - [Settings] Load Json Settings from /home/user/.local/share/Steam/config/steamvr.vrsettings
Mon Feb 14 2022 20:07:09.523999 - Events created
Mon Feb 14 2022 20:07:09.524207 - Found bad mirror window settings:
Mon Feb 14 2022 20:07:09.524220 - Creating CHmdWindowSDL!
Mon Feb 14 2022 20:07:09.568509 - Instance layers available:
Mon Feb 14 2022 20:07:09.568544 - - VK_LAYER_VALVE_steam_overlay_32, version 4202632
Mon Feb 14 2022 20:07:09.568553 - - VK_LAYER_VALVE_steam_overlay_64, version 4202632
Mon Feb 14 2022 20:07:09.568561 - - VK_LAYER_VALVE_steam_fossilize_32, version 4202632
Mon Feb 14 2022 20:07:09.568567 - - VK_LAYER_VALVE_steam_fossilize_64, version 4202632
Mon Feb 14 2022 20:07:09.568572 - - VK_LAYER_MANGOHUD_overlay, version 4202631
Mon Feb 14 2022 20:07:09.568578 - - VK_LAYER_MANGOHUD_overlay, version 4202631
Mon Feb 14 2022 20:07:09.571549 - Instance extensions available:
Mon Feb 14 2022 20:07:09.571572 - - VK_KHR_device_group_creation, version 1
Mon Feb 14 2022 20:07:09.571581 - - VK_KHR_display, version 23
Mon Feb 14 2022 20:07:09.571587 - - VK_KHR_external_fence_capabilities, version 1
Mon Feb 14 2022 20:07:09.571592 - - VK_KHR_external_memory_capabilities, version 1
Mon Feb 14 2022 20:07:09.571598 - - VK_KHR_external_semaphore_capabilities, version 1
Mon Feb 14 2022 20:07:09.571603 - - VK_KHR_get_display_properties2, version 1
Mon Feb 14 2022 20:07:09.571609 - - VK_KHR_get_physical_device_properties2, version 2
Mon Feb 14 2022 20:07:09.571614 - - VK_KHR_get_surface_capabilities2, version 1
Mon Feb 14 2022 20:07:09.571620 - - VK_KHR_surface, version 25
Mon Feb 14 2022 20:07:09.571625 - - VK_KHR_surface_protected_capabilities, version 1
Mon Feb 14 2022 20:07:09.571631 - - VK_KHR_wayland_surface, version 6
Mon Feb 14 2022 20:07:09.571637 - - VK_KHR_xcb_surface, version 6
Mon Feb 14 2022 20:07:09.571643 - - VK_KHR_xlib_surface, version 6
Mon Feb 14 2022 20:07:09.571648 - - VK_EXT_acquire_drm_display, version 1
Mon Feb 14 2022 20:07:09.571653 - - VK_EXT_acquire_xlib_display, version 1
Mon Feb 14 2022 20:07:09.571659 - - VK_EXT_debug_report, version 10
Mon Feb 14 2022 20:07:09.571665 - - VK_EXT_direct_mode_display, version 1
Mon Feb 14 2022 20:07:09.571670 - - VK_EXT_display_surface_counter, version 1
Mon Feb 14 2022 20:07:09.571676 - - VK_EXT_debug_utils, version 2
Mon Feb 14 2022 20:07:09.571683 - Direct mode features: present
Mon Feb 14 2022 20:07:09.571700 - Requesting 9 instance extensions:
Mon Feb 14 2022 20:07:09.571706 - - VK_KHR_surface
Mon Feb 14 2022 20:07:09.571712 - - VK_KHR_xcb_surface
Mon Feb 14 2022 20:07:09.571718 - - VK_KHR_display
Mon Feb 14 2022 20:07:09.571723 - - VK_EXT_direct_mode_display
Mon Feb 14 2022 20:07:09.571729 - - VK_EXT_acquire_xlib_display
Mon Feb 14 2022 20:07:09.571734 - - VK_EXT_display_surface_counter
Mon Feb 14 2022 20:07:09.571740 - - VK_KHR_external_memory_capabilities
Mon Feb 14 2022 20:07:09.571745 - - VK_KHR_external_semaphore_capabilities
Mon Feb 14 2022 20:07:09.571751 - - VK_KHR_get_physical_device_properties2
Mon Feb 14 2022 20:07:09.575039 - HMD deviceUUID is 800000000
Mon Feb 14 2022 20:07:09.575058 - Looking for direct display through RandR
Mon Feb 14 2022 20:07:09.575068 - - Root 0x6d6
Mon Feb 14 2022 20:07:09.580448 - - Output 0x52 - 13 modes, 2 preferred
Mon Feb 14 2022 20:07:09.580462 - - Mode 0 0x55 2560x1440 (looking for 2880x1600)
Mon Feb 14 2022 20:07:09.580471 - - Mode 1 0x56 2560x1440 (looking for 2880x1600)
Mon Feb 14 2022 20:07:09.580496 - - Output 0x53 - 0 modes, 0 preferred
Mon Feb 14 2022 20:07:09.580518 - - Output 0x86 - 4 modes, 1 preferred
Mon Feb 14 2022 20:07:09.580528 - - Mode 0 0x88 2880x1600 (looking for 2880x1600)
Mon Feb 14 2022 20:07:09.580535 - - Found matching output 134
Mon Feb 14 2022 20:07:09.580543 - Found candidate direct display as RandR output 0x86
Mon Feb 14 2022 20:07:09.591380 - Tried to find direct display through RandR: 0x557e72341880
Mon Feb 14 2022 20:07:09.591401 - Trying to match desired rate of 90.000000Hz.
Mon Feb 14 2022 20:07:09.591410 - 4 modes on display:
Mon Feb 14 2022 20:07:09.591421 - - 0: 2880x1600@144.000000Hz
Mon Feb 14 2022 20:07:09.591431 - - 1: 2880x1600@119.934006Hz
Mon Feb 14 2022 20:07:09.591440 - - 2: 2880x1600@99.956001Hz
Mon Feb 14 2022 20:07:09.591448 - - 3: 2880x1600@89.953003Hz
Mon Feb 14 2022 20:07:09.591456 - Selected mode 3.
Mon Feb 14 2022 20:07:09.602449 - Failed to acquire xlib display
Mon Feb 14 2022 20:07:09.602475 - CHmdWindowSDL: Failed to create direct mode surface
Mon Feb 14 2022 20:07:09.602860 - Requesting 10 device extensions:
Mon Feb 14 2022 20:07:09.602871 - - VK_KHR_swapchain
Mon Feb 14 2022 20:07:09.602881 - - VK_KHR_maintenance1
Mon Feb 14 2022 20:07:09.602891 - - VK_KHR_dedicated_allocation
Mon Feb 14 2022 20:07:09.602899 - - VK_KHR_get_memory_requirements2
Mon Feb 14 2022 20:07:09.602906 - - VK_KHR_external_memory
Mon Feb 14 2022 20:07:09.602914 - - VK_KHR_external_semaphore
Mon Feb 14 2022 20:07:09.602921 - - VK_EXT_display_control
Mon Feb 14 2022 20:07:09.602928 - - VK_KHR_external_memory_fd
Mon Feb 14 2022 20:07:09.602936 - - VK_KHR_external_semaphore_fd
Mon Feb 14 2022 20:07:09.602943 - - VK_EXT_global_priority
Mon Feb 14 2022 20:07:09.602951 - Global priority query enabled: 1
Mon Feb 14 2022 20:07:09.602958 - Attempting to enable async support...
Mon Feb 14 2022 20:07:09.602966 - Enabling async support!
Mon Feb 14 2022 20:07:09.613271 - m_pVkInstance : 0x557e72352130
Mon Feb 14 2022 20:07:09.613292 - m_pVkPhysicalDevice : 0x557e72358000
Mon Feb 14 2022 20:07:09.613301 - m_pVkDevice : 0x557e7256e230
Mon Feb 14 2022 20:07:09.613308 - m_pVkGraphicsQueue : 0x557e72123490
Mon Feb 14 2022 20:07:09.613314 - m_pVkComputeQueue : 0x557e7233fc30
Mon Feb 14 2022 20:07:09.619156 - HMD swapchain mode:1 count:4
Mon Feb 14 2022 20:07:09.633372 - Direct mode: disabled
Mon Feb 14 2022 20:07:09.633644 - Mirror swapchain mode:0 count:4
Mon Feb 14 2022 20:07:09.645454 - CGraphicsDevice Init...
Mon Feb 14 2022 20:07:09.645753 - Headset display is on desktop
Mon Feb 14 2022 20:07:09.645768 - Initializing timing resources
Mon Feb 14 2022 20:07:09.645823 - Using Vulkan Renderer
Mon Feb 14 2022 20:07:09.645855 - Initializing CVulkanVRRenderer
Mon Feb 14 2022 20:07:09.645874 - Debug markers: disabled, missing extension support. Is the Renderdoc layer enabled?
Mon Feb 14 2022 20:07:09.653643 - Initialized Vulkan transfer ring buffer, mapped at offset 0x0x7fe3d8000000.
Mon Feb 14 2022 20:07:09.653909 - Updated HMD Prop_DisplayFrequency_Float to 90.000000
Mon Feb 14 2022 20:07:09.653937 - ****************************************** Begin GPU speed ******************************************
Mon Feb 14 2022 20:07:09.653950 - GPU Vendor: "AMD RADV RENOIR" GPU Driver: "88092677"
Mon Feb 14 2022 20:07:09.654140 - Initializing CVulkanVRRenderer
Mon Feb 14 2022 20:07:09.654165 - Debug markers: disabled, missing extension support. Is the Renderdoc layer enabled?
Mon Feb 14 2022 20:07:09.656041 - Initialized Vulkan transfer ring buffer, mapped at offset 0x0x7fe3c8000000.
Mon Feb 14 2022 20:07:09.778351 - MeasureGpuMegaPixelsPerSecond(0): Returning 142 MP/sec. Total CPU time 0.12 seconds.
Mon Feb 14 2022 20:07:09.819071 - GPU speed from average of 4 median samples: 138
Mon Feb 14 2022 20:07:09.819467 - ******************************************* End GPU speed *******************************************
Mon Feb 14 2022 20:07:09.819705 - HMD driver recommended: 2016x2240 90.0Hz HiddenArea(24.88%) = 610 MP/sec
Mon Feb 14 2022 20:07:09.819717 - GPU speed being set at first generation HMD resolution 382 MP/sec
Mon Feb 14 2022 20:07:09.819725 - Raw ideal render target scale = 0.63
Mon Feb 14 2022 20:07:09.819791 - New result of GetRecommendedRenderTargetSize for current app: 1584x1764
Mon Feb 14 2022 20:07:09.819804 - Creating samplers
Mon Feb 14 2022 20:07:09.819838 - Creating util resources
Mon Feb 14 2022 20:07:09.819983 - Creating/Updating distortion surfaces (mesh resolution 49)
Mon Feb 14 2022 20:07:09.840127 - Warp mesh (left eye) covers 81.99% of its viewport (shrink wrap saved 1.88%)
Mon Feb 14 2022 20:07:09.965405 - Warp mesh (right eye) covers 81.94% of its viewport (shrink wrap saved 1.89%)
Mon Feb 14 2022 20:07:10.619476 - Creating constant buffers
Mon Feb 14 2022 20:07:10.620110 - Creating systemlayer textures (w=1584,h=1764)
Mon Feb 14 2022 20:07:10.623537 - Initializing camera
Mon Feb 14 2022 20:07:10.623566 - Tracked Camera: Unexpected or not-specified number of cameras (propertyError=0, 0).
Mon Feb 14 2022 20:07:10.623574 - D3D11 Camera Initialization failure.
Mon Feb 14 2022 20:07:10.623612 - Done initializing CGraphicsDevice resources
Mon Feb 14 2022 20:07:10.623624 - Loading MC resources
Mon Feb 14 2022 20:07:10.623763 - Distort initialized
Mon Feb 14 2022 20:07:10.624499 - Loading reflection skybox texture async '/home/user/.local/share/Steam/steamapps/common/SteamVR/resources/reflections/dash>
Mon Feb 14 2022 20:07:10.627038 - Set thread 0x7fe404f62640 priority to: -15
Mon Feb 14 2022 20:07:10.627105 - External connection from /home/user/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrstartup 45204
Mon Feb 14 2022 20:07:10.627380 - Set thread 0x7fe4685f6640 priority to: 15
Mon Feb 14 2022 20:07:10.627483 - Compositor render thread started
Mon Feb 14 2022 20:07:10.627503 - Set thread 0x7fe4686f7640 priority to: 15
Mon Feb 14 2022 20:07:10.627526 - Startup Complete (1.104877 seconds)
Mon Feb 14 2022 20:07:10.627539 - Not starting NewFrameHandler thread on Linux
Mon Feb 14 2022 20:07:10.628120 - Clearing dashboard transform because chaperone universe has changed
Mon Feb 14 2022 20:07:10.785393 - External connection from /home/user/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrdashboard 45421
Mon Feb 14 2022 20:07:11.221820 - External connection from /home/user/.local/share/Steam/steamapps/common/SteamVR/bin/vrwebhelper/linux64/vrwebhelper 45424
Mon Feb 14 2022 20:07:11.510183 - External connection from /home/user/.local/share/Steam/steamapps/common/SteamVR/bin/vrwebhelper/linux64/vrwebhelper 45714
Mon Feb 14 2022 20:07:11.526416 - External connection from /home/user/.local/share/Steam/steamapps/common/SteamVR/bin/vrwebhelper/linux64/vrwebhelper 45721
Mon Feb 14 2022 20:07:11.558935 - External connection from /home/user/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrmonitor 45432
Mon Feb 14 2022 20:07:11.623551 - External connection from /home/user/.local/share/Steam/steamapps/common/SteamVR/bin/vrwebhelper/linux64/vrwebhelper 45709
Mon Feb 14 2022 20:07:13.612780 - External connection from /home/user/.local/share/Steam/steamapps/common/SteamVR/bin/vrwebhelper/linux64/vrwebhelper 45729

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions