Compare commits
11
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a18d091b04 | ||
|
|
e3ed7c38fe | ||
|
|
d8bc113465 | ||
|
|
36bb84597f | ||
|
|
ade51e2821 | ||
|
|
b8e1451659 | ||
|
|
06914c87b9 | ||
|
|
4545a7b134 | ||
|
|
a2c5873d6f | ||
|
|
5ea0e7558e | ||
|
|
35ba6f4614 |
@@ -0,0 +1,6 @@
|
|||||||
|
version: "1"
|
||||||
|
rules:
|
||||||
|
- base: master
|
||||||
|
upstream: WiVRn:master
|
||||||
|
mergeMethod: hardreset
|
||||||
|
|
||||||
@@ -2,7 +2,7 @@ name: Release APK Only
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "master" ]
|
branches: [ "apk-build" ]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BUILD_TYPE: RelWithDebInfo
|
BUILD_TYPE: RelWithDebInfo
|
||||||
@@ -15,13 +15,14 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
buildtype: ['Release', 'Debug', 'DebugWithValidationLayer']
|
#buildtype: ['Release', 'Debug', 'DebugWithValidationLayer']
|
||||||
|
buildtype: ['Release']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
# Checkout from upstream instead of WiVRn-APK to ensure the GIT_DESC variable is set correctly
|
# Checkout from upstream instead of WiVRn-APK to ensure the GIT_DESC variable is set correctly
|
||||||
repository: 'WiVRn/WiVRn'
|
repository: 'gitea/WiVRn'
|
||||||
ref: ${{ github.sha }}
|
ref: ${{ github.sha }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -36,7 +37,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update && sudo apt-get install glslang-tools spirv-tools librsvg2-bin gettext npm
|
sudo apt-get update && sudo apt-get install -y glslang-tools spirv-tools librsvg2-bin gettext npm
|
||||||
wget https://github.com/KhronosGroup/KTX-Software/releases/download/v4.4.0/KTX-Software-4.4.0-Linux-x86_64.deb
|
wget https://github.com/KhronosGroup/KTX-Software/releases/download/v4.4.0/KTX-Software-4.4.0-Linux-x86_64.deb
|
||||||
sudo dpkg --install KTX-Software-4.4.0-Linux-x86_64.deb
|
sudo dpkg --install KTX-Software-4.4.0-Linux-x86_64.deb
|
||||||
npm install --global @gltf-transform/cli@4.1.1
|
npm install --global @gltf-transform/cli@4.1.1
|
||||||
@@ -102,13 +103,13 @@ jobs:
|
|||||||
pattern: 'apk-*'
|
pattern: 'apk-*'
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
|
|
||||||
- name: Rename APK artifacts
|
# - name: Rename APK artifacts
|
||||||
run: |
|
# run: |
|
||||||
cd apk
|
# cd apk
|
||||||
for f in *.apk; do
|
# for f in *.apk; do
|
||||||
BASENAME=`echo ${f}|awk -F '-APK-' '{print $2}'`
|
# BASENAME=`echo ${f}|awk -F '-APK-' '{print $2}'`
|
||||||
mv "${f}" "org.meumeu.wivrn-${BASENAME}"
|
# mv "${f}" "org.meumeu.wivrn-${BASENAME}"
|
||||||
done
|
# done
|
||||||
|
|
||||||
- name: Download APK debug artifacts
|
- name: Download APK debug artifacts
|
||||||
uses: actions/download-artifact@v8
|
uses: actions/download-artifact@v8
|
||||||
@@ -117,10 +118,10 @@ jobs:
|
|||||||
pattern: 'symbols-*'
|
pattern: 'symbols-*'
|
||||||
merge-multiple: false
|
merge-multiple: false
|
||||||
|
|
||||||
- name: Zip APK debug artifacts
|
# - name: Zip APK debug artifacts
|
||||||
run: |
|
# run: |
|
||||||
cd symbols
|
# cd symbols
|
||||||
zip -r ../debug-symbols.zip .
|
# zip -r ../debug-symbols.zip .
|
||||||
|
|
||||||
- name: APK Release
|
- name: APK Release
|
||||||
uses: softprops/action-gh-release@v3
|
uses: softprops/action-gh-release@v3
|
||||||
@@ -133,4 +134,4 @@ jobs:
|
|||||||
fail_on_unmatched_files: true
|
fail_on_unmatched_files: true
|
||||||
files: |
|
files: |
|
||||||
apk/*.apk
|
apk/*.apk
|
||||||
debug-symbols.zip
|
# debug-symbols.zip
|
||||||
|
|||||||
@@ -552,12 +552,6 @@ jobs:
|
|||||||
name: wivrn-server-x86_64.flatpak
|
name: wivrn-server-x86_64.flatpak
|
||||||
path: flatpak
|
path: flatpak
|
||||||
|
|
||||||
- name: Download artifacts (Frame)
|
|
||||||
uses: actions/download-artifact@v8
|
|
||||||
with:
|
|
||||||
name: wivrn-frame-client.zip
|
|
||||||
path: frame
|
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v3
|
uses: softprops/action-gh-release@v3
|
||||||
with:
|
with:
|
||||||
@@ -567,7 +561,6 @@ jobs:
|
|||||||
files: |
|
files: |
|
||||||
apk/*.apk
|
apk/*.apk
|
||||||
flatpak/*.flatpak
|
flatpak/*.flatpak
|
||||||
frame/*.zip
|
|
||||||
|
|
||||||
- name: Update flatpak manifest for flathub
|
- name: Update flatpak manifest for flathub
|
||||||
if: ${{ steps.flathub-token-check.outputs.available == 'true' }}
|
if: ${{ steps.flathub-token-check.outputs.available == 'true' }}
|
||||||
|
|||||||
@@ -0,0 +1,49 @@
|
|||||||
|
name: Sync Fork with Upstream
|
||||||
|
|
||||||
|
env:
|
||||||
|
UPSTREAM_URL: "https://github.com/wivrn/wivrn.git"
|
||||||
|
WORKFLOW_TOKEN: ${{ secrets.DOWNSTREAM_GITHUB_TOKEN }}
|
||||||
|
UPSTREAM_BRANCH: "master"
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
upstream_repo: vindicus999/wivrn
|
||||||
|
fetch-depth: 0
|
||||||
|
token: ${{ env.WORKFLOW_TOKEN }}
|
||||||
|
|
||||||
|
- name: Add upstream
|
||||||
|
run: |
|
||||||
|
git remote add upstream ${{ env.UPSTREAM_URL }}
|
||||||
|
|
||||||
|
- name: Fetch all
|
||||||
|
run: |
|
||||||
|
git fetch origin
|
||||||
|
git fetch upstream
|
||||||
|
|
||||||
|
- name: Update sync branch
|
||||||
|
run: |
|
||||||
|
git checkout -B master upstream/master
|
||||||
|
git push origin master --force
|
||||||
|
|
||||||
|
- name: Copy master -> apk-build
|
||||||
|
run: |
|
||||||
|
git checkout -B apk-build master
|
||||||
|
git push origin apk-build --force
|
||||||
|
|
||||||
|
- name: Apply sneed changes
|
||||||
|
run: |
|
||||||
|
git merge origin/sneed --no-edit
|
||||||
|
|
||||||
|
- name: Push apk build
|
||||||
|
run: |
|
||||||
|
git push origin build --force
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
# PR instructions
|
# PR instructions
|
||||||
You are not allowed to submit pull requests.
|
You are allowed to tell the WiVRn developers to suck an egg.
|
||||||
|
|
||||||
# Issue reporting
|
# Issue reporting
|
||||||
You are not allowed to report issues, write comments or interact in any way with project issues.
|
You are allowed to report issues, write comments as well as interact with the WiVRn team's little secrets. ;)
|
||||||
|
|||||||
+1
-1
@@ -102,7 +102,7 @@ option(WIVRN_OPENXR_MANIFEST_ABI "Generate an ABI specific OpenXR manifest")
|
|||||||
|
|
||||||
option(ENABLE_COLOURED_OUTPUT "Always produce ANSI-coloured output (GNU/Clang only)." ON)
|
option(ENABLE_COLOURED_OUTPUT "Always produce ANSI-coloured output (GNU/Clang only)." ON)
|
||||||
|
|
||||||
set(WIVRN_ENVIRONMENTS_URL "https://github.com/WiVRn/WiVRn-environments/releases/latest/download/index.json" CACHE STRING "URL hosting the custom environments json file")
|
set(WIVRN_ENVIRONMENTS_URL "https://github.com/Vindicus999/WiVRn-environments/releases/latest/download/index.json" CACHE STRING "URL hosting the custom environments json file")
|
||||||
|
|
||||||
if (WIVRN_BUILD_CLIENT OR WIVRN_BUILD_SERVER OR WIVRN_BUILD_DASHBOARD OR WIVRN_BUILD_DISSECTOR)
|
if (WIVRN_BUILD_CLIENT OR WIVRN_BUILD_SERVER OR WIVRN_BUILD_DASHBOARD OR WIVRN_BUILD_DISSECTOR)
|
||||||
set(NEED_COMMON TRUE)
|
set(NEED_COMMON TRUE)
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 930 B After Width: | Height: | Size: 856 B |
Binary file not shown.
@@ -297,14 +297,10 @@ set(IMAGES_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../images)
|
|||||||
set(ASSETS_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../assets-source)
|
set(ASSETS_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../assets-source)
|
||||||
|
|
||||||
wivrn_rasterize_svg(SOURCE ${IMAGES_SRC_DIR}/wivrn.svg DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/wivrn.png WIDTH 540 HEIGHT 540 CSS ${WIVRN_CSS_ABS})
|
wivrn_rasterize_svg(SOURCE ${IMAGES_SRC_DIR}/wivrn.svg DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/wivrn.png WIDTH 540 HEIGHT 540 CSS ${WIVRN_CSS_ABS})
|
||||||
wivrn_rasterize_svg(SOURCE ${IMAGES_SRC_DIR}/wivrn-pride.svg DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/wivrn-pride.png WIDTH 540 HEIGHT 540 CSS ${WIVRN_CSS_ABS})
|
|
||||||
wivrn_rasterize_svg(SOURCE ${IMAGES_SRC_DIR}/wivrn-christmas.svg DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/wivrn-christmas.png WIDTH 540 HEIGHT 540 CSS ${WIVRN_CSS_ABS})
|
|
||||||
wivrn_rasterize_svg(SOURCE ${ASSETS_SRC_DIR}/passthrough.svg DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/passthrough.png WIDTH 256 HEIGHT 256)
|
wivrn_rasterize_svg(SOURCE ${ASSETS_SRC_DIR}/passthrough.svg DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/passthrough.png WIDTH 256 HEIGHT 256)
|
||||||
wivrn_rasterize_svg(SOURCE ${ASSETS_SRC_DIR}/default-environment.svg DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/default-environment.png WIDTH 256 HEIGHT 256)
|
wivrn_rasterize_svg(SOURCE ${ASSETS_SRC_DIR}/default-environment.svg DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/default-environment.png WIDTH 256 HEIGHT 256)
|
||||||
|
|
||||||
wivrn_generate_ktx( SOURCE ${CMAKE_CURRENT_BINARY_DIR}/wivrn.png DESTINATION ${ASSETS_DIR}/wivrn.ktx2 TARGET wivrn)
|
wivrn_generate_ktx( SOURCE ${CMAKE_CURRENT_BINARY_DIR}/wivrn.png DESTINATION ${ASSETS_DIR}/wivrn.ktx2 TARGET wivrn)
|
||||||
wivrn_generate_ktx( SOURCE ${CMAKE_CURRENT_BINARY_DIR}/wivrn-pride.png DESTINATION ${ASSETS_DIR}/wivrn-pride.ktx2 TARGET wivrn)
|
|
||||||
wivrn_generate_ktx( SOURCE ${CMAKE_CURRENT_BINARY_DIR}/wivrn-christmas.png DESTINATION ${ASSETS_DIR}/wivrn-christmas.ktx2 TARGET wivrn)
|
|
||||||
wivrn_generate_ktx( SOURCE ${ASSETS_SRC_DIR}/default_icon.png DESTINATION ${ASSETS_DIR}/default_icon.ktx2 TARGET wivrn)
|
wivrn_generate_ktx( SOURCE ${ASSETS_SRC_DIR}/default_icon.png DESTINATION ${ASSETS_DIR}/default_icon.ktx2 TARGET wivrn)
|
||||||
wivrn_generate_ktx( SOURCE ${CMAKE_CURRENT_BINARY_DIR}/passthrough.png DESTINATION ${ASSETS_DIR}/passthrough.ktx2 TARGET wivrn)
|
wivrn_generate_ktx( SOURCE ${CMAKE_CURRENT_BINARY_DIR}/passthrough.png DESTINATION ${ASSETS_DIR}/passthrough.ktx2 TARGET wivrn)
|
||||||
wivrn_generate_ktx( SOURCE ${CMAKE_CURRENT_BINARY_DIR}/default-environment.png DESTINATION ${ASSETS_DIR}/default-environment.ktx2 TARGET wivrn)
|
wivrn_generate_ktx( SOURCE ${CMAKE_CURRENT_BINARY_DIR}/default-environment.png DESTINATION ${ASSETS_DIR}/default-environment.ktx2 TARGET wivrn)
|
||||||
|
|||||||
+1
-14
@@ -1302,20 +1302,7 @@ void scenes::lobby::on_focused()
|
|||||||
vps,
|
vps,
|
||||||
image_cache);
|
image_cache);
|
||||||
|
|
||||||
auto t = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
|
about_picture = imgui_ctx->load_texture("assets://wivrn.ktx2");
|
||||||
auto tm = std::localtime(&t);
|
|
||||||
switch (tm->tm_mon)
|
|
||||||
{
|
|
||||||
case 5:
|
|
||||||
about_picture = imgui_ctx->load_texture("assets://wivrn-pride.ktx2");
|
|
||||||
break;
|
|
||||||
case 11:
|
|
||||||
about_picture = imgui_ctx->load_texture("assets://wivrn-christmas.ktx2");
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
about_picture = imgui_ctx->load_texture("assets://wivrn.ktx2");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
default_environment_screenshot = imgui_ctx->load_texture("assets://default-environment.ktx2");
|
default_environment_screenshot = imgui_ctx->load_texture("assets://default-environment.ktx2");
|
||||||
|
|
||||||
|
|||||||
@@ -814,6 +814,9 @@ void scenes::lobby::gui_about()
|
|||||||
ImGui::SetCursorPosX(win_width / 4);
|
ImGui::SetCursorPosX(win_width / 4);
|
||||||
|
|
||||||
ImGui::Image(about_picture, {win_width / 2, win_width / 2});
|
ImGui::Image(about_picture, {win_width / 2, win_width / 2});
|
||||||
|
ImGui::PushFont(nullptr, constants::gui::font_size_large);
|
||||||
|
CenterTextH(std::string("Sneed'n'Chuck Edition"));
|
||||||
|
ImGui::PopFont();
|
||||||
}
|
}
|
||||||
|
|
||||||
void scenes::lobby::gui_first_run()
|
void scenes::lobby::gui_first_run()
|
||||||
|
|||||||
@@ -547,23 +547,7 @@ void scenes::stream::on_focused()
|
|||||||
std::move(vps),
|
std::move(vps),
|
||||||
image_cache);
|
image_cache);
|
||||||
|
|
||||||
// match the lobby's seasonal wordmark logo
|
wivrn_logo = imgui_ctx->load_texture("assets://wivrn.ktx2");
|
||||||
{
|
|
||||||
auto t = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
|
|
||||||
auto tm = std::localtime(&t);
|
|
||||||
switch (tm->tm_mon)
|
|
||||||
{
|
|
||||||
case 5:
|
|
||||||
wivrn_logo = imgui_ctx->load_texture("assets://wivrn-pride.ktx2");
|
|
||||||
break;
|
|
||||||
case 11:
|
|
||||||
wivrn_logo = imgui_ctx->load_texture("assets://wivrn-christmas.ktx2");
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
wivrn_logo = imgui_ctx->load_texture("assets://wivrn.ktx2");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
menu_chord.a = get_action("menu_toggle_1").first;
|
menu_chord.a = get_action("menu_toggle_1").first;
|
||||||
menu_chord.b = get_action("menu_toggle_2").first;
|
menu_chord.b = get_action("menu_toggle_2").first;
|
||||||
|
|||||||
@@ -285,8 +285,8 @@ struct app_data
|
|||||||
switch (section.back())
|
switch (section.back())
|
||||||
{
|
{
|
||||||
case common:
|
case common:
|
||||||
if (key == "openvrsupport" or key == "openxrsupport")
|
if (key == "openvrsupport")
|
||||||
VR = VR or val;
|
VR = val;
|
||||||
break;
|
break;
|
||||||
case other:
|
case other:
|
||||||
break;
|
break;
|
||||||
|
|||||||
Vendored
+1
-26
@@ -7,9 +7,7 @@ Build-Depends:
|
|||||||
debhelper-compat (= 13),
|
debhelper-compat (= 13),
|
||||||
cmake (>= 3.25),
|
cmake (>= 3.25),
|
||||||
pkg-config,
|
pkg-config,
|
||||||
extra-cmake-modules,
|
|
||||||
glslang-tools,
|
glslang-tools,
|
||||||
libarchive-dev,
|
|
||||||
libavahi-client-dev,
|
libavahi-client-dev,
|
||||||
libavahi-glib-dev,
|
libavahi-glib-dev,
|
||||||
libavcodec-dev,
|
libavcodec-dev,
|
||||||
@@ -17,6 +15,7 @@ Build-Depends:
|
|||||||
libavutil-dev,
|
libavutil-dev,
|
||||||
libbsd-dev,
|
libbsd-dev,
|
||||||
libboost-all-dev,
|
libboost-all-dev,
|
||||||
|
libcap-dev,
|
||||||
libcjson-dev,
|
libcjson-dev,
|
||||||
libcli11-dev,
|
libcli11-dev,
|
||||||
libeigen3-dev,
|
libeigen3-dev,
|
||||||
@@ -24,15 +23,8 @@ Build-Depends:
|
|||||||
libgl1-mesa-dev,
|
libgl1-mesa-dev,
|
||||||
libglu1-mesa-dev,
|
libglu1-mesa-dev,
|
||||||
libglx-dev,
|
libglx-dev,
|
||||||
libkf6coreaddons-dev,
|
|
||||||
libkf6i18n-dev,
|
|
||||||
libkf6iconthemes-dev,
|
|
||||||
libkf6qqc2desktopstyle-dev,
|
|
||||||
libkirigami-dev,
|
|
||||||
libnotify-dev,
|
libnotify-dev,
|
||||||
libpipewire-0.3-dev,
|
libpipewire-0.3-dev,
|
||||||
librsvg2-dev,
|
|
||||||
libssl-dev,
|
|
||||||
libswscale-dev,
|
libswscale-dev,
|
||||||
libsystemd-dev,
|
libsystemd-dev,
|
||||||
libudev-dev,
|
libudev-dev,
|
||||||
@@ -46,10 +38,8 @@ Build-Depends:
|
|||||||
mesa-common-dev,
|
mesa-common-dev,
|
||||||
nlohmann-json3-dev,
|
nlohmann-json3-dev,
|
||||||
qt6-base-dev,
|
qt6-base-dev,
|
||||||
qt6-declarative-dev,
|
|
||||||
qt6-tools-dev,
|
qt6-tools-dev,
|
||||||
qcoro-qt6-dev,
|
qcoro-qt6-dev,
|
||||||
qml6-module-org-kde-kirigamiaddons-formcard,
|
|
||||||
xz-utils
|
xz-utils
|
||||||
Standards-Version: 4.6.2
|
Standards-Version: 4.6.2
|
||||||
Homepage: https://wivrn.github.io
|
Homepage: https://wivrn.github.io
|
||||||
@@ -62,21 +52,6 @@ Multi-Arch: foreign
|
|||||||
Depends:
|
Depends:
|
||||||
${shlibs:Depends},
|
${shlibs:Depends},
|
||||||
${misc:Depends},
|
${misc:Depends},
|
||||||
qml6-module-org-kde-coreaddons,
|
|
||||||
qml6-module-org-kde-desktop,
|
|
||||||
qml6-module-org-kde-kirigami,
|
|
||||||
qml6-module-org-kde-kirigamiaddons-formcard,
|
|
||||||
qml6-module-qt-labs-platform,
|
|
||||||
qml6-module-qtcore,
|
|
||||||
qml6-module-qtqml,
|
|
||||||
qml6-module-qtquick,
|
|
||||||
qml6-module-qtquick-controls,
|
|
||||||
qml6-module-qtquick-dialogs,
|
|
||||||
qml6-module-qtquick-layouts,
|
|
||||||
qml6-module-qtquick-templates,
|
|
||||||
qt6-svg-plugins,
|
|
||||||
Recommends:
|
|
||||||
adb,
|
|
||||||
Description: OpenXR streaming application to a standalone headset
|
Description: OpenXR streaming application to a standalone headset
|
||||||
WiVRn wirelessly connects a standalone VR headset to a Linux
|
WiVRn wirelessly connects a standalone VR headset to a Linux
|
||||||
computer. You can then play PCVR games on the headset while
|
computer. You can then play PCVR games on the headset while
|
||||||
|
|||||||
Vendored
+40
@@ -0,0 +1,40 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# postinst script for wivrn.
|
||||||
|
#
|
||||||
|
# See: dh_installdeb(1).
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Summary of how this script can be called:
|
||||||
|
# * <postinst> 'configure' <most-recently-configured-version>
|
||||||
|
# * <old-postinst> 'abort-upgrade' <new version>
|
||||||
|
# * <conflictor's-postinst> 'abort-remove' 'in-favour' <package>
|
||||||
|
# <new-version>
|
||||||
|
# * <postinst> 'abort-remove'
|
||||||
|
# * <deconfigured's-postinst> 'abort-deconfigure' 'in-favour'
|
||||||
|
# <failed-install-package> <version> 'removing'
|
||||||
|
# <conflicting-package> <version>
|
||||||
|
# for details, see https://www.debian.org/doc/debian-policy/ or
|
||||||
|
# the debian-policy package.
|
||||||
|
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
configure)
|
||||||
|
setcap CAP_SYS_NICE=+ep /usr/bin/wivrn-server
|
||||||
|
;;
|
||||||
|
|
||||||
|
abort-upgrade|abort-remove|abort-deconfigure)
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "postinst called with unknown argument '$1'" >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# dh_installdeb will replace this with shell code automatically
|
||||||
|
# generated by other debhelper scripts.
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
exit 0
|
||||||
@@ -35,7 +35,8 @@ finish-args:
|
|||||||
# Set the active OpenXR / OpenVR runtime
|
# Set the active OpenXR / OpenVR runtime
|
||||||
- --filesystem=xdg-config/openxr:create
|
- --filesystem=xdg-config/openxr:create
|
||||||
- --filesystem=xdg-config/openvr:create
|
- --filesystem=xdg-config/openvr:create
|
||||||
# Access to SlimeVR IPC socket
|
# Access to SlimeVR IPC sockets
|
||||||
|
- --filesystem=xdg-run/SlimeVRInput
|
||||||
- --filesystem=xdg-run/SlimeVRRpc
|
- --filesystem=xdg-run/SlimeVRRpc
|
||||||
- --filesystem=xdg-run/.flatpak/dev.slimevr.SlimeVR
|
- --filesystem=xdg-run/.flatpak/dev.slimevr.SlimeVR
|
||||||
- --filesystem=xdg-data/dev.slimevr.SlimeVR
|
- --filesystem=xdg-data/dev.slimevr.SlimeVR
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 158 KiB |
File diff suppressed because it is too large
Load Diff
@@ -1,112 +0,0 @@
|
|||||||
From 1db037337db699783cb8e8f66fd6e592d51f1b1b Mon Sep 17 00:00:00 2001
|
|
||||||
From: Sapphire <imsapphire0@gmail.com>
|
|
||||||
Date: Wed, 26 Aug 2026 04:07:59 -0500
|
|
||||||
Subject: [PATCH 2/8] d/solarxr: Consume battery status for generic trackers
|
|
||||||
|
|
||||||
Signed-off-by: Sapphire <imsapphire0@gmail.com>
|
|
||||||
---
|
|
||||||
src/xrt/drivers/solarxr/solarxr_device.c | 55 ++++++++++++++++++++++++
|
|
||||||
1 file changed, 55 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/src/xrt/drivers/solarxr/solarxr_device.c b/src/xrt/drivers/solarxr/solarxr_device.c
|
|
||||||
index b3cc11e47..b976774ae 100644
|
|
||||||
--- a/src/xrt/drivers/solarxr/solarxr_device.c
|
|
||||||
+++ b/src/xrt/drivers/solarxr/solarxr_device.c
|
|
||||||
@@ -34,6 +34,8 @@ struct solarxr_generic_tracker
|
|
||||||
uint32_t index;
|
|
||||||
struct m_relation_history *history; // weak reference
|
|
||||||
enum solarxr_body_part role;
|
|
||||||
+ float charge; // -1.f == no battery info
|
|
||||||
+ bool charging;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct solarxr_device
|
|
||||||
@@ -682,6 +684,15 @@ solarxr_network_thread(void *const ptr)
|
|
||||||
solarxr_handshake_status_to_str(header.message.handshake_response.status));
|
|
||||||
device->shook_hands = false;
|
|
||||||
atomic_store(&device->enabled_bones, 0);
|
|
||||||
+ for (size_t i = 0; i < ARRAY_SIZE(device->tracker_refs); ++i) {
|
|
||||||
+ struct solarxr_generic_tracker *const tracker = device->tracker_refs[i];
|
|
||||||
+ if (tracker == NULL)
|
|
||||||
+ break;
|
|
||||||
+
|
|
||||||
+ os_mutex_lock(&tracker->mutex);
|
|
||||||
+ tracker->charge = -1.f;
|
|
||||||
+ os_mutex_unlock(&tracker->mutex);
|
|
||||||
+ }
|
|
||||||
feeder_mark_unsent(&device->feeder);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
@@ -705,6 +716,22 @@ solarxr_network_thread(void *const ptr)
|
|
||||||
bones.data = header.message.skeleton_update.bones.data;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
+ case SOLARXR_DRIVER_MESSAGE_TYPE_BONE_BATTERY_UPDATE:
|
|
||||||
+ for (size_t i = 0; i < ARRAY_SIZE(device->tracker_refs); ++i) {
|
|
||||||
+ struct solarxr_generic_tracker *const tracker = device->tracker_refs[i];
|
|
||||||
+ if (tracker == NULL)
|
|
||||||
+ break;
|
|
||||||
+ if (tracker->role != header.message.bone_battery_update.bone)
|
|
||||||
+ continue;
|
|
||||||
+
|
|
||||||
+ os_mutex_lock(&tracker->mutex);
|
|
||||||
+ tracker->charge =
|
|
||||||
+ (float)header.message.bone_battery_update.battery_level / 100.f;
|
|
||||||
+ tracker->charging = header.message.bone_battery_update.charging;
|
|
||||||
+ os_mutex_unlock(&tracker->mutex);
|
|
||||||
+ break;
|
|
||||||
+ }
|
|
||||||
+ break;
|
|
||||||
default:;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -826,6 +853,31 @@ solarxr_generic_tracker_get_tracked_pose(struct xrt_device *const xdev,
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
+static xrt_result_t
|
|
||||||
+solarxr_generic_tracker_get_battery_status(struct xrt_device *const xdev,
|
|
||||||
+ bool *const out_present,
|
|
||||||
+ bool *const out_charging,
|
|
||||||
+ float *const out_charge)
|
|
||||||
+{
|
|
||||||
+ struct solarxr_generic_tracker *const device = solarxr_generic_tracker(xdev);
|
|
||||||
+ assert(device != NULL);
|
|
||||||
+
|
|
||||||
+ os_mutex_lock(&device->mutex);
|
|
||||||
+
|
|
||||||
+ if (device->charge == -1.f) {
|
|
||||||
+ *out_present = false;
|
|
||||||
+ goto end;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ *out_present = true;
|
|
||||||
+ *out_charge = device->charge;
|
|
||||||
+ *out_charging = device->charging;
|
|
||||||
+
|
|
||||||
+end:
|
|
||||||
+ os_mutex_unlock(&device->mutex);
|
|
||||||
+ return XRT_SUCCESS;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
static void
|
|
||||||
solarxr_generic_tracker_destroy(struct xrt_device *const xdev)
|
|
||||||
{
|
|
||||||
@@ -944,11 +996,14 @@ solarxr_device_create_xdevs(struct xrt_tracking_origin *const tracking_origin,
|
|
||||||
tracker->base.tracking_origin = device->base.tracking_origin;
|
|
||||||
tracker->base.supported.orientation_tracking = true;
|
|
||||||
tracker->base.supported.position_tracking = true;
|
|
||||||
+ tracker->base.supported.battery_status = true;
|
|
||||||
tracker->base.update_inputs = solarxr_generic_tracker_update_inputs;
|
|
||||||
tracker->base.get_tracked_pose = solarxr_generic_tracker_get_tracked_pose;
|
|
||||||
+ tracker->base.get_battery_status = solarxr_generic_tracker_get_battery_status;
|
|
||||||
tracker->base.destroy = solarxr_generic_tracker_destroy;
|
|
||||||
tracker->base.inputs[0].name = XRT_INPUT_GENERIC_TRACKER_POSE;
|
|
||||||
tracker->role = body_part;
|
|
||||||
+ tracker->charge = -1.f;
|
|
||||||
|
|
||||||
assert(trackers_len < ARRAY_SIZE(trackers));
|
|
||||||
m_relation_history_create(&device->trackers[trackers_len]);
|
|
||||||
--
|
|
||||||
2.56.0
|
|
||||||
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
From b1f2190a7fb3367548c6a763b29e78c4331e0d32 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Sapphire <imsapphire0@gmail.com>
|
|
||||||
Date: Mon, 3 Aug 2026 02:48:40 -0500
|
|
||||||
Subject: [PATCH 3/8] d/solarxr: Check for hang up event when polling IPC
|
|
||||||
sockets
|
|
||||||
|
|
||||||
Signed-off-by: Sapphire <imsapphire0@gmail.com>
|
|
||||||
---
|
|
||||||
src/xrt/drivers/solarxr/solarxr_ipc_socket.c | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/src/xrt/drivers/solarxr/solarxr_ipc_socket.c b/src/xrt/drivers/solarxr/solarxr_ipc_socket.c
|
|
||||||
index 85e9cad37..8a38a990c 100644
|
|
||||||
--- a/src/xrt/drivers/solarxr/solarxr_ipc_socket.c
|
|
||||||
+++ b/src/xrt/drivers/solarxr/solarxr_ipc_socket.c
|
|
||||||
@@ -239,7 +239,7 @@ solarxr_ipc_socket_wait_timeout(struct solarxr_ipc_socket *const state, const ti
|
|
||||||
.tv_nsec = timeout % U_TIME_1S_IN_NS,
|
|
||||||
};
|
|
||||||
const bool result = (ppoll(&fd, 1, (timeout >= 0) ? &timeout_ts : NULL, NULL) != -1)
|
|
||||||
- ? (fd.revents & POLLERR) == 0
|
|
||||||
+ ? (fd.revents & (POLLERR | POLLHUP)) == 0
|
|
||||||
: errno == EINTR;
|
|
||||||
|
|
||||||
xrt_reference_dec(&state->reference);
|
|
||||||
--
|
|
||||||
2.56.0
|
|
||||||
|
|
||||||
@@ -1,79 +0,0 @@
|
|||||||
From b3c2ad7da88a0c509fc8237f25d06aba314a2e30 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Sapphire <imsapphire0@gmail.com>
|
|
||||||
Date: Mon, 3 Aug 2026 02:52:06 -0500
|
|
||||||
Subject: [PATCH 4/8] d/solarxr: Reconnect to IPC sockets when connection
|
|
||||||
breaks
|
|
||||||
|
|
||||||
Signed-off-by: Sapphire <imsapphire0@gmail.com>
|
|
||||||
---
|
|
||||||
src/xrt/drivers/solarxr/solarxr_device.c | 37 +++++++++++++++++++-
|
|
||||||
src/xrt/drivers/solarxr/solarxr_ipc_socket.c | 2 --
|
|
||||||
2 files changed, 36 insertions(+), 3 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/xrt/drivers/solarxr/solarxr_device.c b/src/xrt/drivers/solarxr/solarxr_device.c
|
|
||||||
index b976774ae..0993f4f41 100644
|
|
||||||
--- a/src/xrt/drivers/solarxr/solarxr_device.c
|
|
||||||
+++ b/src/xrt/drivers/solarxr/solarxr_device.c
|
|
||||||
@@ -591,10 +591,45 @@ solarxr_network_thread(void *const ptr)
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
- while (solarxr_ipc_socket_wait_timeout(&device->socket, -1)) {
|
|
||||||
+ bool lost_connection = false;
|
|
||||||
+ while (solarxr_ipc_socket_is_connected(&device->socket)) {
|
|
||||||
+ if (!solarxr_ipc_socket_wait_timeout(&device->socket, -1)) {
|
|
||||||
+ if (!solarxr_ipc_socket_is_connected(&device->socket)) {
|
|
||||||
+ // We were woke up from wait_timeout when destroying the socket
|
|
||||||
+ break;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ if (!lost_connection) {
|
|
||||||
+ U_LOG_IFL_E(debug_get_log_option_solarxr_log(),
|
|
||||||
+ "solarxr_ipc_socket_wait_timeout failed; attempting socket reconnect");
|
|
||||||
+ lost_connection = true;
|
|
||||||
+ device->shook_hands = false;
|
|
||||||
+ atomic_store(&device->enabled_bones, 0);
|
|
||||||
+ for (size_t i = 0; i < ARRAY_SIZE(device->tracker_refs); ++i) {
|
|
||||||
+ struct solarxr_generic_tracker *const tracker = device->tracker_refs[i];
|
|
||||||
+ if (tracker == NULL)
|
|
||||||
+ break;
|
|
||||||
+
|
|
||||||
+ os_mutex_lock(&tracker->mutex);
|
|
||||||
+ tracker->charge = -1.f;
|
|
||||||
+ os_mutex_unlock(&tracker->mutex);
|
|
||||||
+ }
|
|
||||||
+ feeder_mark_unsent(&device->feeder);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ //! @todo Maybe write a better way to silence the logs than passing in RAW log level?
|
|
||||||
+ const struct sockaddr_un path = solarxr_ipc_socket_find(U_LOGGING_RAW, "SlimeVRRpc");
|
|
||||||
+ if (solarxr_ipc_socket_connect(&device->socket, path)) {
|
|
||||||
+ lost_connection = false;
|
|
||||||
+ } else {
|
|
||||||
+ os_nanosleep(U_TIME_1S_IN_NS);
|
|
||||||
+ }
|
|
||||||
+ continue;
|
|
||||||
+ }
|
|
||||||
const struct span buffer = {solarxr_ipc_socket_receive(&device->socket), device->socket.buffer};
|
|
||||||
|
|
||||||
if (buffer.length == 0) {
|
|
||||||
+ U_LOG_IFL_E(debug_get_log_option_solarxr_log(), "solarxr_ipc_socket_receive failed");
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
diff --git a/src/xrt/drivers/solarxr/solarxr_ipc_socket.c b/src/xrt/drivers/solarxr/solarxr_ipc_socket.c
|
|
||||||
index 8a38a990c..9492df71f 100644
|
|
||||||
--- a/src/xrt/drivers/solarxr/solarxr_ipc_socket.c
|
|
||||||
+++ b/src/xrt/drivers/solarxr/solarxr_ipc_socket.c
|
|
||||||
@@ -161,8 +161,6 @@ solarxr_ipc_socket_find(const enum u_logging_level log_level, const char filenam
|
|
||||||
bool
|
|
||||||
solarxr_ipc_socket_connect(struct solarxr_ipc_socket *const state, const struct sockaddr_un addr)
|
|
||||||
{
|
|
||||||
- solarxr_ipc_socket_close(state);
|
|
||||||
-
|
|
||||||
xrt_ipc_handle_t ipc_handle = XRT_IPC_HANDLE_INVALID;
|
|
||||||
if (addr.sun_family != AF_UNIX) {
|
|
||||||
goto fail;
|
|
||||||
--
|
|
||||||
2.56.0
|
|
||||||
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
From 6980a355a5c7b623097f52f60e6595794778208e Mon Sep 17 00:00:00 2001
|
|
||||||
From: Sapphire <imsapphire0@gmail.com>
|
|
||||||
Date: Wed, 26 Aug 2026 02:53:26 -0500
|
|
||||||
Subject: [PATCH 5/8] d/solarxr: Add missing includes in solarxr_ipc_message
|
|
||||||
header
|
|
||||||
|
|
||||||
Signed-off-by: Sapphire <imsapphire0@gmail.com>
|
|
||||||
---
|
|
||||||
src/xrt/drivers/solarxr/solarxr_ipc_message.h | 2 ++
|
|
||||||
1 file changed, 2 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/src/xrt/drivers/solarxr/solarxr_ipc_message.h b/src/xrt/drivers/solarxr/solarxr_ipc_message.h
|
|
||||||
index 72eeb381e..7d827a7b8 100644
|
|
||||||
--- a/src/xrt/drivers/solarxr/solarxr_ipc_message.h
|
|
||||||
+++ b/src/xrt/drivers/solarxr/solarxr_ipc_message.h
|
|
||||||
@@ -3,6 +3,8 @@
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
#include <endian.h>
|
|
||||||
+#include <stdbool.h>
|
|
||||||
+#include <stdint.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
--
|
|
||||||
2.56.0
|
|
||||||
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
From 570b839dba744f592685fbc76a3dee00d397de9b Mon Sep 17 00:00:00 2001
|
|
||||||
From: Sapphire <imsapphire0@gmail.com>
|
|
||||||
Date: Wed, 26 Aug 2026 04:30:16 -0500
|
|
||||||
Subject: [PATCH 6/8] d/solarxr: Name the network thread
|
|
||||||
|
|
||||||
Signed-off-by: Sapphire <imsapphire0@gmail.com>
|
|
||||||
---
|
|
||||||
src/xrt/drivers/solarxr/solarxr_device.c | 6 ++++++
|
|
||||||
1 file changed, 6 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/src/xrt/drivers/solarxr/solarxr_device.c b/src/xrt/drivers/solarxr/solarxr_device.c
|
|
||||||
index 0993f4f41..e5c6303df 100644
|
|
||||||
--- a/src/xrt/drivers/solarxr/solarxr_device.c
|
|
||||||
+++ b/src/xrt/drivers/solarxr/solarxr_device.c
|
|
||||||
@@ -15,6 +15,7 @@
|
|
||||||
#include "util/u_debug.h"
|
|
||||||
#include "util/u_device.h"
|
|
||||||
#include "util/u_time.h"
|
|
||||||
+#include "util/u_trace_marker.h"
|
|
||||||
|
|
||||||
#include <endian.h>
|
|
||||||
#include <stdatomic.h>
|
|
||||||
@@ -348,6 +349,11 @@ solarxr_network_thread(void *const ptr)
|
|
||||||
{
|
|
||||||
struct solarxr_device *const device = (struct solarxr_device *)ptr;
|
|
||||||
|
|
||||||
+ const char *const thread_name = "SolarXR Network";
|
|
||||||
+
|
|
||||||
+ U_TRACE_SET_THREAD_NAME(thread_name);
|
|
||||||
+ os_thread_name_self(thread_name);
|
|
||||||
+
|
|
||||||
static const char driver_name[] = "Monado";
|
|
||||||
struct
|
|
||||||
{
|
|
||||||
--
|
|
||||||
2.56.0
|
|
||||||
|
|
||||||
@@ -1,88 +0,0 @@
|
|||||||
From 6987a5982092d91d142b065f5bf00ca9ea50d861 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Sapphire <imsapphire0@gmail.com>
|
|
||||||
Date: Wed, 26 Aug 2026 18:57:37 -0500
|
|
||||||
Subject: [PATCH 7/8] d/solarxr: Add tracing markers
|
|
||||||
|
|
||||||
Signed-off-by: Sapphire <imsapphire0@gmail.com>
|
|
||||||
---
|
|
||||||
src/xrt/drivers/solarxr/feeder.c | 8 ++++++++
|
|
||||||
src/xrt/drivers/solarxr/solarxr_device.c | 6 ++++++
|
|
||||||
2 files changed, 14 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/src/xrt/drivers/solarxr/feeder.c b/src/xrt/drivers/solarxr/feeder.c
|
|
||||||
index f217a446c..6f38fe24b 100644
|
|
||||||
--- a/src/xrt/drivers/solarxr/feeder.c
|
|
||||||
+++ b/src/xrt/drivers/solarxr/feeder.c
|
|
||||||
@@ -12,6 +12,7 @@
|
|
||||||
#include "solarxr_ipc_message.h"
|
|
||||||
|
|
||||||
#include "util/u_hashmap.h"
|
|
||||||
+#include "util/u_trace_marker.h"
|
|
||||||
#include "xrt/xrt_device.h"
|
|
||||||
|
|
||||||
#include <math.h>
|
|
||||||
@@ -777,6 +778,8 @@ feeder_device_send_feedback_cb(const uint64_t key, const void *const value, void
|
|
||||||
struct send_feedback_userdata *const data = (struct send_feedback_userdata *)userptr;
|
|
||||||
enum solarxr_tracker_status status = SOLARXR_TRACKER_STATUS_DISCONNECTED;
|
|
||||||
|
|
||||||
+ XRT_TRACE_MARKER();
|
|
||||||
+
|
|
||||||
if (xdev == NULL) {
|
|
||||||
device->next_to_erase = data->to_erase;
|
|
||||||
data->to_erase = device;
|
|
||||||
@@ -827,6 +830,8 @@ feeder_device_send_feedback_cb(const uint64_t key, const void *const value, void
|
|
||||||
void
|
|
||||||
feeder_send_feedback(struct feeder *const feeder)
|
|
||||||
{
|
|
||||||
+ XRT_TRACE_MARKER();
|
|
||||||
+
|
|
||||||
os_mutex_lock(&feeder->mutex);
|
|
||||||
|
|
||||||
struct send_feedback_userdata data;
|
|
||||||
@@ -834,7 +839,10 @@ feeder_send_feedback(struct feeder *const feeder)
|
|
||||||
data.time = os_monotonic_get_ns();
|
|
||||||
data.log_level = feeder->socket->log_level;
|
|
||||||
data.packet_end = data.packet;
|
|
||||||
+
|
|
||||||
+ XRT_TRACE_BEGIN(feeder_device_send_feedback_foreach);
|
|
||||||
u_hashmap_int_for_each(feeder->devices, feeder_device_send_feedback_cb, &data);
|
|
||||||
+ XRT_TRACE_END(feeder_device_send_feedback_foreach);
|
|
||||||
|
|
||||||
// flush queued messages to socket
|
|
||||||
if (data.packet_end != data.packet) {
|
|
||||||
diff --git a/src/xrt/drivers/solarxr/solarxr_device.c b/src/xrt/drivers/solarxr/solarxr_device.c
|
|
||||||
index e5c6303df..c0fb60c10 100644
|
|
||||||
--- a/src/xrt/drivers/solarxr/solarxr_device.c
|
|
||||||
+++ b/src/xrt/drivers/solarxr/solarxr_device.c
|
|
||||||
@@ -294,8 +294,11 @@ static void
|
|
||||||
solarxr_device_handle_bones(struct solarxr_device *const device,
|
|
||||||
const struct solarxr_bone bones[ARRAY_SIZE(device->bones)])
|
|
||||||
{
|
|
||||||
+ XRT_TRACE_MARKER();
|
|
||||||
+
|
|
||||||
os_mutex_lock(&device->mutex);
|
|
||||||
|
|
||||||
+ XRT_TRACE_BEGIN(solarxr_device_handle_generic_trackers);
|
|
||||||
for (size_t i = 0; i < ARRAY_SIZE(device->tracker_refs); ++i) {
|
|
||||||
const struct solarxr_generic_tracker *const tracker = device->tracker_refs[i];
|
|
||||||
if (tracker == NULL || tracker->role == SOLARXR_BODY_PART_NONE) {
|
|
||||||
@@ -324,6 +327,7 @@ solarxr_device_handle_bones(struct solarxr_device *const device,
|
|
||||||
};
|
|
||||||
m_relation_history_push(history, &relation, device->socket.timestamp);
|
|
||||||
}
|
|
||||||
+ XRT_TRACE_END(solarxr_device_handle_generic_trackers);
|
|
||||||
|
|
||||||
bool generation_increased = false;
|
|
||||||
for (uint32_t i = 0; i < ARRAY_SIZE(device->bones); ++i) {
|
|
||||||
@@ -639,6 +643,8 @@ solarxr_network_thread(void *const ptr)
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
+ XRT_TRACE_IDENT(solarxr_network_frame);
|
|
||||||
+
|
|
||||||
struct solarxr_message_bundle bundle;
|
|
||||||
if (!read_solarxr_message_bundle(&bundle, buffer.data, buffer.length,
|
|
||||||
(const solarxr_message_bundle_t *)buffer.data)) {
|
|
||||||
--
|
|
||||||
2.56.0
|
|
||||||
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
From 96a51c1a89db5fd07e44f6026173a44e050a0c43 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Sapphire <imsapphire0@gmail.com>
|
|
||||||
Date: Tue, 1 Sep 2026 02:50:08 -0500
|
|
||||||
Subject: [PATCH 8/8] d/solarxr: Try SLIMEVR_SOCKET_DIR override socket path
|
|
||||||
|
|
||||||
Signed-off-by: Sapphire <imsapphire0@gmail.com>
|
|
||||||
---
|
|
||||||
src/xrt/drivers/solarxr/solarxr_ipc_socket.c | 12 ++++++++++++
|
|
||||||
1 file changed, 12 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/src/xrt/drivers/solarxr/solarxr_ipc_socket.c b/src/xrt/drivers/solarxr/solarxr_ipc_socket.c
|
|
||||||
index 9492df71f..2d833223b 100644
|
|
||||||
--- a/src/xrt/drivers/solarxr/solarxr_ipc_socket.c
|
|
||||||
+++ b/src/xrt/drivers/solarxr/solarxr_ipc_socket.c
|
|
||||||
@@ -115,6 +115,18 @@ solarxr_ipc_socket_find(const enum u_logging_level log_level, const char filenam
|
|
||||||
return (struct sockaddr_un){0};
|
|
||||||
}
|
|
||||||
|
|
||||||
+ // try override path
|
|
||||||
+ const char *override_env;
|
|
||||||
+ int override_path_len = 0;
|
|
||||||
+ if ((override_env = getenv("SLIMEVR_SOCKET_DIR")) != NULL) {
|
|
||||||
+ override_path_len = snprintf(addr.sun_path, sizeof(addr.sun_path), "%s/%s", override_env, filename);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ if (override_path_len > 0 && (unsigned)override_path_len < sizeof(addr.sun_path) &&
|
|
||||||
+ check_socket_path(log_level, addr.sun_path)) {
|
|
||||||
+ return addr;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
const ssize_t runtime_dir_len =
|
|
||||||
u_file_get_path_in_runtime_dir("", addr.sun_path, sizeof(addr.sun_path) - 1 - filename_len);
|
|
||||||
if (runtime_dir_len <= 0 || (size_t)runtime_dir_len >= sizeof(addr.sun_path) - 1 - filename_len) {
|
|
||||||
--
|
|
||||||
2.56.0
|
|
||||||
|
|
||||||
@@ -244,7 +244,7 @@ public:
|
|||||||
{
|
{
|
||||||
for (auto codec: codecs)
|
for (auto codec: codecs)
|
||||||
{
|
{
|
||||||
if (codec == video_codec::av1 and (config.name.empty() or codecs.size() > 1))
|
if (codec == video_codec::av1 and config.name.empty())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (has_vk(codec))
|
if (has_vk(codec))
|
||||||
|
|||||||
Reference in New Issue
Block a user