124 Commits
Author SHA1 Message Date
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 85a635069f Remove WIVRN_USE_SYSTEMD config option 2026-08-06 19:33:22 +02:00
Patrick Nicolas 41c2c0b727 Set default log level to info 2026-07-09 23:34:42 +02:00
Patrick Nicolas d609d039d8 remove ifdef for socket cleanup 2026-07-09 21:06:32 +02:00
Jonathan Steffan b9c8a54d92 Add WiVRn-native Perfetto via Perfetto SDK
Optional server profiling built on the Perfetto SDK. Adds CPU spans
(compositor, encoder, network), GPU encode/copy slices from Vulkan timestamp
queries (Vulkan/NVENC/VAAPI), and headset feedback markers from dump_time.

WIVRN_TRACING enables tracing and selects the backend (system, inprocess, or
both); WIVRN_USE_PERFETTO gates it at build time and compiles it out otherwise.
WIVRN_TRACE_MONADO additionally drives Monado's percetto tracing from the same
switch so WiVRn and Monado land on one timeline.

Tooling: server-tracing[-monado] presets and a CI build, two Perfetto configs
(WiVRn-only and full-system), a wivrn_capture.py capture wrapper, a pftrace
summary script, and docs/profiling.md.
2026-07-01 21:04:08 +02:00
Jonathan Steffan 79ee65e158 Remove dead cleanup-function mechanism 2026-07-01 20:48:17 +02:00
Sapphire f434d52f7f Simplify steam command delimiter logic
This should also fix there being leading whitespace before the
VR_OVERRIDE environment variable.
2026-06-28 18:56:39 -05:00
Patrick Nicolas 51e887ed1f Cleanup active_runtime.json on start 2026-06-17 22:01:51 +02:00
Patrick Nicolas 27b92bba1c Skip pressure vessel var if home is in /var 2026-05-18 17:21:38 +02:00
Patrick Nicolas e1f1e7b800 command line flag for debug gui 2026-04-10 14:39:04 +02:00
Patrick Nicolas 91953fbef7 Remove now unused env vars 2026-03-31 09:06:27 +02:00
Patrick Nicolas 26f21348f3 Export current client tab on dbus 2026-03-14 18:20:32 +01:00
caszuu 1903d5c910 refuse pair enable requests while session is running 2026-02-27 16:03:18 +01:00
Schmarni 1e6937d4a4 Add port and hostname config options
Signed-off-by: Schmarni <[email protected]>
2026-02-26 15:00:39 +01:00
Patrick Nicolas 7732dc87df Add workaround for garbled image on Intel B580 2026-02-18 14:04:45 +01:00
Sapphire e46e8f26b4 Catch exceptions when starting application via client app list 2026-02-04 14:45:30 -06:00
Patrick Nicolas 25a532bc15 Handle Path= argument in .desktop files 2026-01-19 10:40:37 +01:00
Patrick Nicolas 1de1b19201 Spawn children using systemd by default 2026-01-09 09:43:49 +01:00
Patrick Nicolas 12cddd4d6f Add connected headset SystemName property in dbus 2026-01-06 13:07:32 +01:00
InconsolableCellist 867c78d826 Fix infinite loop in find_dir when reaching root directory (#708)
The previous loop condition `not copy.empty()` would never terminate
at the filesystem root since root paths (e.g., "/" or "C:\") are never
empty and their parent_path() returns themselves.
2026-01-03 13:10:56 +01:00
Patrick Nicolas 0b526cef9d configure bitrate on client only 2025-12-10 14:32:01 +01:00
Patrick Nicolas 5ab7731be3 Remove server foveation config, rework defaults 2025-12-10 14:00:47 +01:00
Patrick Nicolas 7c2057ec9e Add message to restart server after config change 2025-11-19 14:16:15 +01:00
Sapphire ee8d6229b3 Update monado 2025-11-15 20:34:57 +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
Patrick Nicolas aca45420dd Show server error on GUI (encoders currently) 2025-10-05 20:26:07 +02:00
Patrick Nicolas fcbdda9908 Don't fake user presence, use focused instead 2025-09-27 10:08:51 +02:00
Patrick Nicolas 66ca73981d Fix tagged version download 2025-09-24 07:53:21 +02:00
Patrick Nicolas f159e58c12 Abbreviate pressure vessel variable in flatpak 2025-09-23 16:36:56 +02:00
Patrick Nicolas a2e470799e Add --version option 2025-08-11 14:53:32 +02:00
Patrick Nicolas 30ceab5b30 Forward PATH when starting application in systemd mode 2025-08-10 22:06:59 +02:00
Patrick Nicolas b036731b51 Hide Steam info when not needed 2025-08-09 00:07:35 +02:00
Patrick Nicolas e02d115a4e Use PRESSURE_VESSEL_IMPORT_OPENXR_1_RUNTIMES 2025-08-09 00:07:35 +02:00
Patrick Nicolas 45e0fce476 Add packet to start an application 2025-07-26 20:05:35 +02:00
Patrick Nicolas d3e10dc31b Rewrite child application management
Forked applications are managed by a class, which can track more than
one child.
Systemd mode uses transient units, libsystemd is replaced by
gdbus-codegen, the management objects shares the interface with forked
application.
2025-07-22 20:49:32 +02:00
Patrick Nicolas 2f5496c06e Give application to launch instead of reading conf 2025-07-17 15:28:41 +02:00
Patrick Nicolas 286268d2c6 Start application in transient unit in systemd mode 2025-07-16 22:07:03 +02:00
Patrick Nicolas 11cd9235d9 Allow multiple configuration files
Will merge contents from
@CMAKE_INSTALL_PREFIX@/share/wivrn/config.json
/etc/wivrn/config.json
~/.config/wivrn.config.json (XDG_CONFIG_DIR in fact)

If -f option is provided, just parse that file, don't merge anything
2025-07-06 10:22:25 +02:00
Patrick Nicolas b9752276b7 read DBUS env variables for --systemd mode 2025-06-23 18:30:27 +02:00
Patrick Nicolas 444a5fed9e Force compositor scale to 100% 2025-06-20 09:17:07 +02:00
Patrick Nicolas aef8efba8a Drop mipmaps for foveation 2025-06-06 20:04:40 +02:00
Sapphire b29abf073e Fix call to ipc_server_main, add config options for debug GUI and steamvr_lh
* Add config option for SteamVR lighthouse device support

* Add dashboard toggles for debug window and steamvr_lh

* clang-format

* Hide advanced toggles if not enabled during build
2025-05-21 04:58:06 -05:00
Guillaume Meunier 360d28d68e Fix libnotify-CRITICAL when encryption is disabled 2025-03-25 21:21:32 +01:00
Guillaume Meunier 345db32bb1 Always use stderr instead of stdout for server logs 2025-03-25 21:15:01 +01:00
Guillaume Meunier 57a0cf1d4b Display the last connection time in dashboard/wivrnctl 2025-03-25 21:15:01 +01:00
peelz e23d24c37d Fix active runtime getting set before applying the config override 2025-03-23 23:16:57 +01:00
peelz 98accc1219 Fix active runtime always getting set early 2025-03-23 23:16:57 +01:00
t20kdc 0e9b72c776 Add OpenVR runtime override as a setting, add --early-active-runtime to test this (rv2)
I ran into some trouble debugging issues with Vivecraft because my OpenVR runtime setup was being automatically overridden by WiVRn.

It would be nice to attach a UI to this option, but I'm not sure on the details there and I'd like to keep the PR small and easily reviewed.

Being able to set the compat path is more useful than simply disabling compat override because of things like pressure-vessel bypass, which are finicky to get right.
2025-03-21 22:40:48 +01:00
Sapphire 5b49e2fc9f Add xrizer support 2025-02-16 13:27:26 +01:00