From 5f373460a12d988f50fdbc412ec61d05b8cb19b7 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 6 Oct 2025 12:57:25 +0200 Subject: [PATCH 1/4] Silence qml "Created graphical object..." warning --- dashboard/qml/Main.qml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/dashboard/qml/Main.qml b/dashboard/qml/Main.qml index 10d21ad1..ea1df8ae 100644 --- a/dashboard/qml/Main.qml +++ b/dashboard/qml/Main.qml @@ -77,7 +77,7 @@ Kirigami.ApplicationWindow { if (root.first_run && started) { console.log("First run"); - root.pageStack.push(Qt.resolvedUrl("WizardPage.qml")); + root.pageStack.push(Qt.createComponent("WizardPage.qml").createObject()); root.first_run = false; } } @@ -352,14 +352,14 @@ Kirigami.ApplicationWindow { Kirigami.Action { text: i18n("Wizard") icon.name: "tools-wizard-symbolic" - onTriggered: root.pageStack.push(Qt.resolvedUrl("WizardPage.qml")) + onTriggered: root.pageStack.push(Qt.createComponent("WizardPage.qml").createObject()) visible: root.pageStack.depth == 1 enabled: root.server_started }, Kirigami.Action { text: i18n("Install the app") icon.name: "install-symbolic" - onTriggered: root.pageStack.push(Qt.resolvedUrl("ApkInstallPage.qml")) + onTriggered: root.pageStack.push(Qt.createComponent("ApkInstallPage.qml").createObject()) visible: root.pageStack.depth == 1 enabled: root.server_started && Adb.adbInstalled tooltip: { @@ -370,32 +370,24 @@ Kirigami.ApplicationWindow { return ""; } }, - // Kirigami.Action { - // text: i18n("Statistics") - // icon.name: "office-chart-line-symbolic" - // onTriggered: root.pageStack.push(Qt.resolvedUrl("HeadsetStatsPage.qml")) - // visible: root.pageStack.depth == 1 - // enabled: root.server_started && Adb.adbInstalled && WivrnServer.headsetConnected - // }, - Kirigami.Action { text: i18n("Headsets") icon.name: "item-symbolic" - onTriggered: root.pageStack.push(Qt.resolvedUrl("HeadsetsPage.qml")) + onTriggered: root.pageStack.push(Qt.createComponent("HeadsetsPage.qml").createObject()) visible: root.pageStack.depth == 1 enabled: root.server_started }, Kirigami.Action { text: i18n("Settings") icon.name: "settings-configure-symbolic" - onTriggered: root.pageStack.push(Qt.resolvedUrl("SettingsPage.qml")) + onTriggered: root.pageStack.push(Qt.createComponent("SettingsPage.qml").createObject()) visible: root.pageStack.depth == 1 enabled: root.server_started }, Kirigami.Action { text: i18n("Troubleshoot") icon.name: "help-contents-symbolic" - onTriggered: root.pageStack.push(Qt.resolvedUrl("TroubleshootPage.qml")) + onTriggered: root.pageStack.push(Qt.createComponent("TroubleshootPage.qml").createObject()) enabled: root.pageStack.depth == 1 } ] From e4acf2401e7fe728746ac40014ed84221ef2cb5f Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 6 Oct 2025 13:47:28 +0200 Subject: [PATCH 2/4] Default passthrough encoder to encoder[0] settings --- docs/configuration.md | 3 ++- server/encoder/encoder_settings.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index e74a45be..7e050913 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -158,7 +158,8 @@ Json object of additional options to pass directly to ffmpeg `avcodec_open2`'s ` ## `encoder-passthrough` -The single encoder used for passthrough (transparency), contains the same elements as the other encoders, except for width/height and offsets. +The single encoder used for passthrough (transparency), contains the same elements as the other encoders, except for width/height and offsets which are ignored. +Default values are those computed for the first encoder. ## `application` Default value: unset diff --git a/server/encoder/encoder_settings.cpp b/server/encoder/encoder_settings.cpp index da6c942a..b79fd22b 100644 --- a/server/encoder/encoder_settings.cpp +++ b/server/encoder/encoder_settings.cpp @@ -359,7 +359,7 @@ std::vector get_encoder_settings(wivrn_vk_bundle & bundle, uin if (config.encoders.empty()) config.encoders = get_encoder_default_settings(bundle, info.supported_codecs, config.bit_depth); if (not config.encoder_passthrough) - config.encoder_passthrough.emplace(); + config.encoder_passthrough = config.encoders.front(); config.encoder_passthrough->width = 1; config.encoder_passthrough->height = 1; From cb7e6dabfcb79fa7c3199ef16d21231b8ab35d72 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 6 Oct 2025 14:00:57 +0200 Subject: [PATCH 3/4] Update encoder configuration printing --- server/encoder/encoder_settings.cpp | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/server/encoder/encoder_settings.cpp b/server/encoder/encoder_settings.cpp index b79fd22b..7a5e056e 100644 --- a/server/encoder/encoder_settings.cpp +++ b/server/encoder/encoder_settings.cpp @@ -87,24 +87,23 @@ static void split_bitrate(std::vector & encoders, uint6 void print_encoders(const std::vector & encoders) { int group = -1; + std::stringstream str; + str << "Encoder configuration:"; for (auto & encoder: encoders) { if (encoder.group != group) { group = encoder.group; - U_LOG_I("Group %d", group); + str << "\n\t* Group " << group << ":"; } - - std::string codec(magic_enum::enum_name(encoder.codec)); - U_LOG_I("\t%s (%s %d-bit)", encoder.encoder_name.c_str(), codec.c_str(), encoder.bit_depth); - U_LOG_I("\tchannels: %s", std::string(magic_enum::enum_name(encoder.channels)).c_str()); - U_LOG_I("\tsize:%" PRIu16 "x%" PRIu16 " offset:%" PRIu16 "x%" PRIu16, - encoder.width, - encoder.height, - encoder.offset_x, - encoder.offset_y); - U_LOG_I("\tbitrate: %" PRIu64 "Mbit/s", encoder.bitrate / 1'000'000); + else + str << "\n"; + str << "\n\t\t" << encoder.encoder_name << " (" << magic_enum::enum_name(encoder.codec) << " " << encoder.bit_depth << "-bit)" + << "\n\t\tchannels: " << magic_enum::enum_name(encoder.channels) + << "\n\t\tsize: " << encoder.width << "x" << encoder.height << " offset: " << encoder.offset_x << "x" << encoder.offset_y + << "\n\t\tbitrate: " << encoder.bitrate / 1'000'000 << "Mbit/s"; } + U_LOG_I("%s", str.str().c_str()); } static void check_scale(std::string_view encoder_name, video_codec codec, uint16_t width, uint16_t height, std::array & scale) From 1365f4f527efe4bf3764a3a09273e89640a6bf65 Mon Sep 17 00:00:00 2001 From: Kresny Date: Mon, 6 Oct 2025 15:02:01 +0200 Subject: [PATCH 4/4] Documentation improvements (#517) * Fixed flatpack info * logs * ufw instructions * fixed Pico name --- README.md | 12 +++++------- docs/configuration.md | 2 ++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 71490763..0533c59e 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ WiVRn wirelessly connects a standalone VR headset to a Linux computer. You can then play PCVR games on the headset while processing is done on the computer. -It supports a wide range of headsets such as Quest 1 / 2 / Pro / 3 / 3S, Pico Neo 4, HTC Vive Focus 3, HTC Vive XR elite and most other Android based headsets. +It supports a wide range of headsets such as Quest 1 / 2 / Pro / 3 / 3S, Pico Neo 3, Pico 4, HTC Vive Focus 3, HTC Vive XR elite and most other Android based headsets. # Getting started @@ -105,11 +105,11 @@ See [configuration](docs/configuration.md) for editing the configuration manuall If the server list is empty in the headset app: - Make sure your computer is connected on the same network as your headset - Check that avahi is running with `systemctl status avahi-daemon`, if it is not, enable it with `systemctl enable --now avahi-daemon` -- If you have a firewall, check that port 5353 (UDP) is open +- If you have a firewall, check that port 5353 (UDP) is open (for ufw, use `ufw allow 5353/udp`) ## My headset does not connect to my computer -- If you have a firewall, check that port 9757 (UDP and TCP) is open -- The server and client must be compatible: +- If you have a firewall, check that port 9757 (UDP and TCP) is open (for ufw, use `ufw allow 9757`) +- The server and client must be compatible. ## How do I use a wired connection? @@ -129,9 +129,7 @@ If the server list is empty in the headset app: ## How do I see server logs when using the dashboard? -``` -journalctl -f --no-hostname -u io.github.wivrn.wivrn.desktop -``` +Click Troubleshoot > Open server logs, or navigate to `${XDG_STATE_HOME}/wivrn/wivrn-dashboard` (with fallback to `${HOME}/.local/state` for `${XDG_STATE_HOME}`, or for flatpak `${HOME}/.var/app/io.github.wivrn.wivrn/.local/state/wivrn/wivrn-dashboard`. # Contributing diff --git a/docs/configuration.md b/docs/configuration.md index 7e050913..0c122085 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -8,6 +8,8 @@ Files are read from Files later in the list replace top-level values from previous ones. +If you installed WiVRn from a flatpack, the config is in `$HOME/.var/app/io.github.wivrn.wivrn/config/wivrn/config.json`. + All elements are optional and have default values. ## `scale`