From eff70e61e0818a13c7f47215b91c06b145e2da0f Mon Sep 17 00:00:00 2001 From: RSDNTWK <75706303+RSDNTWK@users.noreply.github.com> Date: Tue, 16 Dec 2025 01:01:06 +0000 Subject: [PATCH 1/2] Added alternative way of launching SteamVR in linux. --- alvr/dashboard/src/steamvr_launcher/linux_steamvr.rs | 6 +++--- steamvr-script/readme.md | 10 ++++++++++ steamvr-script/steamvr_linux.sh | 1 + 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 steamvr-script/readme.md create mode 100644 steamvr-script/steamvr_linux.sh diff --git a/alvr/dashboard/src/steamvr_launcher/linux_steamvr.rs b/alvr/dashboard/src/steamvr_launcher/linux_steamvr.rs index f9d530644d..37088d7b00 100644 --- a/alvr/dashboard/src/steamvr_launcher/linux_steamvr.rs +++ b/alvr/dashboard/src/steamvr_launcher/linux_steamvr.rs @@ -6,9 +6,9 @@ use alvr_common::anyhow::bail; use alvr_common::{debug, error, info, warn}; use sysinfo::Process; -pub fn launch_steamvr_with_steam() { - Command::new("steam") - .args(["steam://rungameid/250820"]) +pub fn start_steamvr() { + Command::new("sh") + .args(["-c", "cd $(dirname $0) && ./steamvr_linux.sh"]) .spawn() .ok(); } diff --git a/steamvr-script/readme.md b/steamvr-script/readme.md new file mode 100644 index 0000000000..af6cca8f04 --- /dev/null +++ b/steamvr-script/readme.md @@ -0,0 +1,10 @@ +This is a sample script to fix an issue with steam breaking DRI_PRIME and QT_QPA_PLATFORM +commands from working together in some distros. + + +Place in alvr_streamer_linux/bin folder where the alvr_dashboard binary is. + +Be sure to change the commands and steamvr vrmonitor.sh path as needed. + +make it executably by typing chmod +x steamvr_linux.sh + diff --git a/steamvr-script/steamvr_linux.sh b/steamvr-script/steamvr_linux.sh new file mode 100644 index 0000000000..9be159fb19 --- /dev/null +++ b/steamvr-script/steamvr_linux.sh @@ -0,0 +1 @@ +DRI_PRIME=1 QT_QPA_PLATFORM=xcb ~/.local/share/Steam/steamapps/common/SteamVR/bin/vrmonitor.sh From c0f2c8198a0792221ff14a21b31c50283ed41d5f Mon Sep 17 00:00:00 2001 From: RSDNTWK <75706303+RSDNTWK@users.noreply.github.com> Date: Tue, 16 Dec 2025 01:13:18 +0000 Subject: [PATCH 2/2] corrected definition. --- alvr/dashboard/src/steamvr_launcher/linux_steamvr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alvr/dashboard/src/steamvr_launcher/linux_steamvr.rs b/alvr/dashboard/src/steamvr_launcher/linux_steamvr.rs index 37088d7b00..1cc2d06e66 100644 --- a/alvr/dashboard/src/steamvr_launcher/linux_steamvr.rs +++ b/alvr/dashboard/src/steamvr_launcher/linux_steamvr.rs @@ -6,7 +6,7 @@ use alvr_common::anyhow::bail; use alvr_common::{debug, error, info, warn}; use sysinfo::Process; -pub fn start_steamvr() { +pub fn launch_steamvr_with_steam() { Command::new("sh") .args(["-c", "cd $(dirname $0) && ./steamvr_linux.sh"]) .spawn()