Commit Graph
106 Commits
Author SHA1 Message Date
Patrick Nicolas 9e9fc859f5 Detect network errors from any socket call 2026-08-31 19:34:05 +02:00
Sapphire c564436377 Gracefully stop applications on server quit
This doesn't work with Ctrl+C as the entire process group is signaled,
but it works with wivrnctl stop-server.
2026-08-24 14:13:07 -05:00
Patrick Nicolas e604848409 Remove WIVRN_DUMP_TIMINGS 2026-08-17 21:30:57 +02: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 10387b9b00 Separate framerate/refresh rate 2026-04-19 09:14:03 +02:00
Patrick Nicolas 6aa7c9759a Update monado
fix u_system -> b_system rename
2026-04-17 16:42:53 +02:00
Patrick Nicolas 22a819b8c8 Implement main compositor
Replace the patches to Monado's main compositor with a local
implementation, reusing code when relevant.

The layer squasher is very close to comp_render_cs, while distortion is
completely replaced by foveation.
2026-03-31 09:06:27 +02:00
Sapphire 456d65ef8c Use method_pointer to initialise wivrn_session function pointers 2026-03-22 12:50:02 -05: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
caszuu 93ee0cc577 add minimal feedback to reconnect errors 2026-02-27 16:03:18 +01:00
caszuu 7d11674b2a respect current client selection on session resume
this fixes a bug where non-current non-overlay
clients could get up to the focused session state
when a reconnect occured.
2026-02-27 16:03:18 +01:00
caszuu adf4b1fc84 verify headset compatibility on reconnect 2026-02-27 16:03:18 +01:00
caszuu a8504545e9 refactor reconnect logic
try to merge as much code between the first-time
connect and reconnects under `resume_session()`
without changing current behavior.
2026-02-27 16:03:18 +01:00
Patrick Nicolas 0b7cf25a93 Use inplace_vector for body trackers 2026-02-13 15:42:51 +01:00
Patrick Nicolas fe46fc4545 Replace some unique_ptr with optionals 2026-02-13 15:42:51 +01:00
Patrick Nicolas fc01002317 Control the tracking loop from server side
On server side, collect each tracking request, create an explicit pattern
describing how the client shall execute them.
2026-01-29 09:51:52 +01:00
Patrick Nicolas 4e3eff6505 Split net and worker threads 2026-01-27 17:32:34 +01:00
Patrick Nicolas 70adbafdc9 shared_ptr -> unique_ptr for audio handle 2026-01-18 16:23:17 +01:00
Sapphire a3c7a604e0 Pass session and stop token through reconnect flow 2025-12-31 00:59:36 -06:00
Sapphire 416297f232 Change refresh rate and bitrate on connect 2025-12-31 00:59:36 -06:00
Sapphire 727d4fab4d Use ipc_server_stop to exit during reconnect 2025-12-31 00:59:33 -06:00
Sapphire 21c04be1f8 Transition app to STOPPING state on requested app quit 2025-12-30 05:21:34 -06:00
Patrick Nicolas 0b526cef9d configure bitrate on client only 2025-12-10 14:32:01 +01:00
Sapphire 6638cefb37 Unify wivrn_controller and wivrn_hand_interaction device code 2025-12-09 04:10:40 -05:00
Sapphire fad0a8feee In-stream GUI bitrate adjustment 2025-12-07 09:32:02 -05:00
Sapphire 51d8742029 Forward XR_ANDROID_face_tracking 2025-12-04 11:16:31 +01:00
Sapphire fb3f7a1599 Update monado 2025-11-15 20:34:57 +01:00
Sapphire 015b242e27 Allow changing refresh rate during stream 2025-11-11 22:09:04 +01:00
galister 2063cae3ae keyboard & mouse forwarding 2025-11-11 21:12:01 +01:00
Patrick Nicolas 0ffd998896 Fix race condition on ipc_server init 2025-11-08 09:16:09 +01:00
Patrick Nicolas e7c69e9464 Support stopping application 2025-09-27 16:28:59 +02:00
Patrick Nicolas 6e64dd03b3 Select active application from stream GUI 2025-09-27 10:08:51 +02:00
Patrick Nicolas 7fb8f4c1a8 List running applications 2025-09-27 10:08:51 +02:00
Patrick Nicolas fcbdda9908 Don't fake user presence, use focused instead 2025-09-27 10:08:51 +02:00
Patrick Nicolas 5873de80b8 Don't shard when using TCP 2025-09-24 20:53:03 +02:00
Patrick Nicolas b5c94c24a4 Fix crash on connection 2025-08-22 20:20:28 +02:00
Patrick Nicolas fadec7a7a0 Move generic tracker active status in own class 2025-08-20 22:11:43 +02:00
Patrick Nicolas 45e0fce476 Add packet to start an application 2025-07-26 20:05:35 +02:00
Patrick Nicolas 93a2f1c10b Add packets to list applications 2025-07-26 19:35:26 +02:00
Guillaume Meunier c3ec979dde Overrideable foveation center 2025-07-26 11:18:58 +02:00
Sapphire c682f8cd9f Make hand interaction a different xdev
* Don't override hands from other drivers on interaction profile change

* Rename *_hand to *_controller

* Fix derived pose and tracking control desync with hand interaction

* Reset pose history on switch from hand interaction, code cleanup
2025-07-09 10:33:32 +02:00
Sapphire 5bfc9ed942 Forward session state to server
Closes #395
2025-07-05 15:41:22 +02:00
Sapphire 3ac31fe5cc Forward XR_EXT_user_presence
Closes #258
2025-07-04 23:43:06 +02:00
Patrick Nicolas 711be3754b fix comp_target deletion (again) 2025-06-12 15:46:37 +02:00
Sapphire 7b0cd08060 Disable generic trackers when no poses have been requested on server 2025-06-08 18:07:23 +02:00
Sapphire 1d6b444ec6 Use separate packet to send generic tracker poses 2025-06-08 18:07:23 +02:00
Sapphire 460fbec06d Quest and Pico body tracking
* Update OpenXR SDK to 1.1.48
2025-06-08 18:07:23 +02:00