mirror of
https://github.com/games-on-whales/wolf.git
synced 2026-10-15 21:12:08 +00:00
[PR #190] [MERGED] Hidraw hotplug fix #387
Labels
No labels
🧠 1 - 🤖 999
AMD
bug
bug
cannot reproduce
documentation
duplicate
easy
enhancement
enhancement
enhancement
fixed?
fixed?
good first issue
hard
help wanted
Intel
invalid
LXC
medium
moonlight-protocol
Multi GPU
nixos
not a bug
nvidia
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
games-on-whales/wolf#387
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/games-on-whales/wolf/pull/190
Author: @ABeltramo
Created: 4/1/2025
Status: ✅ Merged
Merged: 4/2/2025
Merged by: @ABeltramo
Base:
stable← Head:dev-hidraw-fix📝 Commits (2)
4680192fix: dynamically set cgroup rulese0ba6e6feat: updated dependencies📊 Changes
7 files changed (+111 additions, -31 deletions)
View changed files
📝
.github/workflows/linux-build-test.yml(+3 -3)📝
CMakeLists.txt(+14 -0)📝
src/core/src/platforms/all/helpers/CMakeLists.txt(+1 -1)📝
src/moonlight-server/CMakeLists.txt(+16 -8)📝
src/moonlight-server/api/endpoints.cpp(+18 -18)📝
src/moonlight-server/runners/docker.cpp(+57 -0)📝
tests/CMakeLists.txt(+2 -1)📄 Description
Thanks to all reports in #187 and after a bit of digging, I've found out that there was a mismatch in the
majornumber that would be assigned forhidrawdevices; for example244on Arch whilst246on Debian. When the mismatch occurs, our hot plugging code (mknod /dev/hidraw* ...) will silently fail resulting inwhich in turn will end up in mismatched inputs between the client and the server as originally reported.
Turns out that
hidrawdevices use dynamically assigned major numbers rather than static ones. You can easily check which number you get assigned withSo, we could do the unsafe way of defaulting to
c *:* rmw, instead I've added the code for dynamically grab those values and set the rightDeviceCgroupRulesinstead.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.