Commit Graph
235 Commits
Author SHA1 Message Date
Philip Poloczek 640e1a5405 client: don't hold a strong stream reference while creating decoders
shard_accumulator only keeps a weak_ptr to the stream, but setup() passed
it a temporary from shared_from_this(). setup() runs on the network
thread, so if the main thread drops its reference meanwhile (e.g. while
shutting down after XR_ERROR_INSTANCE_LOST), that temporary is the last
one and ~stream runs on the network thread. It then joins
network_thread from itself: std::system_error (EDEADLK) and
std::terminate.

Pass weak_from_this() instead so no strong reference is created.
2026-10-07 13:24:15 +02:00
galister e5923e155a linux client: only show 10-bit if supported 2026-09-29 19:22:33 +02:00
Patrick Nicolas 117027c390 Remove FoV from headset info packet 2026-09-29 19:22:33 +02:00
Patrick Nicolas 07131bec85 Set WIVRN_USE_V4L2 in wivrn_config.h 2026-09-29 19:22:33 +02:00
galister 596e661d7e add frame controller profile 2026-09-27 17:14:33 +09:00
galister 2191884e95 linux client: v4l2 decoder 2026-09-27 17:14:33 +09:00
Sapphire 4749c15aa4 Update Monado 2026-08-01 20:37:14 +02:00
Guillaume Meunier 3a71509ff8 Fix typo 2026-07-26 21:14:12 +02:00
Guillaume Meunier 3c56ff7403 Remove bitrate setting with the thumbstick 2026-07-26 21:14:12 +02:00
Guillaume Meunier a91b8982d2 Allow disabling the in-stream window from the stream scene 2026-07-26 18:13:15 +02:00
ahsanswr 80ee73128d Code cleanup 2026-07-26 17:24:36 +02:00
ahsanswr 5e359fe983 UI improvements 2026-07-26 17:24:36 +02:00
ahsanswr 2e9f2c8646 Ui improvements 2026-07-26 17:24:36 +02:00
SapphireandGuillaume Meunier 1cc61fd07a Make virtual tracker xdevs toggleable
Co-authored-by: Guillaume Meunier <[email protected]>
2026-07-10 14:52:50 -05:00
Sapphire 2e28b0a4ad Forward body skeletons from headset 2026-07-10 13:22:05 -05:00
JR Lanteigne 91f6e69ffb Mirror forwarded input devices to uinput
Mirror the gamepad forwarded from the headset to a uinput device with the standard Xbox layout, so applications that do not read it through OpenXR, such as SDL and Steam Input, pick it up. This extends the existing hid-forwarding uinput path, which already covered keyboard and mouse.

The headset chooses which devices to forward (keyboard, mouse, gamepad), off by default. The hid-forwarding server option gates the uinput mirror only; the OpenXR gamepad is always exposed. The mirror needs the uinput module and write access to /dev/uinput.

Gamepad rumble written to the uinput device is read back and forwarded to the headset as OpenXR haptics.
2026-07-08 19:10:50 +02:00
JR Lanteigne aeecc857de Add gamepad forwarding through OpenXR
Forward a gamepad paired to the headset to the server. Useful when the controller is in range of the headset but not the server, such as a DualSense paired to a Quest over Bluetooth.

The headset reads the gamepad through the OpenXR microsoft/xbox_controller profile and forwards it on the existing input rails: gamepad device ids in the inputs packet, plus a gamepad entry in the interaction profile array that signals connection and disconnection from the tracking thread.

The server exposes a native OpenXR gamepad at /user/gamepad, connected while the headset reports a gamepad interaction profile. This needs no permission and is always available.

