Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Vindicus999
2026-01-07 01:59:39 +00:00
14 changed files with 506 additions and 190 deletions
+1 -1
View File
@@ -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:
+3
View File
@@ -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
+23
View File
@@ -1,4 +1,5 @@
#include "version.h"
#include <KAboutData>
#include <KIconTheme>
#include <KLocalizedContext>
#include <KLocalizedString>
@@ -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
+27
View File
@@ -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();}
}
}
+100 -75
View File
@@ -257,27 +257,31 @@ Kirigami.ApplicationWindow {
}
GridLayout {
columns: 2
columns: 3
Layout.leftMargin: Kirigami.Units.largeSpacing
Layout.rightMargin: Kirigami.Units.largeSpacing
Item {}
Item {
Layout.fillWidth: true
}
columnSpacing: 0
Image {
source: Qt.resolvedUrl("wivrn.svg")
Layout.columnSpan: parent.width < implicitWidth + main_form.implicitWidth ? 3 : 1
}
GridLayout {
columns: 2
Layout.fillWidth: true
Kirigami.FormLayout {
id: main_form
Layout.alignment: Qt.AlignTop
Layout.horizontalStretchFactor: 0
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,85 +292,101 @@ 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.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
}
Item {
// spacer item
Layout.fillHeight: true
Layout.fillWidth: true
Layout.horizontalStretchFactor: 1
}
}
Kirigami.Separator {
Layout.fillWidth: true
visible: steam_info.visible
}
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
}
}
actions: [
@@ -401,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"
+5
View File
@@ -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());
+8
View File
@@ -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);
};
+1
View File
@@ -63,6 +63,7 @@
<property name="EyeGaze" type="b" access="read"/>
<property name="FaceTracking" type="b" access="read"/>
<property name="SupportedCodecs" type="as" access="read"/>
<property name="SystemName" type="s" access="read"/>
<property name="Pin" type="s" access="read"/>
<property name="KnownKeys" type="a(ssx)" access="read">
+1 -1
View File
@@ -67,7 +67,7 @@ Use vaapi hardware encoding, h265 video codec (HEVC).
2. Hardware + software encoder
```json
{
"encoders": [
"encoder": [
{
"encoder": "vaapi",
"codec": "h265",
+118 -48
View File
@@ -1,13 +1,13 @@
#
# SPDX-FileCopyrightText: 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
# Guillaume Meunier <guillaume.meunier@centraliens.net>, 2025.
# Guillaume Meunier <guillaume.meunier@centraliens.net>, 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 <guillaume.meunier@centraliens.net>\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</a> 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"
+124 -54
View File
@@ -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 <LuckShiba@protonmail.com>, 2025.
#
# SPDX-FileCopyrightText: 2025 myghi63 <myghi63@disroot.org>
@@ -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-06 17:57+0100\n"
"PO-Revision-Date: 2026-01-06 18:18+0100\n"
"Last-Translator: Claudio Sampaio (Patola) <patola@gmail.com>\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
@@ -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: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"
@@ -116,13 +150,6 @@ msgstr ""
"docs/building.md#client-headset\">documentação</a> 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:391
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:413
#, kde-format
msgid "Headsets"
msgstr "Headsets"
@@ -239,40 +266,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 +308,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,97 +318,131 @@ 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: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:291
#: 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:304
#: dashboard/qml/Main.qml:316
#, kde-format
msgid "PIN: %1"
msgstr "PIN: %1"
msgid "Headset status"
msgstr "Status do headset"
#: dashboard/qml/Main.qml:312 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:323 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:331
#, kde-format
msgid "Disconnect"
msgstr "Desconectar"
#: dashboard/qml/Main.qml:349
#: dashboard/qml/Main.qml:378
#, kde-format
msgid "Steam information"
msgstr "Informações da Steam"
#: dashboard/qml/Main.qml:370
#: dashboard/qml/Main.qml:394
#, kde-format
msgid "Wizard"
msgstr "Assistente"
#: dashboard/qml/Main.qml:377
#: dashboard/qml/Main.qml:400
#, kde-format
msgid "Install the app"
msgstr "Instalar o aplicativo"
#: 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 "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:437
#, 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 +739,9 @@ msgid ""
"For game specific issues, check on <a href=\"https://db.vronlinux.org/"
"\">vronlinux DB</a> if there are known bugs or workarounds."
msgstr ""
"Para problemas específicos de jogos, consulte o <a href=\"https://db.vronlinux"
".org/"
"\">vronlinux DB</a> para ver se há bugs ou reparos conhecidos."
"Para problemas específicos de jogos, consulte o <a href=\"https://"
"db.vronlinux.org/\">vronlinux DB</a> para ver se há bugs ou reparos "
"conhecidos."
#: dashboard/qml/TroubleshootPage.qml:79
#, kde-format
@@ -832,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"
@@ -880,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"
+63 -11
View File
@@ -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<uint8_t> 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),
&param,
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<uint8_t> 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),
&param,
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<size_t>(quantum_size, data.maxsize / frame_size);
}
data.chunk->offset = 0;
data.chunk->size = 0;
@@ -347,4 +399,4 @@ std::shared_ptr<audio_device> create_pipewire_handle(
return nullptr;
}
}
} // namespace wivrn
} // namespace wivrn
+31
View File
@@ -328,6 +328,37 @@ std::array<encoder_settings, 3> 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);
+1
View File
@@ -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)