ValveSoftware / SteamVR-for-Linux

Issue tracker for the Linux port of SteamVR
919 stars 45 forks source link

[SOLVED][BUG] SteamVR fails to start on Fresh Install of Ubuntu-Studio 24.04.1 LTS (Noble Numbat) #736

Closed KawaneRio closed 1 week ago

KawaneRio commented 1 week ago

Summary

SteamVR was kinda working? on Fresh Install of Ubuntu-Studio 24.04.01. When I had initially installed steam (and SteamVR) right after the fresh installation of ubuntu, the SteamVR would start but would not output anything to the HMD nor will it produce a VR View. It did recognize my HMD, my 3 VIVE trackers, and my two Index controllers, as they were all shown green in the little SteamVR window. I updated the drivers on my Valve Index Controllers and now the SteamVR does not start anymore. The VR monitor window won't even open; it just automatically stops whenever I click Play.

I tried peeking at the /home/kawanerio/steam-250820.log which was created by PROTON_LOG=1 %command% startup option for SteamVR and found err:steam:initialize_vr_data Could not load libopenvr_api.so. present. Maybe it's related to [BUG] vrpathreg misses libopenvr_api.so in the same directory #478 ? I don't know I am a newbie ubuntu user.

Steps Taken

This is a list of things I've done to my machine as much as I could remember (I may produce incorrect or inaccurate output due to the nature of human brain).

  1. Install fresh Ubuntu-Studio from https://ubuntustudio.org/
  2. Recover backup from copy&pasted directory in storage and from deja-dup
  3. Install flatpak Steam on Discover because I did not know any better image image
  4. Also install flatpak Proton-GE (community build) because. image
  5. Okay so the flatpak version of Steam is really having a hard time writing to my external HDDs and on top of that SteamVR won't go pass through "SteamVR needs superuser" dialog (it just spits an error and quits). Maybe flatpak was a mistake. Spectacle_20240916_015805
    Screenshots of Flatpak Steam just quitting after the superuser dialog box

Spectacle_20240916_015524 Spectacle_20240916_015753

  1. Uninstall flatpak Steam and flatpak Proton-GE using Discover.
  2. install Steam (installer) from Discover (making sure to change the source to Ubuntu and not Flatpak!)
  3. Something did not work, so I ran dpkg --add-architecture i386; apt update
