run.sh: allow udev netlink hotplug for controllers connected after launch #296
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!296
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-296"
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?
@outcome on GitHub · 2026-12-03 07:40 UTC · original
outcome:fix/controller-hotplug→main· +1 −4 · 1 files · 1 commits · openA controller connected after the game starts is not detected because
run.shforces SDL ontoinotify(SDL_JOYSTICK_DISABLE_UDEV=1) and runs non-Proton Wine insideunshare -rnm(whose-nnetwork namespace blocksudevnetlink events).With
SDL_JOYSTICK_DISABLE_UDEV=1, SDL'sinotifyfallback can raceudevdapplyinguaccessACLs on newly created/dev/input/event*nodes and miss the controller. Since Proton runs already skipunshare -rnm, removingSDL_JOYSTICK_DISABLE_UDEV=1and dropping-n(unshare -rm) for non-Proton runs letsudevnetlink deliver hotplug events after device permissions are ready.Checked
Not tested
unshare -rmpath).@Luxuride on GitHub · 2026-12-04 12:09 UTC · original
Yes, please — this is the correct root cause for hotplug, and it is four deleted lines. One paragraph is missing.
What I verified:
run.sh:104-106onmainis the comment that justified-n(udev netlink is namespaced, so a controller plugged in after launch never delivered its event and SDL fell back to/dev/inputpolling). Deleting the isolation is right; deleting the explanation leaves the next reader thinking the namespace is still there.git grep SDL_JOYSTICK_DISABLE_UDEV main -- run.shstill hits onmain, so nothing else has landed this. Not a duplicate of the non-systemd memory-cap PRs.-ngone the title runs in the host network namespace and has network access. Nothing indocs/says so. Add one sentence where the namespace mode is described.Two small asks:
VICTORY_ISOLATE_NET=1re-adding-n). Costs nothing, keeps the isolation for people who want it. If you would rather not carry a switch for this, say that instead; either is fine, silence is not.173 commits behind, merges clean. With the paragraph added I would take it this week.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.