From ee8d6229b34ced40078c9b277e470b20ed43e6d7 Mon Sep 17 00:00:00 2001 From: Sapphire Date: Sat, 15 Nov 2025 11:56:55 -0600 Subject: [PATCH] Update monado --- flake.nix | 2 +- monado-rev | 2 +- .../0001-c-multi-early-wake-of-compositor.patch | 2 +- patches/monado/0002-Use-extern-socket-fd.patch | 12 ++++++------ ...ange-environment-blend-mode-selection-logic.patch | 2 +- .../monado/0004-st-oxr-forward-0-refresh-rate.patch | 2 +- .../0005-Replace-distortion-with-foveation.patch | 2 +- ...steamvr_lh-prevent-crash-on-vive-pro2-WiVRn.patch | 2 +- server/main.cpp | 3 +-- 9 files changed, 14 insertions(+), 15 deletions(-) diff --git a/flake.nix b/flake.nix index 82983a10..751d8acb 100644 --- a/flake.nix +++ b/flake.nix @@ -58,7 +58,7 @@ # Keep in sync with CMakeLists.txt monado rev rev = builtins.readFile ./monado-rev; # Nix will output the correct hash when it doesn't match - hash = "sha256-aYRaEblJyec7NeLaP9EG7bzRHfNJIjG6NzN6rcotmtU="; + hash = "sha256-n2jY/HKPhma2SYXHiO4JH7BzYNpx14qx9V1P1ZwBcrM="; }; }; diff --git a/monado-rev b/monado-rev index e114f863..e024983b 100644 --- a/monado-rev +++ b/monado-rev @@ -1 +1 @@ -fc25dfcb573ae3d73f1058ab128ad67b1cd98439 +a4d997da3d6ba16cc0c7dd112094d3fa28dad0dd diff --git a/patches/monado/0001-c-multi-early-wake-of-compositor.patch b/patches/monado/0001-c-multi-early-wake-of-compositor.patch index 653b9cee..25811f1d 100644 --- a/patches/monado/0001-c-multi-early-wake-of-compositor.patch +++ b/patches/monado/0001-c-multi-early-wake-of-compositor.patch @@ -1,4 +1,4 @@ -From 2c8815be65917e342c040629d3a5f846bc4417bb Mon Sep 17 00:00:00 2001 +From a618d3b2625205cea5500f55a7638555e0e90afd Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 22 Oct 2024 15:23:19 +0200 Subject: [PATCH 1/6] c/multi: early wake of compositor diff --git a/patches/monado/0002-Use-extern-socket-fd.patch b/patches/monado/0002-Use-extern-socket-fd.patch index 531fedb5..1333ff8a 100644 --- a/patches/monado/0002-Use-extern-socket-fd.patch +++ b/patches/monado/0002-Use-extern-socket-fd.patch @@ -1,4 +1,4 @@ -From 69469ad46f9caf5a55dad24d29c51b7ae712f44e Mon Sep 17 00:00:00 2001 +From 0f7dfb63b174206483cdd00e50c41e2cab95f801 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 8 Oct 2024 22:13:15 +0200 Subject: [PATCH 2/6] Use extern socket fd @@ -8,19 +8,19 @@ Subject: [PATCH 2/6] Use extern socket fd 1 file changed, 8 insertions(+) diff --git a/src/xrt/ipc/server/ipc_server_mainloop_linux.c b/src/xrt/ipc/server/ipc_server_mainloop_linux.c -index d364fbed3..f05763966 100644 +index 36bf3e31d..e40447bb2 100644 --- a/src/xrt/ipc/server/ipc_server_mainloop_linux.c +++ b/src/xrt/ipc/server/ipc_server_mainloop_linux.c -@@ -55,6 +55,8 @@ - */ - DEBUG_GET_ONCE_BOOL_OPTION(skip_stdin, "XRT_NO_STDIN", false) +@@ -48,6 +48,8 @@ + #endif + +extern int listen_socket; + /* * * Static functions. -@@ -63,6 +65,12 @@ DEBUG_GET_ONCE_BOOL_OPTION(skip_stdin, "XRT_NO_STDIN", false) +@@ -56,6 +58,12 @@ static int get_systemd_socket(struct ipc_server_mainloop *ml, int *out_fd) { diff --git a/patches/monado/0003-change-environment-blend-mode-selection-logic.patch b/patches/monado/0003-change-environment-blend-mode-selection-logic.patch index 2e71854e..43ed118c 100644 --- a/patches/monado/0003-change-environment-blend-mode-selection-logic.patch +++ b/patches/monado/0003-change-environment-blend-mode-selection-logic.patch @@ -1,4 +1,4 @@ -From c0b95fc2f3bae2239b69df6dc448b98432e0b746 Mon Sep 17 00:00:00 2001 +From 25de6ae03b6ece4ca726da848f4e468887ba3e0b Mon Sep 17 00:00:00 2001 From: galister <85970-galister@users.noreply.gitlab.freedesktop.org> Date: Sat, 23 Nov 2024 02:42:12 +0900 Subject: [PATCH 3/6] change environment blend mode selection logic diff --git a/patches/monado/0004-st-oxr-forward-0-refresh-rate.patch b/patches/monado/0004-st-oxr-forward-0-refresh-rate.patch index 71a3a92f..c33e7766 100644 --- a/patches/monado/0004-st-oxr-forward-0-refresh-rate.patch +++ b/patches/monado/0004-st-oxr-forward-0-refresh-rate.patch @@ -1,4 +1,4 @@ -From d29c35507c125fa720f9e20f1c70aa09180f6e5a Mon Sep 17 00:00:00 2001 +From 205bc81e5d5620ad993298791ee1331734027df0 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 15 Mar 2025 22:19:48 +0100 Subject: [PATCH 4/6] st/oxr: forward 0 refresh rate diff --git a/patches/monado/0005-Replace-distortion-with-foveation.patch b/patches/monado/0005-Replace-distortion-with-foveation.patch index 2c60bc18..078dbb78 100644 --- a/patches/monado/0005-Replace-distortion-with-foveation.patch +++ b/patches/monado/0005-Replace-distortion-with-foveation.patch @@ -1,4 +1,4 @@ -From feea3035968d20b8bf87d35aa3654ba4162b6ae9 Mon Sep 17 00:00:00 2001 +From a51f268bd8d3bdc04b811127db7d38f9afd3171c Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Wed, 11 Sep 2024 22:56:29 +0200 Subject: [PATCH 5/6] Replace distortion with foveation diff --git a/patches/monado/0006-d-steamvr_lh-prevent-crash-on-vive-pro2-WiVRn.patch b/patches/monado/0006-d-steamvr_lh-prevent-crash-on-vive-pro2-WiVRn.patch index b2303eab..7978bc75 100644 --- a/patches/monado/0006-d-steamvr_lh-prevent-crash-on-vive-pro2-WiVRn.patch +++ b/patches/monado/0006-d-steamvr_lh-prevent-crash-on-vive-pro2-WiVRn.patch @@ -1,4 +1,4 @@ -From 59081b09d13a393ce54c25dd0ff004afb35871fd Mon Sep 17 00:00:00 2001 +From 2465ef4bdb091830488d2518c233ee94a2e7c426 Mon Sep 17 00:00:00 2001 From: no name Date: Sun, 28 Sep 2025 11:33:10 +0200 Subject: [PATCH 6/6] d/steamvr_lh: prevent crash on vive pro2/WiVRn diff --git a/server/main.cpp b/server/main.cpp index 8b6f33a5..462cadf9 100644 --- a/server/main.cpp +++ b/server/main.cpp @@ -237,8 +237,6 @@ void start_server(configuration config) } else if (server_pid == 0) { - setenv("XRT_NO_STDIN", "1", true); - // foveation code does not allow oversampling setenv("XRT_COMPOSITOR_SCALE_PERCENTAGE", "100", true); @@ -257,6 +255,7 @@ void start_server(configuration config) .open = U_DEBUG_GUI_OPEN_NEVER, #endif }, + .no_stdin = true, }; try