From d4854d77b015f40c4c4c4301d47f00b46cd4e16b Mon Sep 17 00:00:00 2001 From: Francesco <66080458+chicco-carone@users.noreply.github.com> Date: Tue, 6 Jan 2026 10:28:01 +0100 Subject: [PATCH 01/10] Fix pipewire sink setup (#717) --- server/audio/audio_pipewire.cpp | 74 ++++++++++++++++++++++++++++----- 1 file changed, 63 insertions(+), 11 deletions(-) diff --git a/server/audio/audio_pipewire.cpp b/server/audio/audio_pipewire.cpp index 34b6060a..83ab0f6a 100644 --- a/server/audio/audio_pipewire.cpp +++ b/server/audio/audio_pipewire.cpp @@ -104,6 +104,14 @@ struct pipewire_device : public audio_device .sample_rate = info.speaker->sample_rate, }; + // Calculate quantum size: 5ms buffer for low latency while maintaining stability + // Smaller buffers (<5ms) risk underruns, larger ones (>10ms) add perceptible latency + uint32_t quantum_size = (desc.speaker->sample_rate * 5) / 1000; + uint32_t frame_size = desc.speaker->num_channels * sizeof(int16_t); + + std::string rate_str = std::format("1/{}", desc.speaker->sample_rate); + std::string latency_str = std::format("{}/{}", quantum_size, desc.speaker->sample_rate); + speaker.reset(pw_stream_new_simple( pw_main_loop_get_loop(pw_loop.get()), sink_name.c_str(), @@ -120,6 +128,19 @@ struct pipewire_device : public audio_device "Audio/Sink", PW_KEY_MEDIA_ROLE, "Game", + PW_KEY_NODE_VIRTUAL, + "true", + // Set stream rate to match client, preventing PipeWire from doing + // unnecessary resampling which degrades audio quality + PW_KEY_NODE_RATE, + rate_str.c_str(), + // Declare target latency to help PipeWire optimize buffering + PW_KEY_NODE_LATENCY, + latency_str.c_str(), + // Force constant quantum size to prevent dynamic buffer size changes + // Variable buffer sizes cause crackling in effect processors (EasyEffects) + PW_KEY_NODE_FORCE_QUANTUM, + latency_str.c_str(), NULL), &speaker_events, this)); @@ -127,22 +148,26 @@ struct pipewire_device : public audio_device std::vector buffer(1024); spa_pod_builder b = SPA_POD_BUILDER_INIT(buffer.data(), uint32_t(buffer.size())); - spa_audio_info_raw info{ + spa_audio_info_raw audio_info{ .format = SPA_AUDIO_FORMAT_S16, .rate = desc.speaker->sample_rate, .channels = desc.speaker->num_channels, }; - const spa_pod * param = spa_format_audio_raw_build(&b, SPA_PARAM_EnumFormat, &info); + const spa_pod * params[1]; + params[0] = spa_format_audio_raw_build(&b, SPA_PARAM_EnumFormat, &audio_info); + + // Stream flags: + // - DRIVER: makes this node the graph clock master, preventing sync drift in the audio chain if (pw_stream_connect( speaker.get(), PW_DIRECTION_INPUT, PW_ID_ANY, - pw_stream_flags(PW_STREAM_FLAG_AUTOCONNECT | PW_STREAM_FLAG_MAP_BUFFERS), - ¶m, + pw_stream_flags(PW_STREAM_FLAG_AUTOCONNECT | PW_STREAM_FLAG_MAP_BUFFERS | PW_STREAM_FLAG_RT_PROCESS), + params, 1) < 0) throw std::runtime_error("failed to connect speaker stream"); - U_LOG_I("pipewire speaker stream created"); + U_LOG_I("pipewire speaker stream created (quantum: %u frames, %.2f ms)", quantum_size, (quantum_size * 1000.0) / desc.speaker->sample_rate); } if (info.microphone) @@ -152,6 +177,14 @@ struct pipewire_device : public audio_device .sample_rate = info.microphone->sample_rate, }; + // Calculate quantum size: 5ms buffer for low latency while maintaining stability + // Smaller buffers (<5ms) risk underruns, larger ones (>10ms) add perceptible latency + uint32_t quantum_size = (desc.microphone->sample_rate * 5) / 1000; + uint32_t frame_size = desc.microphone->num_channels * sizeof(int16_t); + + std::string rate_str = std::format("1/{}", desc.microphone->sample_rate); + std::string latency_str = std::format("{}/{}", quantum_size, desc.microphone->sample_rate); + microphone.reset(pw_stream_new_simple( pw_main_loop_get_loop(pw_loop.get()), source_name.c_str(), @@ -168,28 +201,42 @@ struct pipewire_device : public audio_device "Audio/Source", PW_KEY_MEDIA_ROLE, "Game", + PW_KEY_NODE_VIRTUAL, + "true", + // Set stream rate to match client, preventing PipeWire from doing + // unnecessary resampling which degrades audio quality + PW_KEY_NODE_RATE, + rate_str.c_str(), + // Declare target latency to help PipeWire optimize buffering + PW_KEY_NODE_LATENCY, + latency_str.c_str(), + // Force constant quantum size to prevent dynamic buffer size changes + PW_KEY_NODE_FORCE_QUANTUM, + latency_str.c_str(), NULL), &mic_events, this)); std::vector buffer(1024); spa_pod_builder b = SPA_POD_BUILDER_INIT(buffer.data(), uint32_t(buffer.size())); - spa_audio_info_raw info{ + spa_audio_info_raw audio_info{ .format = SPA_AUDIO_FORMAT_S16, .rate = desc.microphone->sample_rate, .channels = desc.microphone->num_channels, }; - const spa_pod * param = spa_format_audio_raw_build(&b, SPA_PARAM_EnumFormat, &info); + + const spa_pod * params[1]; + params[0] = spa_format_audio_raw_build(&b, SPA_PARAM_EnumFormat, &audio_info); if (pw_stream_connect( microphone.get(), PW_DIRECTION_OUTPUT, PW_ID_ANY, pw_stream_flags(PW_STREAM_FLAG_AUTOCONNECT | PW_STREAM_FLAG_MAP_BUFFERS), - ¶m, + params, 1) < 0) throw std::runtime_error("failed to connect microphone stream"); - U_LOG_I("pipewire microphone stream created"); + U_LOG_I("pipewire microphone stream created (quantum: %u frames, %.2f ms)", quantum_size, (quantum_size * 1000.0) / desc.microphone->sample_rate); } if (desc.speaker or desc.microphone) @@ -217,10 +264,14 @@ void pipewire_device::mic_process(void * self_v) const auto & data = buffer->buffer->datas[0]; uint8_t * data_ptr = (uint8_t *)data.data; if (not data.data) + { + pw_stream_queue_buffer(self->microphone.get(), buffer); return; + } const size_t frame_size = self->desc.microphone->num_channels * sizeof(int16_t); + // Use consistent buffer size based on stream quantum #if PW_CHECK_VERSION(0, 3, 49) size_t num_frames = buffer->requested; #else @@ -228,7 +279,8 @@ void pipewire_device::mic_process(void * self_v) #endif if (num_frames == 0) { - num_frames = data.maxsize / frame_size; + uint32_t quantum_size = (self->desc.microphone->sample_rate * 5) / 1000; + num_frames = std::min(quantum_size, data.maxsize / frame_size); } data.chunk->offset = 0; data.chunk->size = 0; @@ -347,4 +399,4 @@ std::shared_ptr create_pipewire_handle( return nullptr; } } -} // namespace wivrn +} // namespace wivrn \ No newline at end of file From b284daca6a7a85756d615d028df64643618f3040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A1udio=20=27Patola=27=20Sampaio?= Date: Tue, 6 Jan 2026 10:35:23 +0100 Subject: [PATCH 02/10] Translated 1 message to pt-br --- locale/pt_BR/wivrn-dashboard.po | 75 ++++++++++++++++++--------------- 1 file changed, 40 insertions(+), 35 deletions(-) diff --git a/locale/pt_BR/wivrn-dashboard.po b/locale/pt_BR/wivrn-dashboard.po index e08b9601..92001876 100644 --- a/locale/pt_BR/wivrn-dashboard.po +++ b/locale/pt_BR/wivrn-dashboard.po @@ -1,7 +1,7 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the WiVRn-dashboard package. # -# SPDX-FileCopyrightText: 2025 Claudio Sampaio (Patola) +# SPDX-FileCopyrightText: 2025, 2026 Claudio Sampaio (Patola) # LuckShiba , 2025. # # SPDX-FileCopyrightText: 2025 myghi63 @@ -10,8 +10,8 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn-dashboard\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-12-13 11:28+0100\n" -"PO-Revision-Date: 2025-12-13 13:26+0100\n" +"POT-Creation-Date: 2026-01-05 22:05+0100\n" +"PO-Revision-Date: 2026-01-06 10:34+0100\n" "Last-Translator: Claudio Sampaio (Patola) \n" "Language-Team: Portuguese <>\n" "Language: pt_BR\n" @@ -19,7 +19,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Lokalize 25.08.3\n" +"X-Generator: Lokalize 25.12.0\n" #: dashboard/apk_installer.cpp:137 #, kde-format @@ -92,8 +92,8 @@ msgstr "Verificando a última versão..." msgid "No APK is available for this version" msgstr "Nenhum APK está disponível para esta versão" -#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:321 -#: dashboard/qml/Main.qml:386 dashboard/qml/WizardPage.qml:211 +#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:325 +#: dashboard/qml/Main.qml:388 dashboard/qml/WizardPage.qml:211 #: dashboard/qml/WizardPage.qml:337 #, kde-format msgid "ADB is not installed" @@ -143,7 +143,7 @@ msgstr "Reinstalar WiVRn" msgid "Install WiVRn" msgstr "Instalar WiVRn" -#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:391 +#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:393 #, kde-format msgid "Headsets" msgstr "Headsets" @@ -239,40 +239,40 @@ msgstr "Parear um novo headset" msgid "Headset statistics" msgstr "Estatísticas do headset" -#: dashboard/qml/Main.qml:120 +#: dashboard/qml/Main.qml:124 #, kde-format msgid "Avahi daemon is not installed" msgstr "Avahi daemon não está instalado" -#: dashboard/qml/Main.qml:128 +#: dashboard/qml/Main.qml:132 #, kde-format msgid "Avahi daemon is not started" msgstr "Avahi daemon não foi iniciado" -#: dashboard/qml/Main.qml:135 dashboard/qml/Main.qml:149 -#: dashboard/qml/Main.qml:201 +#: dashboard/qml/Main.qml:139 dashboard/qml/Main.qml:153 +#: dashboard/qml/Main.qml:205 #, kde-format msgid "Fix it" msgstr "Conserte" -#: dashboard/qml/Main.qml:143 +#: dashboard/qml/Main.qml:147 #, kde-format msgid "Firewall may not allow port 9757" msgstr "O firewall pode não permitir a porta 9757" -#: dashboard/qml/Main.qml:157 +#: dashboard/qml/Main.qml:161 #, kde-format msgid "" "NVIDIA GPUs require at least driver version 565.77, current version is %1" msgstr "" "GPUs NVIDIA requerem pelo menos o driver versão 565.77, a versão atual é %1" -#: dashboard/qml/Main.qml:163 +#: dashboard/qml/Main.qml:167 #, kde-format msgid "More info" msgstr "Mais informações" -#: dashboard/qml/Main.qml:171 +#: dashboard/qml/Main.qml:175 #, kde-format msgid "" "Use the Mesa (radv) driver for AMD GPUs\n" @@ -281,7 +281,7 @@ msgstr "" "Use o driver Mesa (radv) para GPUs AMD\n" "Codificação de hardware com a vaapi não funciona com AMDVLK e AMDGPU-PRO" -#: dashboard/qml/Main.qml:179 +#: dashboard/qml/Main.qml:183 #, kde-format msgid "" "No OpenVR compatibility detected, Steam games won't be able to load VR.\n" @@ -291,88 +291,88 @@ msgstr "" "conseguirão carregar em VR.\n" "Instale o xrizer ou o OpenComposite." -#: dashboard/qml/Main.qml:187 +#: dashboard/qml/Main.qml:191 #, kde-format msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn." msgstr "A Steam está instalada como snap. Snaps não são compatíveis com WiVRn." -#: dashboard/qml/Main.qml:195 +#: dashboard/qml/Main.qml:199 #, kde-format msgid "" "Steam is installed as a flatpak but does not have sufficient permissions." msgstr "A Steam está instalada como flatpak e não tem permissões suficientes." -#: dashboard/qml/Main.qml:210 +#: dashboard/qml/Main.qml:214 #, kde-format msgid "Restart the server for configuration changes to take effect" msgstr "" "Reinicie o servidor para que as alterações de configuração tenham efeito" -#: dashboard/qml/Main.qml:216 +#: dashboard/qml/Main.qml:220 #, kde-format msgctxt "restart the server" msgid "Restart now" msgstr "Reiniciar agora" -#: dashboard/qml/Main.qml:241 +#: dashboard/qml/Main.qml:245 #, kde-format msgid "Server failed to start" msgstr "Servidor falhou em iniciar" -#: dashboard/qml/Main.qml:247 dashboard/qml/TroubleshootPage.qml:89 +#: dashboard/qml/Main.qml:251 dashboard/qml/TroubleshootPage.qml:89 #, kde-format msgid "Open server logs" msgstr "Abrir logs do servidor" -#: dashboard/qml/Main.qml:276 +#: dashboard/qml/Main.qml:280 #, kde-format msgctxt "whether the server is running, displayed in front of a checkbox" msgid "Running" msgstr "Rodando" -#: dashboard/qml/Main.qml:291 +#: dashboard/qml/Main.qml:295 #, kde-format msgctxt "whether pairing is enabled, displayed in front of a checkbox" msgid "Pairing" msgstr "Pareando" -#: dashboard/qml/Main.qml:304 +#: dashboard/qml/Main.qml:308 #, kde-format msgid "PIN: %1" msgstr "PIN: %1" -#: dashboard/qml/Main.qml:312 dashboard/qml/WizardPage.qml:329 +#: dashboard/qml/Main.qml:316 dashboard/qml/WizardPage.qml:329 #, kde-format msgid "Connect by USB" msgstr "Conectar pela USB" -#: dashboard/qml/Main.qml:323 dashboard/qml/WizardPage.qml:339 +#: dashboard/qml/Main.qml:327 dashboard/qml/WizardPage.qml:339 #, kde-format msgid "No headset is connected or your headset is not in developer mode" msgstr "" "Nenhum headset está conectado ou seu headset não está em modo desenvolvedor" -#: dashboard/qml/Main.qml:331 +#: dashboard/qml/Main.qml:335 #, kde-format msgid "Disconnect" msgstr "Desconectar" -#: dashboard/qml/Main.qml:349 +#: dashboard/qml/Main.qml:353 #, kde-format msgid "Steam information" msgstr "Informações da Steam" -#: dashboard/qml/Main.qml:370 +#: dashboard/qml/Main.qml:374 #, kde-format msgid "Wizard" msgstr "Assistente" -#: dashboard/qml/Main.qml:377 +#: dashboard/qml/Main.qml:380 #, kde-format msgid "Install the app" msgstr "Instalar o aplicativo" -#: dashboard/qml/Main.qml:398 dashboard/qml/SettingsPage.qml:14 +#: dashboard/qml/Main.qml:399 dashboard/qml/SettingsPage.qml:14 #, kde-format msgid "Settings" msgstr "Ajustes" @@ -382,6 +382,11 @@ msgstr "Ajustes" msgid "Troubleshoot" msgstr "Resolver problemas" +#: dashboard/qml/Main.qml:412 +#, kde-format +msgid "Version %1" +msgstr "Versão %1" + #: dashboard/qml/SelectGame.qml:14 #, kde-format msgctxt "don't start an application automatically" @@ -678,9 +683,9 @@ msgid "" "For game specific issues, check on vronlinux DB if there are known bugs or workarounds." msgstr "" -"Para problemas específicos de jogos, consulte o vronlinux DB para ver se há bugs ou reparos conhecidos." +"Para problemas específicos de jogos, consulte o vronlinux DB para ver se há bugs ou reparos " +"conhecidos." #: dashboard/qml/TroubleshootPage.qml:79 #, kde-format From 12cddd4d6f8aa315a56370312664eaa96939eac1 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 6 Jan 2026 13:06:41 +0100 Subject: [PATCH 03/10] Add connected headset SystemName property in dbus --- dashboard/wivrn_server.cpp | 5 +++++ dashboard/wivrn_server.h | 8 ++++++++ dbus/io.github.wivrn.Server.xml | 1 + server/main.cpp | 1 + 4 files changed, 15 insertions(+) diff --git a/dashboard/wivrn_server.cpp b/dashboard/wivrn_server.cpp index c9482088..ee956546 100644 --- a/dashboard/wivrn_server.cpp +++ b/dashboard/wivrn_server.cpp @@ -439,6 +439,11 @@ void wivrn_server::on_server_properties_changed(const QString & interface_name, supportedCodecsChanged(m_supportedCodecs = changed_properties["SupportedCodecs"].toStringList()); } + if (changed_properties.contains("SystemName")) + { + systemNameChanged(m_systemName = changed_properties["SystemName"].toString()); + } + if (changed_properties.contains("SteamCommand")) { steamCommandChanged(m_steamCommand = changed_properties["SteamCommand"].toString()); diff --git a/dashboard/wivrn_server.h b/dashboard/wivrn_server.h index 5cdcbf4c..b5d07f1d 100644 --- a/dashboard/wivrn_server.h +++ b/dashboard/wivrn_server.h @@ -204,6 +204,7 @@ public: Q_PROPERTY(int speakerChannels READ speakerChannels NOTIFY speakerChannelsChanged) Q_PROPERTY(int speakerSampleRate READ speakerSampleRate NOTIFY speakerSampleRateChanged) Q_PROPERTY(QStringList supportedCodecs READ supportedCodecs NOTIFY supportedCodecsChanged) + Q_PROPERTY(QString systemName READ systemName NOTIFY systemNameChanged) Q_PROPERTY(QString steamCommand READ steamCommand NOTIFY steamCommandChanged) // hostnamed @@ -317,6 +318,11 @@ public: return m_supportedCodecs; } + QString systemName() const + { + return m_systemName; + } + QString steamCommand() const { return m_steamCommand; @@ -368,6 +374,7 @@ private: int m_speakerChannels{}; int m_speakerSampleRate{}; QStringList m_supportedCodecs{}; + QString m_systemName{}; QString m_steamCommand{}; Q_SIGNALS: @@ -394,6 +401,7 @@ Q_SIGNALS: void speakerSampleRateChanged(int); void supportedCodecsChanged(QStringList); void steamCommandChanged(QString); + void systemNameChanged(QString); void serverLogsChanged(QString); void serverError(serverErrorData); }; diff --git a/dbus/io.github.wivrn.Server.xml b/dbus/io.github.wivrn.Server.xml index 1d75f66b..f37af7bd 100644 --- a/dbus/io.github.wivrn.Server.xml +++ b/dbus/io.github.wivrn.Server.xml @@ -63,6 +63,7 @@ + diff --git a/server/main.cpp b/server/main.cpp index a4e60dea..61a83377 100644 --- a/server/main.cpp +++ b/server/main.cpp @@ -769,6 +769,7 @@ void on_headset_info_packet(const wivrn::from_headset::headset_info_packet & inf } codecs.push_back(nullptr); wivrn_server_set_supported_codecs(dbus_server, codecs.data()); + wivrn_server_set_system_name(dbus_server, info.system_name.c_str()); } void on_name_acquired(GDBusConnection * connection, const gchar * name, gpointer user_data) From d6768d59a7ab87cfe63e9873111c05612e2bc23f Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 6 Jan 2026 13:07:40 +0100 Subject: [PATCH 04/10] Rework dashboard main page --- dashboard/qml/Main.qml | 161 ++++++++++++++++++++++------------------- 1 file changed, 87 insertions(+), 74 deletions(-) diff --git a/dashboard/qml/Main.qml b/dashboard/qml/Main.qml index fd6e4c87..65ce7d40 100644 --- a/dashboard/qml/Main.qml +++ b/dashboard/qml/Main.qml @@ -261,23 +261,25 @@ Kirigami.ApplicationWindow { Layout.leftMargin: Kirigami.Units.largeSpacing Layout.rightMargin: Kirigami.Units.largeSpacing - Item {} - Item { - Layout.fillWidth: true - } Image { source: Qt.resolvedUrl("wivrn.svg") + Layout.columnSpan: parent.width < implicitWidth + parent.columnSpacing + main_form.implicitWidth ? 2 : 1 } - GridLayout { - columns: 2 - Layout.fillWidth: true + Kirigami.FormLayout { + id: main_form + Layout.alignment: Qt.AlignTop + + Kirigami.Heading { + text: i18n("Server status") + level: 1 + type: Kirigami.Heading.Type.Primary + } + Controls.Switch { + Kirigami.FormData.label: i18nc("whether the server is running, displayed in front of a checkbox", "Running") id: switch_running - Layout.row: 0 - Layout.column: 0 - text: i18nc("whether the server is running, displayed in front of a checkbox", "Running") checked: true onCheckedChanged: { @@ -288,84 +290,95 @@ Kirigami.ApplicationWindow { } } - Controls.Switch { - id: switch_pairing - Layout.row: 1 - Layout.column: 0 - text: i18nc("whether pairing is enabled, displayed in front of a checkbox", "Pairing") - onCheckedChanged: { - if (checked && !WivrnServer.pairingEnabled) - WivrnServer.enable_pairing(); - else if (!checked && WivrnServer.pairingEnabled) - WivrnServer.disable_pairing(); + RowLayout { + Kirigami.FormData.label: i18nc("whether pairing is enabled, displayed in front of a checkbox", "Pairing") + enabled: root.server_started + Controls.Switch { + id: switch_pairing + onCheckedChanged: { + if (checked && !WivrnServer.pairingEnabled) + WivrnServer.enable_pairing(); + else if (!checked && WivrnServer.pairingEnabled) + WivrnServer.disable_pairing(); + } } + + Controls.Label { + visible: WivrnServer.pairingEnabled + text: WivrnServer.pin + font.pointSize: Kirigami.Theme.defaultFont.pointSize * 1.1 + } + } + + Kirigami.Heading { + text: i18n("Headset status") + level: 1 + type: Kirigami.Heading.Type.Primary enabled: root.server_started } - Controls.Label { - Layout.row: 1 - Layout.column: 1 - text: WivrnServer.pairingEnabled ? i18n("PIN: %1", WivrnServer.pin) : "" - wrapMode: Text.WordWrap - Layout.fillWidth: true - } + RowLayout { + Kirigami.FormData.label: i18nc("label for headset name/status under server running switch", "Headset") + enabled: root.server_started + Controls.Label { + text: WivrnServer.headsetConnected ? WivrnServer.systemName : i18n("Not connected") + } - Controls.Button { - Layout.row: 2 - Layout.column: 0 - text: i18n("Connect by USB") - onClicked: select_usb_device.connect() - enabled: root.server_started && Adb.adbInstalled && select_usb_device.connected_headset_count > 0 - visible: !WivrnServer.headsetConnected - - Controls.ToolTip.visible: root.server_started && hovered - Controls.ToolTip.delay: Kirigami.Units.toolTipDelay - Controls.ToolTip.text: { - if (!Adb.adbInstalled) - return i18n("ADB is not installed"); - if (select_usb_device.connected_headset_count == 0) - return i18n("No headset is connected or your headset is not in developer mode"); - return ""; + Controls.Button { + text: i18n("Disconnect") + icon.name: "network-disconnect-symbolic" + onClicked: WivrnServer.disconnect_headset() + visible: root.server_started && WivrnServer.headsetConnected } } + // USB mode Controls.Button { - Layout.row: 2 - Layout.column: 0 - text: i18n("Disconnect") - icon.name: "network-disconnect-symbolic" - onClicked: WivrnServer.disconnect_headset() - visible: root.server_started && WivrnServer.headsetConnected + Kirigami.FormData.label: i18nc("label for USB status or connect button", "USB") + text: i18nc("usb connect button", "Connect (wired)") + onClicked: select_usb_device.connect() + enabled: root.server_started && !WivrnServer.headsetConnected + visible: Adb.adbInstalled && select_usb_device.connected_headset_count > 0 + } + + Controls.Label { + Kirigami.FormData.label: i18nc("label for USB status or connect button", "USB") + visible: !Adb.adbInstalled + enabled: root.server_started + text: i18n("ADB is not installed") + } + + Controls.Label { + Kirigami.FormData.label: i18nc("label for USB status or connect button", "USB") + visible: Adb.adbInstalled && select_usb_device.connected_headset_count == 0 + enabled: root.server_started + text: i18n("No headset is connected or your headset is not in developer mode"); + Layout.fillWidth: true + wrapMode: Text.Wrap } } + } - Kirigami.Separator { - Layout.columnSpan: 2 - Layout.fillWidth: true - opacity: steam_info.opacity - visible: steam_info.visible - Layout.maximumHeight: root.server_started ? -1 : 0 - } + Kirigami.Separator { + Layout.fillWidth: true + visible: steam_info.visible + } - Kirigami.Heading { - level: 1 - wrapMode: Text.WordWrap - text: i18n("Steam information") - opacity: steam_info.opacity - visible: steam_info.visible - Layout.maximumHeight: root.server_started ? -1 : 0 - } - SteamLaunchOptions { - id: steam_info - visible: WivrnServer.steamCommand != "" - opacity: root.server_started - Layout.maximumHeight: root.server_started ? -1 : 0 - } + Kirigami.Heading { + level: 1 + type: Kirigami.Heading.Type.Primary + wrapMode: Text.WordWrap + text: i18n("Steam information") + visible: steam_info.visible + } + SteamLaunchOptions { + id: steam_info + visible: root.server_started && WivrnServer.steamCommand != "" + } - Item { - // spacer item - Layout.fillHeight: true - } + Item { + // spacer item + Layout.fillHeight: true } } From 2e1e5571d6ab7738f47bb3a0d570e267cbbc0f38 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 6 Jan 2026 14:55:37 +0100 Subject: [PATCH 05/10] Left align server/headset info --- dashboard/qml/Main.qml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dashboard/qml/Main.qml b/dashboard/qml/Main.qml index 65ce7d40..84834969 100644 --- a/dashboard/qml/Main.qml +++ b/dashboard/qml/Main.qml @@ -257,19 +257,21 @@ Kirigami.ApplicationWindow { } GridLayout { - columns: 2 + columns: 3 Layout.leftMargin: Kirigami.Units.largeSpacing Layout.rightMargin: Kirigami.Units.largeSpacing + columnSpacing: 0 Image { source: Qt.resolvedUrl("wivrn.svg") - Layout.columnSpan: parent.width < implicitWidth + parent.columnSpacing + main_form.implicitWidth ? 2 : 1 + Layout.columnSpan: parent.width < implicitWidth + main_form.implicitWidth ? 3 : 1 } Kirigami.FormLayout { id: main_form Layout.alignment: Qt.AlignTop + Layout.horizontalStretchFactor: 0 Kirigami.Heading { text: i18n("Server status") @@ -357,6 +359,11 @@ Kirigami.ApplicationWindow { wrapMode: Text.Wrap } } + Item { + // spacer item + Layout.fillWidth: true + Layout.horizontalStretchFactor: 1 + } } Kirigami.Separator { From a291226a46f7ba0c6145c4e536b605f7caec77e5 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 6 Jan 2026 17:22:39 +0100 Subject: [PATCH 06/10] Add About page --- .github/workflows/Build.yml | 2 +- dashboard/CMakeLists.txt | 3 +++ dashboard/main.cpp | 23 +++++++++++++++++++++++ dashboard/qml/About.qml | 27 +++++++++++++++++++++++++++ dashboard/qml/Main.qml | 5 +++++ 5 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 dashboard/qml/About.qml diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index 08de74cf..25649368 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -121,7 +121,7 @@ jobs: - name: Prepare run: | apt-get update - apt-get install --yes curl wget sudo jq cmake gcc g++ git pkgconf libboost-all-dev libkirigami-dev gettext libarchive-dev nlohmann-json3-dev qcoro-qt6-dev libkf6i18n-dev libkf6coreaddons-dev libkf6qqc2desktopstyle-dev libkf6iconthemes-dev libvulkan-dev libssl-dev librsvg2-dev extra-cmake-modules + apt-get install --yes curl wget sudo jq cmake gcc g++ git pkgconf libboost-all-dev libkirigami-dev gettext libarchive-dev nlohmann-json3-dev qcoro-qt6-dev libkf6i18n-dev libkf6coreaddons-dev libkf6qqc2desktopstyle-dev libkf6iconthemes-dev libvulkan-dev libssl-dev librsvg2-dev extra-cmake-modules qml6-module-org-kde-kirigamiaddons-formcard - uses: actions/cache@v4 with: diff --git a/dashboard/CMakeLists.txt b/dashboard/CMakeLists.txt index e6de68db..bd057e90 100644 --- a/dashboard/CMakeLists.txt +++ b/dashboard/CMakeLists.txt @@ -5,6 +5,7 @@ include(ECMQmlModule) include(I18n) ecm_find_qmlmodule(org.kde.kirigami REQUIRED) +ecm_find_qmlmodule(org.kde.kirigamiaddons.formcard REQUIRED) add_executable(wivrn-dashboard avahi.cpp @@ -27,6 +28,7 @@ qt_add_dbus_interface(DBUS_INTERFACE_SRC ${CMAKE_CURRENT_SOURCE_DIR}/../dbus/io. target_sources(wivrn-dashboard PRIVATE ${DBUS_INTERFACE_SRC}) set_source_files_properties(../images/wivrn.svg PROPERTIES QT_RESOURCE_ALIAS qml/wivrn.svg) +qt_add_resources(wivrn-dashboard PREFIX "/" BASE .. FILES ../images/wivrn.svg) set_source_files_properties(qml/DashboardSettings.qml PROPERTIES QT_QML_SINGLETON_TYPE TRUE @@ -36,6 +38,7 @@ qt_add_qml_module(wivrn-dashboard URI io.github.wivrn.wivrn QML_FILES qml/Main.qml + qml/About.qml qml/ApkInstallPage.qml qml/DashboardSettings.qml qml/SettingsPage.qml diff --git a/dashboard/main.cpp b/dashboard/main.cpp index d8accce5..55a7aa1b 100644 --- a/dashboard/main.cpp +++ b/dashboard/main.cpp @@ -1,4 +1,5 @@ #include "version.h" +#include #include #include #include @@ -26,6 +27,28 @@ int main(int argc, char * argv[]) app.setApplicationDisplayName(i18n("WiVRn dashboard")); + KAboutData aboutData( + QStringLiteral("wivrn-dashboard"), + i18nc("@title", "WiVRn"), + wivrn::display_version(), + i18n("WiVRn server"), + KAboutLicense::GPL_V3, + i18n("(c) 2022-2026 WiVRn development team")); + + aboutData.setHomepage("https://github.com/WiVRn/WiVRn"); + aboutData.setBugAddress("https://github.com/WiVRn/WiVRn/issues"); + aboutData.setProgramLogo(QIcon(":/qml/wivrn.svg")); + + aboutData.addComponent( + i18n("Monado"), + i18n("OpenXR runtime"), + "", + "https://monado.dev/", + KAboutLicense::BSL_V1); + + // Set aboutData as information about the app + KAboutData::setApplicationData(aboutData); + QCoro::Qml::registerTypes(); // Work around QTBUG-45105, QTBUG-46074, QTBUG-51112: flicker when resizing diff --git a/dashboard/qml/About.qml b/dashboard/qml/About.qml new file mode 100644 index 00000000..02c567b4 --- /dev/null +++ b/dashboard/qml/About.qml @@ -0,0 +1,27 @@ +import QtQuick +import QtQuick.Controls as Controls +import org.kde.kirigami as Kirigami +import org.kde.coreaddons as KCoreAddons +import org.kde.kirigamiaddons.formcard as FormCard + +FormCard.AboutPage { + aboutData: KCoreAddons.AboutData + donateUrl: "https://opencollective.com/wivrn" + getInvolvedUrl: "" + + footer: Controls.DialogButtonBox { + standardButtons: Controls.DialogButtonBox.NoButton + onAccepted: applicationWindow().pageStack.pop() + + Controls.Button { + text: i18nc("go back to the home page", "Back") + icon.name: "go-previous" + Controls.DialogButtonBox.buttonRole: Controls.DialogButtonBox.AcceptRole + } + } + + Shortcut { + sequences: [StandardKey.Cancel] + onActivated: {if (isCurrentPage) applicationWindow().pageStack.pop();} + } +} diff --git a/dashboard/qml/Main.qml b/dashboard/qml/Main.qml index 84834969..c3b59faf 100644 --- a/dashboard/qml/Main.qml +++ b/dashboard/qml/Main.qml @@ -421,6 +421,11 @@ Kirigami.ApplicationWindow { onTriggered: root.pageStack.push(Qt.createComponent("SettingsPage.qml").createObject()) enabled: root.server_started }, + Kirigami.Action { + text: i18n("About") + icon.name: "help-about" + onTriggered: root.pageStack.push(Qt.createComponent("About.qml").createObject()) + }, Kirigami.Action { text: i18n("Troubleshoot") icon.name: "help-contents-symbolic" From 81363b360215f1cca69044b3433631ed6df3d9b8 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 6 Jan 2026 17:55:25 +0100 Subject: [PATCH 07/10] FR locale --- locale/fr/wivrn-dashboard.po | 166 +++++++++++++++++++++++++---------- 1 file changed, 118 insertions(+), 48 deletions(-) diff --git a/locale/fr/wivrn-dashboard.po b/locale/fr/wivrn-dashboard.po index 864f8df4..2b3305ef 100644 --- a/locale/fr/wivrn-dashboard.po +++ b/locale/fr/wivrn-dashboard.po @@ -1,13 +1,13 @@ # # SPDX-FileCopyrightText: 2025 Guillaume Meunier -# Guillaume Meunier , 2025. +# Guillaume Meunier , 2025-2026. # msgid "" msgstr "" "Project-Id-Version: WiVRn-dashboard\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-12-13 10:21+0100\n" -"PO-Revision-Date: 2025-12-13 10:28+0100\n" +"POT-Creation-Date: 2026-01-06 17:50+0100\n" +"PO-Revision-Date: 2026-01-06 17:52+0100\n" "Last-Translator: Guillaume Meunier \n" "Language-Team: French <>\n" "Language: French\n" @@ -67,11 +67,45 @@ msgstr "La commande « adb install » a échoué : code de retour %1" msgid "Installation successful" msgstr "Installation réussie" -#: dashboard/main.cpp:27 dashboard/qml/Main.qml:12 +#: dashboard/main.cpp:28 dashboard/qml/Main.qml:12 #, kde-format msgid "WiVRn dashboard" msgstr "Tableau de bord de WiVRn" +#: dashboard/main.cpp:32 +#, kde-format +msgctxt "@title" +msgid "WiVRn" +msgstr "WiVRn" + +#: dashboard/main.cpp:34 +#, kde-format +msgid "WiVRn server" +msgstr "Serveur WiVRn" + +#: dashboard/main.cpp:36 +#, kde-format +msgid "(c) 2022-2026 WiVRn development team" +msgstr "(c) 2022-2026 l'équipe de développement WiVRn" + +#: dashboard/main.cpp:43 +#, kde-format +msgid "Monado" +msgstr "Monado" + +#: dashboard/main.cpp:44 +#, kde-format +msgid "OpenXR runtime" +msgstr "Runtime OpenXR" + +#: dashboard/qml/About.qml:17 dashboard/qml/ApkInstallPage.qml:65 +#: dashboard/qml/HeadsetsPage.qml:183 dashboard/qml/HeadsetStatsPage.qml:36 +#: dashboard/qml/TroubleshootPage.qml:71 +#, kde-format +msgctxt "go back to the home page" +msgid "Back" +msgstr "Retour" + #: dashboard/qml/ApkInstallPage.qml:12 dashboard/qml/WizardPage.qml:137 #, kde-format msgid "Install the WiVRn app on your headset" @@ -88,8 +122,8 @@ msgstr "Vérification de la dernière version..." msgid "No APK is available for this version" msgstr "Aucun APK n'est disponible pour cette version" -#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:321 -#: dashboard/qml/Main.qml:386 dashboard/qml/WizardPage.qml:211 +#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:350 +#: dashboard/qml/Main.qml:408 dashboard/qml/WizardPage.qml:211 #: dashboard/qml/WizardPage.qml:337 #, kde-format msgid "ADB is not installed" @@ -111,13 +145,6 @@ msgstr "" "blob/master/docs/building.md#client-headset\">documentation pour " "construire votre propre client." -#: dashboard/qml/ApkInstallPage.qml:65 dashboard/qml/HeadsetsPage.qml:183 -#: dashboard/qml/HeadsetStatsPage.qml:36 dashboard/qml/TroubleshootPage.qml:71 -#, kde-format -msgctxt "go back to the home page" -msgid "Back" -msgstr "Retour" - #: dashboard/qml/ConnectUsbDialog.qml:11 #, kde-format msgid "Select your headset" @@ -138,7 +165,7 @@ msgstr "Réinstaller WiVRn" msgid "Install WiVRn" msgstr "Installer WiVRn" -#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:391 +#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:413 #, kde-format msgid "Headsets" msgstr "Casques" @@ -235,28 +262,28 @@ msgstr "Appairer un nouveau casque" msgid "Headset statistics" msgstr "Statistiques" -#: dashboard/qml/Main.qml:120 +#: dashboard/qml/Main.qml:124 #, kde-format msgid "Avahi daemon is not installed" msgstr "Avahi daemon n'est pas installé" -#: dashboard/qml/Main.qml:128 +#: dashboard/qml/Main.qml:132 #, kde-format msgid "Avahi daemon is not started" msgstr "Avahi daemon n'est pas démarré" -#: dashboard/qml/Main.qml:135 dashboard/qml/Main.qml:149 -#: dashboard/qml/Main.qml:201 +#: dashboard/qml/Main.qml:139 dashboard/qml/Main.qml:153 +#: dashboard/qml/Main.qml:205 #, kde-format msgid "Fix it" msgstr "Corriger" -#: dashboard/qml/Main.qml:143 +#: dashboard/qml/Main.qml:147 #, kde-format msgid "Firewall may not allow port 9757" msgstr "Le pare-feu pourrait ne pas autoriser le port 9757" -#: dashboard/qml/Main.qml:157 +#: dashboard/qml/Main.qml:161 #, kde-format msgid "" "NVIDIA GPUs require at least driver version 565.77, current version is %1" @@ -264,12 +291,12 @@ msgstr "" "Les GPUs NVIDIA nécessitent au moins le driver 565.77, la version actuelle " "est %1." -#: dashboard/qml/Main.qml:163 +#: dashboard/qml/Main.qml:167 #, kde-format msgid "More info" msgstr "Plus d'infos" -#: dashboard/qml/Main.qml:171 +#: dashboard/qml/Main.qml:175 #, kde-format msgid "" "Use the Mesa (radv) driver for AMD GPUs\n" @@ -278,7 +305,7 @@ msgstr "" "Utilisez le driver Mesa (redv) pour les GPUs AMD\n" "L'encodage matériel avec vaapi ne fonctionne pas avec AMDVLK et AMDGPU-PRO" -#: dashboard/qml/Main.qml:179 +#: dashboard/qml/Main.qml:183 #, kde-format msgid "" "No OpenVR compatibility detected, Steam games won't be able to load VR.\n" @@ -288,14 +315,14 @@ msgstr "" "pourront pas charger le mode VR.\n" "Veuillez installer xrizer ou OpenComposite." -#: dashboard/qml/Main.qml:187 +#: dashboard/qml/Main.qml:191 #, kde-format msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn." msgstr "" "Steam est installé en tant que snap. Les snaps ne sont pas compatibles avec " "WiVRn." -#: dashboard/qml/Main.qml:195 +#: dashboard/qml/Main.qml:199 #, kde-format msgid "" "Steam is installed as a flatpak but does not have sufficient permissions." @@ -303,84 +330,118 @@ msgstr "" "Steam est installé en tant que flatpak mais n'a pas les autorisations " "nécessaires." -#: dashboard/qml/Main.qml:210 +#: dashboard/qml/Main.qml:214 #, kde-format msgid "Restart the server for configuration changes to take effect" msgstr "Redémarez le serveur pour appliquer les changements" -#: dashboard/qml/Main.qml:216 +#: dashboard/qml/Main.qml:220 #, kde-format msgctxt "restart the server" msgid "Restart now" msgstr "Redémarrer" -#: dashboard/qml/Main.qml:241 +#: dashboard/qml/Main.qml:245 #, kde-format msgid "Server failed to start" msgstr "Le serveur n'a pas pu démarrer" -#: dashboard/qml/Main.qml:247 dashboard/qml/TroubleshootPage.qml:89 +#: dashboard/qml/Main.qml:251 dashboard/qml/TroubleshootPage.qml:89 #, kde-format msgid "Open server logs" msgstr "Ouvrir les logs du serveur" -#: dashboard/qml/Main.qml:276 +#: dashboard/qml/Main.qml:277 +#, kde-format +msgid "Server status" +msgstr "Serveur" + +#: dashboard/qml/Main.qml:283 #, kde-format msgctxt "whether the server is running, displayed in front of a checkbox" msgid "Running" msgstr "Démarré" -#: dashboard/qml/Main.qml:291 +#: dashboard/qml/Main.qml:296 #, kde-format msgctxt "whether pairing is enabled, displayed in front of a checkbox" msgid "Pairing" msgstr "Appairage" -#: dashboard/qml/Main.qml:304 +#: dashboard/qml/Main.qml:316 #, kde-format -msgid "PIN: %1" -msgstr "PIN : %1" +msgid "Headset status" +msgstr "Casque" -#: dashboard/qml/Main.qml:312 dashboard/qml/WizardPage.qml:329 +#: dashboard/qml/Main.qml:323 #, kde-format -msgid "Connect by USB" -msgstr "Connexion par USB" +msgctxt "label for headset name/status under server running switch" +msgid "Headset" +msgstr "Casque" -#: dashboard/qml/Main.qml:323 dashboard/qml/WizardPage.qml:339 +#: dashboard/qml/Main.qml:326 #, kde-format -msgid "No headset is connected or your headset is not in developer mode" -msgstr "Le casque n'est pas connecté ou n'est pas en mode développeur" +msgid "Not connected" +msgstr "Déconnecté" -#: dashboard/qml/Main.qml:331 +#: dashboard/qml/Main.qml:330 #, kde-format msgid "Disconnect" msgstr "Déconnecter" -#: dashboard/qml/Main.qml:349 +#: dashboard/qml/Main.qml:339 dashboard/qml/Main.qml:347 +#: dashboard/qml/Main.qml:354 +#, kde-format +msgctxt "label for USB status or connect button" +msgid "USB" +msgstr "USB" + +#: dashboard/qml/Main.qml:340 +#, kde-format +msgctxt "usb connect button" +msgid "Connect (wired)" +msgstr "Connecter (filaire)" + +#: dashboard/qml/Main.qml:357 dashboard/qml/WizardPage.qml:339 +#, kde-format +msgid "No headset is connected or your headset is not in developer mode" +msgstr "Le casque n'est pas connecté ou n'est pas en mode développeur" + +#: dashboard/qml/Main.qml:378 #, kde-format msgid "Steam information" msgstr "Informations pour Steam" -#: dashboard/qml/Main.qml:370 +#: dashboard/qml/Main.qml:394 #, kde-format msgid "Wizard" msgstr "Assistant" -#: dashboard/qml/Main.qml:377 +#: dashboard/qml/Main.qml:400 #, kde-format msgid "Install the app" msgstr "Installer l'appli" -#: dashboard/qml/Main.qml:398 dashboard/qml/SettingsPage.qml:14 +#: dashboard/qml/Main.qml:419 dashboard/qml/SettingsPage.qml:14 #, kde-format msgid "Settings" msgstr "Paramètres" -#: dashboard/qml/Main.qml:405 dashboard/qml/TroubleshootPage.qml:10 +#: dashboard/qml/Main.qml:425 +#, kde-format +msgid "About" +msgstr "À propos" + +#: dashboard/qml/Main.qml:430 dashboard/qml/TroubleshootPage.qml:10 #, kde-format msgid "Troubleshoot" msgstr "Dépannage" +#: dashboard/qml/Main.qml:437 +#, kde-format +msgid "Version %1" +msgstr "Version %1" + #: dashboard/qml/SelectGame.qml:14 #, kde-format msgctxt "don't start an application automatically" @@ -834,6 +895,11 @@ msgstr "" msgid "To connect over USB, click on \"Connect by USB\"." msgstr "Pour vous connecter en USB, cliquez sur « Connexion par USB »" +#: dashboard/qml/WizardPage.qml:329 +#, kde-format +msgid "Connect by USB" +msgstr "Connexion par USB" + #: dashboard/qml/WizardPage.qml:349 #, kde-format msgid "Troubleshooting" @@ -882,16 +948,20 @@ msgstr "Finir" msgid "Finished" msgstr "Terminé" -#: dashboard/wivrn_server.cpp:533 +#: dashboard/wivrn_server.cpp:538 #, kde-format msgid "xrizer" msgstr "xrizer" -#: dashboard/wivrn_server.cpp:534 +#: dashboard/wivrn_server.cpp:539 #, kde-format msgid "Open Composite" msgstr "Open Composite" +#, kde-format +#~ msgid "PIN: %1" +#~ msgstr "PIN : %1" + #, kde-format #~ msgid "The server does not have CAP_SYS_NICE capabilities" #~ msgstr "Le serveur n'a pas la capacité CAP_SYS_NICE" From 2c9928db63d93525b352ba5032a626a0590887d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A1udio=20=27Patola=27=20Sampaio?= Date: Tue, 6 Jan 2026 18:18:35 +0100 Subject: [PATCH 08/10] 12 strings translated to pt-br --- locale/pt_BR/wivrn-dashboard.po | 135 +++++++++++++++++++++++--------- 1 file changed, 100 insertions(+), 35 deletions(-) diff --git a/locale/pt_BR/wivrn-dashboard.po b/locale/pt_BR/wivrn-dashboard.po index 92001876..909554b4 100644 --- a/locale/pt_BR/wivrn-dashboard.po +++ b/locale/pt_BR/wivrn-dashboard.po @@ -10,8 +10,8 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn-dashboard\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2026-01-05 22:05+0100\n" -"PO-Revision-Date: 2026-01-06 10:34+0100\n" +"POT-Creation-Date: 2026-01-06 17:57+0100\n" +"PO-Revision-Date: 2026-01-06 18:18+0100\n" "Last-Translator: Claudio Sampaio (Patola) \n" "Language-Team: Portuguese <>\n" "Language: pt_BR\n" @@ -71,11 +71,45 @@ msgstr "O comando 'adb install' falhou: código de saída %1" msgid "Installation successful" msgstr "Instalação bem-sucedida" -#: dashboard/main.cpp:27 dashboard/qml/Main.qml:12 +#: dashboard/main.cpp:28 dashboard/qml/Main.qml:12 #, kde-format msgid "WiVRn dashboard" msgstr "Painel do WiVRn" +#: dashboard/main.cpp:32 +#, kde-format +msgctxt "@title" +msgid "WiVRn" +msgstr "WiVRn" + +#: dashboard/main.cpp:34 +#, kde-format +msgid "WiVRn server" +msgstr "Servidor WiVRn" + +#: dashboard/main.cpp:36 +#, kde-format +msgid "(c) 2022-2026 WiVRn development team" +msgstr "(c) 2022-2026 time de desenvolvimento do WiVRn" + +#: dashboard/main.cpp:43 +#, kde-format +msgid "Monado" +msgstr "Monado" + +#: dashboard/main.cpp:44 +#, kde-format +msgid "OpenXR runtime" +msgstr "Runtime OpenXR" + +#: dashboard/qml/About.qml:17 dashboard/qml/ApkInstallPage.qml:65 +#: dashboard/qml/HeadsetsPage.qml:183 dashboard/qml/HeadsetStatsPage.qml:36 +#: dashboard/qml/TroubleshootPage.qml:71 +#, kde-format +msgctxt "go back to the home page" +msgid "Back" +msgstr "Voltar" + #: dashboard/qml/ApkInstallPage.qml:12 dashboard/qml/WizardPage.qml:137 #, kde-format msgid "Install the WiVRn app on your headset" @@ -92,8 +126,8 @@ msgstr "Verificando a última versão..." msgid "No APK is available for this version" msgstr "Nenhum APK está disponível para esta versão" -#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:325 -#: dashboard/qml/Main.qml:388 dashboard/qml/WizardPage.qml:211 +#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:350 +#: dashboard/qml/Main.qml:408 dashboard/qml/WizardPage.qml:211 #: dashboard/qml/WizardPage.qml:337 #, kde-format msgid "ADB is not installed" @@ -116,13 +150,6 @@ msgstr "" "docs/building.md#client-headset\">documentação para construir seu " "próprio cliente." -#: dashboard/qml/ApkInstallPage.qml:65 dashboard/qml/HeadsetsPage.qml:183 -#: dashboard/qml/HeadsetStatsPage.qml:36 dashboard/qml/TroubleshootPage.qml:71 -#, kde-format -msgctxt "go back to the home page" -msgid "Back" -msgstr "Voltar" - #: dashboard/qml/ConnectUsbDialog.qml:11 #, kde-format msgid "Select your headset" @@ -143,7 +170,7 @@ msgstr "Reinstalar WiVRn" msgid "Install WiVRn" msgstr "Instalar WiVRn" -#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:393 +#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:413 #, kde-format msgid "Headsets" msgstr "Headsets" @@ -324,65 +351,94 @@ msgstr "Servidor falhou em iniciar" msgid "Open server logs" msgstr "Abrir logs do servidor" -#: dashboard/qml/Main.qml:280 +#: dashboard/qml/Main.qml:277 +#, kde-format +msgid "Server status" +msgstr "Status do servidor" + +#: dashboard/qml/Main.qml:283 #, kde-format msgctxt "whether the server is running, displayed in front of a checkbox" msgid "Running" msgstr "Rodando" -#: dashboard/qml/Main.qml:295 +#: dashboard/qml/Main.qml:296 #, kde-format msgctxt "whether pairing is enabled, displayed in front of a checkbox" msgid "Pairing" msgstr "Pareando" -#: dashboard/qml/Main.qml:308 +#: dashboard/qml/Main.qml:316 #, kde-format -msgid "PIN: %1" -msgstr "PIN: %1" +msgid "Headset status" +msgstr "Status do headset" -#: dashboard/qml/Main.qml:316 dashboard/qml/WizardPage.qml:329 +#: dashboard/qml/Main.qml:323 #, kde-format -msgid "Connect by USB" -msgstr "Conectar pela USB" +msgctxt "label for headset name/status under server running switch" +msgid "Headset" +msgstr "Headset" -#: dashboard/qml/Main.qml:327 dashboard/qml/WizardPage.qml:339 +#: dashboard/qml/Main.qml:326 +#, kde-format +msgid "Not connected" +msgstr "Não conectado" + +#: dashboard/qml/Main.qml:330 +#, kde-format +msgid "Disconnect" +msgstr "Desconectar" + +#: dashboard/qml/Main.qml:339 dashboard/qml/Main.qml:347 +#: dashboard/qml/Main.qml:354 +#, kde-format +msgctxt "label for USB status or connect button" +msgid "USB" +msgstr "USB" + +#: dashboard/qml/Main.qml:340 +#, kde-format +msgctxt "usb connect button" +msgid "Connect (wired)" +msgstr "Conectar (por cabo)" + +#: dashboard/qml/Main.qml:357 dashboard/qml/WizardPage.qml:339 #, kde-format msgid "No headset is connected or your headset is not in developer mode" msgstr "" "Nenhum headset está conectado ou seu headset não está em modo desenvolvedor" -#: dashboard/qml/Main.qml:335 -#, kde-format -msgid "Disconnect" -msgstr "Desconectar" - -#: dashboard/qml/Main.qml:353 +#: dashboard/qml/Main.qml:378 #, kde-format msgid "Steam information" msgstr "Informações da Steam" -#: dashboard/qml/Main.qml:374 +#: dashboard/qml/Main.qml:394 #, kde-format msgid "Wizard" msgstr "Assistente" -#: dashboard/qml/Main.qml:380 +#: dashboard/qml/Main.qml:400 #, kde-format msgid "Install the app" msgstr "Instalar o aplicativo" -#: dashboard/qml/Main.qml:399 dashboard/qml/SettingsPage.qml:14 +#: dashboard/qml/Main.qml:419 dashboard/qml/SettingsPage.qml:14 #, kde-format msgid "Settings" msgstr "Ajustes" -#: dashboard/qml/Main.qml:405 dashboard/qml/TroubleshootPage.qml:10 +#: dashboard/qml/Main.qml:425 +#, kde-format +msgid "About" +msgstr "Sobre" + +#: dashboard/qml/Main.qml:430 dashboard/qml/TroubleshootPage.qml:10 #, kde-format msgid "Troubleshoot" msgstr "Resolver problemas" -#: dashboard/qml/Main.qml:412 +#: dashboard/qml/Main.qml:437 #, kde-format msgid "Version %1" msgstr "Versão %1" @@ -837,6 +893,11 @@ msgstr "" msgid "To connect over USB, click on \"Connect by USB\"." msgstr "Para conectar pela USB, clique em \"Conectar pela USB\"." +#: dashboard/qml/WizardPage.qml:329 +#, kde-format +msgid "Connect by USB" +msgstr "Conectar pela USB" + #: dashboard/qml/WizardPage.qml:349 #, kde-format msgid "Troubleshooting" @@ -885,16 +946,20 @@ msgstr "Terminar" msgid "Finished" msgstr "Terminado" -#: dashboard/wivrn_server.cpp:533 +#: dashboard/wivrn_server.cpp:538 #, kde-format msgid "xrizer" msgstr "xrizer" -#: dashboard/wivrn_server.cpp:534 +#: dashboard/wivrn_server.cpp:539 #, kde-format msgid "Open Composite" msgstr "Open Composite" +#, kde-format +#~ msgid "PIN: %1" +#~ msgstr "PIN: %1" + #, kde-format #~ msgctxt "automatically started application" #~ msgid "Application" From 43bbb8b0f8daab7254db5720d52fafea11c1a37c Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 3 Jan 2026 23:41:06 +0100 Subject: [PATCH 09/10] Add check for 10 bit GPU image support --- server/encoder/encoder_settings.cpp | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/server/encoder/encoder_settings.cpp b/server/encoder/encoder_settings.cpp index 99de6ae0..ca812f2b 100644 --- a/server/encoder/encoder_settings.cpp +++ b/server/encoder/encoder_settings.cpp @@ -328,6 +328,37 @@ std::array get_encoder_settings(wivrn_vk_bundle & bundle, c if (std::ranges::contains(res, video_codec::h264, &encoder_settings::codec) or std::ranges::contains(res, video_codec::raw, &encoder_settings::codec)) bit_depth = 8; + else + bit_depth = 10; + + auto check_format = [&](vk::Format format) { + try + { + auto props = bundle.physical_device.getImageFormatProperties( + format, + vk::ImageType::e2D, + vk::ImageTiling::eOptimal, + vk::ImageUsageFlagBits::eStorage | vk::ImageUsageFlagBits::eTransferSrc); + return props.maxArrayLayers >= 3 and + props.maxExtent.depth >= 1 and + props.maxExtent.width >= width and + props.maxExtent.height >= height; + } + catch (vk::FormatNotSupportedError &) + { + return false; + } + }; + + if (bit_depth == 10 and not check_format(vk::Format::eR10X6UnormPack16)) + { + U_LOG_W("GPU does not have sufficient support for 10-bit images, reverting to 8"); + bit_depth = 8; + } + if (bit_depth == 8 and not check_format(vk::Format::eR8Unorm)) + { + U_LOG_W("GPU does not have sufficient support for 8-bit images"); + } for (auto & i: res) i.bit_depth = bit_depth.value_or(10); From 7870cc64843949af9fe7e26b467fe96e7a1a59f2 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 6 Jan 2026 21:28:06 +0100 Subject: [PATCH 10/10] fix typo in configuration doc --- docs/configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/configuration.md b/docs/configuration.md index ac47e0e7..4b9dff6c 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -67,7 +67,7 @@ Use vaapi hardware encoding, h265 video codec (HEVC). 2. Hardware + software encoder ```json { - "encoders": [ + "encoder": [ { "encoder": "vaapi", "codec": "h265",