Rumble is sent back to the headset and applied through OpenXR haptics.
2026-07-08 19:10:50 +02:00
Patrick Nicolas 79d57a35d7 Wait for left/right decoders to be ready before start 2026-06-15 21:25:21 +02:00
Patrick Nicolas 6d6353fe49 Disable passthrough if alpha not ready 2026-06-15 21:12:31 +02:00
Patrick Nicolas 43395e6e40 Add logs for refresh rate change 2026-06-13 23:05:52 +02:00
Guillaume Meunier fdb7ace47a Revert "WIP snapping"
This reverts commit 11d166d518.
2026-06-05 21:19:46 +02:00
Guillaume Meunier 11d166d518 WIP snapping 2026-06-05 20:43:35 +02:00
Guillaume Meunier 4afcadf19d Change the GUI distance with the thumbstick in the stream scene 2026-06-05 20:43:35 +02:00
Guillaume Meunier f01ffd9182 Use a fixed GUI position in the stream scene when the GUI is interactable 2026-06-05 20:43:35 +02:00
EasonZxp 28c72c8e64 Add PFDM MR controller support 2026-05-26 10:52:34 +02:00
Amanda M. Watson b9f2fde119 refactor hmd_traits into separate file, make class in application, and remove hardware.h/cpp 2026-05-10 19:11:17 +02:00
Patrick Nicolas 1b9b74cce1 Revert to explicit hmd_traits initialization 2026-05-10 19:11:17 +02:00
Patrick Nicolas 50a0f1a0ed Add quirk to prevent discarding frames 2026-05-10 19:11:17 +02:00
Patrick Nicolas 1685bbde2c rename override_view_for_hmd -> override_view 2026-05-10 19:11:17 +02:00
Patrick Nicolas d8fbbb23ab Remove model enum, change Quest default power mode
Store all quirks in the hmd_traits object
2026-05-10 19:11:17 +02:00
amwatson 83eb6ff849 override_view() should take hmd_traits as argument to ensure envvar overrides are read consistently 2026-05-10 19:11:17 +02:00
amwatson d70c1fb414 add runtime-initialized 'hmd_traits' struct to streamline hmd-specific checks 2026-05-10 19:11:17 +02:00
Patrick Nicolas 63a22d32db Allow headset timewarp 2026-04-27 10:48:26 +02:00
Patrick Nicolas e21b1adf1d Send both frame rate and refresh rate in description 2026-04-27 10:26:58 +02:00
Patrick Nicolas 6d072e30cd Simplify some preferred refresh rate logic 2026-04-19 09:14:03 +02:00
galister 00f0553dc7 add option for half fps 2026-04-19 09:14:03 +02:00
Patrick Nicolas 8f3f2d4900 Don't use extension for stream scale/bias 2026-04-13 16:23:07 +02:00
Patrick Nicolas 26f21348f3 Export current client tab on dbus 2026-03-14 18:20:32 +01:00
Patrick Nicolas 7d9031e843 Rework stream tabs management 2026-03-14 17:29:21 +01:00
codedwrench 2b7409b363 fix: correct controller position on pico 2026-03-13 19:58:47 +01:00
Patrick Nicolas 02d06562a6 Don't reset decoders if there's no change 2026-03-05 10:56:07 +01:00
Patrick Nicolas 9690633030 reset defoveator on decoder change 2026-03-05 10:56:07 +01:00
Patrick Nicolas 8a4edf46af Simplify decoded frame accessor 2026-03-02 11:26:52 +01:00
Patrick Nicolas f32d6f4710 Drop support for XR_FB_FOVEATION 2026-03-02 10:54:45 +01:00
Patrick Nicolas 65cc572fde Remove obsolete lock/assertion 2026-03-02 10:18:13 +01:00
caszuu 4a1c58a137 fix tracking thread softlock on xr session begin 2026-02-27 16:03:18 +01:00
caszuu b96833cc9b semi-workaround for quest gpu memory corruption
From pure trial and error, is seems that swapchain
management on the quest platform is broken. After a
swapchain is destroyed, there is a _chance_ the
next created swapchain will be unusable.

This seems to happen no matter what, where or when
the client decides to clean up its resources and the
safest bet is to not recreate swapchains much.
2026-02-27 16:03:18 +01:00
caszuu 9a2f31e011 set user presence on session pause / resume 2026-02-27 16:03:18 +01:00
caszuu a823df96d3 add server error messages 2026-02-27 16:03:18 +01:00
Patrick Nicolas f476f9a1db Default refresh rate < 100Hz 2026-02-23 19:14:44 +01:00