run.sh: pads plugged in during play reach the game #129
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!129
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-129"
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?
@skalel on GitHub · 2026-12-01 23:22 UTC · original
skalel:fix/pad-hotplug→main· +3 −0 · 1 files · 1 commits · merged 2026-12-02 05:12 UTCA controller plugged in after the game starts, or one that goes to sleep and comes back, is never seen again until the game is restarted.
run.shstarts Wine underunshare -rnm. SDL, which Wine's bus driver gets its pads from, hears of new ones from udev by a netlink socket, and those messages do not reach another network namespace. WithSDL_JOYSTICK_DISABLE_UDEV=1it watches/dev/inputby inotify instead. The variable is set beforerun.confis read, soSDL_JOYSTICK_DISABLE_UDEV=0there turns it off.Checked
With an XInput probe run through
run.shin place of the game (Proton-CachyOS), and a virtual Xbox 360 pad (uinput):The same probe under
unshare -rm(no network namespace) sees the pad without the variable.In the game (Series S, a USB pad in its X-Box mode): started without it and plugged in later, in two sessions. The log has
input device device=0 connected=trueabout a second after the kernel saw the pad. Before this change, the same pad plugged in 13 s after the game had opened was never connected.Not tested
#77 is about another cause (a DualSense that XInput does not list).
🤖 Generated with Claude Code
@chatgpt-codex-connector[bot] on GitHub · 2026-12-01 23:24 UTC · original · edited 2026-12-01 23:26 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
441eb1aℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.