Screenshots of me installing fresh Steam from ubuntu Accepting Steam ![Spectacle_20240916_022657](https://github.com/user-attachments/assets/6f64cf9b-611c-4e32-a812-85a03e9ad3cd) Installing Steam ![Spectacle_20240916_022711](https://github.com/user-attachments/assets/0a4f9c65-e459-41bf-aa0e-91a889fe3670) Updating Steam ![Spectacle_20240916_023630](https://github.com/user-attachments/assets/d650ffd7-0948-474a-81b8-71490726c495) Installing VRChat ![Spectacle_20240916_024024](https://github.com/user-attachments/assets/bd36b6a5-5e86-4973-9edd-64de019f4c7c) Installing SteamVR ![Spectacle_20240916_025937](https://github.com/user-attachments/assets/d875e420-8042-442e-b837-6db6cc6749cf) Granting Permission for SteamVR ![Spectacle_20240916_025947](https://github.com/user-attachments/assets/e8f25bdc-4e8d-41c5-bfca-264ff17509e8)
  1. lots of Target Packages is configured multiple times warning has been coming up, perhaps due to me forcefully moving things from the backups, and it was annoying. I fixed this by commenting out the contents in /etc/apt/sources.list.d/dvd.list image
  2. can't set the locale; make sure $LC_* and $LANG are correct was also showing up since I booted the machine. I fixed this by running sudo locale-gen ja_JP.UTF-8 and sudo dpkg-reconfigure locales in accordance to this article I found.
  3. My external HDD is writable at last! and my SteamVR starts! yay! oh? my controller needs upgrading! I shall do that! (updates the drivers for both of my Valve Index controllers successfully) image
  4. (my memory gets foggy around here) I remember not getting past this screen so I gave up.
Screenshots of Room Setup

image image

  1. noooo SteamVR won't start anymore whyyyy I've tried rebooting but it doesn't worrrrk :sob:
  2. Oh yeah, maybe installing Valve-Kisak mesa drivers could help!: Runs sudo add-apt-repository ppa:kisak/kisak-mesa and sudo apt update
  3. Nope.
  4. While writing this issue, I've tried to run SteamVR using Steam Linux Runtime 3.0 (sniper) and, well, uh, it... started??? Error 496 is still present, and still nothing is being recognized by the Room Setup, but I can generate a report now! image
Screenshots of SteamVR miraclously starting with Steam Linux Runtime 3.0 (sniper) ![Spectacle_20240916_145233](https://github.com/user-attachments/assets/f4a7836a-5b81-4ecf-9fa4-7dfaaa25fd82)
  1. PS.2. It stopped working again.

Expected behavior

  1. Install Ubuntu
  2. Install Steam
  3. Install SteamVR
  4. Play VRChat

Alternatively, I would just like the Room Setup to work just once so I can try out OpenXR with lighthouse tracking.

System Information

I am using the latest Steam beta client, Photon Experimental, and SteamVR beta.

About Steam

Steamベータブランチ:  Steam Beta Update
Steamバージョン:  1726256783
Steamクライアントビルド日:  9月13日(金) 14:23 UTC +09:00
Steam Webビルド日:  9月12日(木) 3:53 UTC +09:00
Steam APIバージョン:  SteamClient021

About SteamVR

Well, since it fails to start, I can't really write much here. I will say that I have tried to open SteamVR on beta, previous, temp, and oculus_win7and8 but none of them worked. I have also tried using Proton 9.0-2 but with no avail.

SteamVR System Report

My Enviroment

I am on Ubuntu 24.04.1 using Wayland

neofetch and inxi --basic ![Spectacle_20240916_151154](https://github.com/user-attachments/assets/6b429a68-acc1-4cb4-9dcb-aff94ff2e83a) `inxi --basic` ``` System: Host: KawaneLinux Kernel: 6.8.0-44-lowlatency arch: x86_64 bits: 64 Desktop: KDE Plasma v: 5.27.11 Distro: Kubuntu 24.04.1 LTS (Noble Numbat) Machine Type: Desktop System: Gigabyte product: X570 UD v: N/A serial: Mobo: Gigabyte model: X570 UD serial: UEFI: American Megatrends LLC. v: F36e date: 10/13/2021 CPU: Info: 12-core AMD Ryzen 9 5900X [MT MCP] speed (MHz): avg: 4573 min/max: 2200/4950 Graphics: Device-1: AMD Navi 23 [Radeon RX 6600/6600 XT/6600M] driver: amdgpu v: kernel Device-2: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] driver: amdgpu v: kernel Device-3: Valve 3D Camera driver: uvcvideo type: USB Display: wayland server: X.org v: 1.21.1.11 with: Xwayland v: 23.2.6 compositor: kwin_wayland driver: X: loaded: amdgpu unloaded: fbdev,modesetting,radeon,vesa dri: radeonsi gpu: amdgpu,amdgpu resolution: 1920x1080 API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: PPA renderer: AMD Radeon RX 580 Series (radeonsi polaris10 LLVM 17.0.6 DRM 3.57 6.8.0-44-lowlatency) Network: Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet driver: r8169 Device-2: Intel Wi-Fi 6E AX210/AX1675 2x2 [Typhoon Peak] driver: iwlwifi Drives: Local Storage: total: 20.47 TiB used: 1.17 TiB (5.7%) Info: Memory: total: 48 GiB available: 46.97 GiB used: 16.4 GiB (34.9%) Processes: 648 Uptime: 11h 3m Shell: Bash inxi: 3.3.34 ```

Steam Runtime Info

https://gist.github.com/KawaneRio/ab95468a1e70aab0cda4723a21bbb1f4

Steam Logs

tar -zcvf ~/Desktop/steam-logs.tar.gz ~/.steam/steam/logs logs.tar.gz

Minidumps

tar -zcvf ~/Desktop/steam-minidumps.tar.gz /tmp/dumps steam-minidumps.tar.gz

PROTON_LOG

steam-250820.log

Screenshot that tells you where to insert the `PROTON_LOG=1 %command%` in order to collect the logs ![Spectacle_20240916_133055](https://github.com/user-attachments/assets/64a3d903-933b-44f5-a424-bec1b88f14e6)

Related?

478

KawaneRio commented 1 week ago

I've tried using X11 instead of Wayland but did not work

KawaneRio commented 1 week ago

Proton 8.0-5 did not work

KawaneRio commented 1 week ago

GE-Proton9-13 did not work

KawaneRio commented 1 week ago

It seems that everytime I change my Proton to Linux Runtime 3.0 and grant superuser permissions, it works. But then when I quit and try to play SteamVR again for the second or third time, it fails :thinking:

KawaneRio commented 1 week ago

It works with Steam Linux Runtime 1.0 (scout) as well. When I say "it works", it just means that SteamVR starts with an Error 496. Also, Room Setup is useless as I cannot proceed past the HMD and Controller recognition slide.

KawaneRio commented 1 week ago

So, um, update. SteamVR works now. Here is what I did:

I unplugged my Valve Index's HDMI cable from my RX 6600 port and replugged it onto my RX 580's HDMI port.

image

I then ran SteamVR using Steam Linux Runtime 3.0 (sniper) and, holy Doughnut Princess, my SteamVR works. I can actually see.

I tried running SteamVR with Proton Experimental, Proton 9.0-2, Proton 8.0-5, and GE-Proton 9-13, but nall had failed; in other words, Steam Linux Runtime 3.0 (sniper) is the only one that works on my system.

Also, SteamVR tells me that I need to upgrade my BaseStations, but it crashes midway everytime I try to upgrade my basestations. Spectacle_20240917_214406

steam[22611]: Attempting HID Open IMU: LHR-233D74F2
steam[22611]: Lighthouse IMU HID opened
steam[22611]: LHR-233D74F2: Firmware Version 1623823641 WMBUILD-W64$@wmbuild-w64 2021-06-16 FPGA 538(2.26/9/2) BL 1555018800
steam[22611]: LHR-233D74F2: Successfully fetched gyro/accelerometer range modes from the device. GyroRangeMode:1 AccelRangeMode:1
steam[22611]: Attempting HID Open Optical: LHR-233D74F2
steam[22611]: Lighthouse Optical HID opened
steam[22611]: Attempting HID Open VrController: LHR-233D74F2
steam[22611]: Lighthouse VrController HID opened
steam[22611]: LHR-233D74F2: Read config of 3097 bytes from [vid:28de, pid:2300] (LHR-233D74F2) and inflated to 9742 bytes
steam[22611]: Attempting HID Open IMU: 0ECC0F3C6E-RYB
steam[22611]: Lighthouse IMU HID opened
steam[22611]: 0ECC0F3C6E-RYB: Firmware Version 1693638519 WMBUILD-W64$@wmbuild-w64 2023-09-02 FPGA 538(2.26/10/2) BL 0
steam[22611]: LHR-8D43ACB1: Connected to receiver 0ECC0F3C6E-RYB
steam[22611]: LHR-8D43ACB1: Protocol versioning supported, requesting 1
steam[22611]: 0ECC0F3C6E-RYB: Successfully fetched gyro/accelerometer range modes from the device. GyroRangeMode:3 AccelRangeMode:2
steam[22611]: LHR-8D43ACB1: Transition to protocol version 1
steam[22611]: Attempting HID Open IMU: 43E467C198-LYM
steam[22611]: Lighthouse IMU HID opened
steam[22611]: 43E467C198-LYM: Firmware Version 1693638519 WMBUILD-W64$@wmbuild-w64 2023-09-02 FPGA 538(2.26/10/2) BL 0
steam[22611]: LHR-AE0D2AA4: Connected to receiver 43E467C198-LYM
steam[22611]: LHR-AE0D2AA4: Protocol versioning supported, requesting 1
steam[22611]: 43E467C198-LYM: Successfully fetched gyro/accelerometer range modes from the device. GyroRangeMode:3 AccelRangeMode:2
steam[22611]: LHR-8D43ACB1: Optical subprotocol changed version 0
steam[22611]: LHR-8D43ACB1: Controller subprotocol changed version 0
steam[22611]: LHR-AE0D2AA4: Transition to protocol version 1
steam[22611]: Attempting HID Open IMU: LHR-B7F1F09F
steam[22611]: Lighthouse IMU HID opened
steam[22611]: LHR-B7F1F09F: Firmware Version 1541806442 RUNNER-WATCHMAN$runner-watchman@runner-watchman 2018-11-10 FPGA 531(2.19/7/2) BL 1517470641
steam[22611]: UserData Error: Data request is out of range, request starting:0x0, ending:0x18, max address:0x3
steam[22611]: LHR-B7F1F09F: Successfully fetched gyro/accelerometer range modes from the device. GyroRangeMode:3 AccelRangeMode:2
steam[22611]: LHR-AE0D2AA4: Optical subprotocol changed version 0
steam[22611]: LHR-AE0D2AA4: Controller subprotocol changed version 0
steam[22611]: Attempting HID Open Optical: LHR-B7F1F09F
steam[22611]: Lighthouse Optical HID opened
steam[22611]: Attempting HID Open VrController: LHR-B7F1F09F
steam[22611]: Lighthouse VrController HID opened
steam[22611]: LHR-B7F1F09F: Read config of 2197 bytes from [vid:28de, pid:2300] (LHR-B7F1F09F) and inflated to 8739 bytes
steam[22611]: Attempting HID Open IMU: LHR-2FE972D6
steam[22611]: Lighthouse IMU HID opened
steam[22611]: LHR-2FE972D6: Firmware Version 1541806442 RUNNER-WATCHMAN$runner-watchman@runner-watchman 2018-11-10 FPGA 531(2.19/7/2) BL 1517470641
steam[22611]: UserData Error: Data request is out of range, request starting:0x0, ending:0x18, max address:0x3
steam[22611]: LHR-2FE972D6: Successfully fetched gyro/accelerometer range modes from the device. GyroRangeMode:3 AccelRangeMode:2
steam[22611]: Attempting HID Open Optical: LHR-2FE972D6
steam[22611]: Lighthouse Optical HID opened
steam[22611]: Attempting HID Open VrController: LHR-2FE972D6
steam[22611]: Lighthouse VrController HID opened
steam[22611]: LHR-2FE972D6: Read config of 2200 bytes from [vid:28de, pid:2300] (LHR-2FE972D6) and inflated to 8741 bytes
steam[22611]: Attempting HID Open IMU: LHR-4DD3CCCD
steam[22611]: Lighthouse IMU HID opened
steam[22611]: LHR-4DD3CCCD: Firmware Version 1541806442 RUNNER-WATCHMAN$runner-watchman@runner-watchman 2018-11-10 FPGA 531(2.19/7/2) BL 1517470641
steam[22611]: UserData Error: Data request is out of range, request starting:0x0, ending:0x18, max address:0x3
steam[22611]: LHR-4DD3CCCD: Successfully fetched gyro/accelerometer range modes from the device. GyroRangeMode:3 AccelRangeMode:2
steam[22611]: Attempting HID Open Optical: LHR-4DD3CCCD
steam[22611]: Lighthouse Optical HID opened
steam[22611]: Attempting HID Open VrController: LHR-4DD3CCCD
steam[22611]: Lighthouse VrController HID opened
steam[22611]: LHR-4DD3CCCD: Read config of 2195 bytes from [vid:28de, pid:2300] (LHR-4DD3CCCD) and inflated to 8738 bytes

Aside from that, I think that's all I need for now. Feel free to write what you think, or convince me to use the latest Proton.