ChristophHaag / SteamVR-OpenHMD

SteamVR plugin for using OpenHMD drivers in SteamVR
Boost Software License 1.0
195 stars 32 forks source link

Display-manager restart when launching SteamVR with OpenHMD-SteamVR and PSVR #74

Open dancadar opened 2 years ago

dancadar commented 2 years ago

When i am trying to launch SteamVR, display-manager crashed and gets me back to the login window. Apparently, the issue when i start SteamVR is "Failed to acquire xlib display". This happens immediately after trying to find a mode for VR headset:

Mon May 23 2022 13:07:17.820513 - HMD deviceUUID is 62030c4805877021
Mon May 23 2022 13:07:17.820536 - Looking for direct display through RandR
Mon May 23 2022 13:07:17.820547 -  - Root 0x1e4
Mon May 23 2022 13:07:17.869078 -    - Output 0x1bc - 0 modes, 0 preferred
Mon May 23 2022 13:07:17.869116 -    - Output 0x1bd - 17 modes, 1 preferred
Mon May 23 2022 13:07:17.869129 -      - Mode 0 0x1be 1920x1080 (looking for 1920x1080)
Mon May 23 2022 13:07:17.869136 -        - Found matching output 445
Mon May 23 2022 13:07:17.869145 - Found candidate direct display as RandR output 0x1bd
Mon May 23 2022 13:07:17.919190 - Tried to find direct display through RandR: 0x55f2f4435ee0
Mon May 23 2022 13:07:17.920270 - Trying to match desired rate of 90.000000Hz.
Mon May 23 2022 13:07:17.920283 - 22 modes on display:
Mon May 23 2022 13:07:17.920293 -  - 0: 1920x1080@60.000004Hz
Mon May 23 2022 13:07:17.920302 -  - 1: 640x480@59.952003Hz
Mon May 23 2022 13:07:17.920309 -  - 2: 1920x1080@59.940002Hz
Mon May 23 2022 13:07:17.920315 -  - 3: 1920x1080@50.000004Hz
Mon May 23 2022 13:07:17.920322 -  - 4: 1920x1080@59.940002Hz
Mon May 23 2022 13:07:17.920329 -  - 5: 1920x1080@50.000004Hz
Mon May 23 2022 13:07:17.920335 -  - 6: 1280x720@59.940002Hz
Mon May 23 2022 13:07:17.920342 -  - 7: 1280x720@50.000004Hz
Mon May 23 2022 13:07:17.920348 -  - 8: 720x480@59.940002Hz
Mon May 23 2022 13:07:17.920355 -  - 9: 720x480@59.940002Hz
Mon May 23 2022 13:07:17.920361 -  - 10: 720x576@50.000004Hz
Mon May 23 2022 13:07:17.920368 -  - 11: 640x480@59.940002Hz
Mon May 23 2022 13:07:17.920374 -  - 12: 3840x2160@23.976002Hz
Mon May 23 2022 13:07:17.920381 -  - 13: 3840x2160@25.000002Hz
Mon May 23 2022 13:07:17.920387 -  - 14: 3840x2160@29.970001Hz
Mon May 23 2022 13:07:17.920394 -  - 15: 3840x2160@50.000004Hz
Mon May 23 2022 13:07:17.920400 -  - 16: 3840x2160@59.940002Hz
Mon May 23 2022 13:07:17.920407 -  - 17: 1920x1080@60.000004Hz
Mon May 23 2022 13:07:17.920413 -  - 18: 640x480@59.940002Hz
Mon May 23 2022 13:07:17.920420 -  - 19: 3840x2160@29.970001Hz
Mon May 23 2022 13:07:17.920426 -  - 20: 3840x2160@25.000002Hz
Mon May 23 2022 13:07:17.920433 -  - 21: 3840x2160@23.976002Hz
Mon May 23 2022 13:07:17.920439 - Selected mode 0.
Mon May 23 2022 13:07:17.920826 - Failed to acquire xlib display
Mon May 23 2022 13:07:17.920839 - CHmdWindowSDL: Failed to create direct mode surface

I am not 100% sure, but this might be related to the fact that PSRV is not detected as able to run @90 Hz refresh rate.

thaytan commented 2 years ago

I think that has to be a driver bug. For PSVR support, you're probably better trying monado - https://gitlab.freedesktop.org/monado/ and the SteamVR driver there.