Repository navigation
DualSense keeps separate handle haptics with plain players - #986
minhthongdoan wants to merge 1 commit into
Conversation
Game controllers served by gamecontrollerd on macOS report no advanced players to Core Haptics (NSCocoaErrorDomain 4097). The fallback for controllers without advanced players merges LeftHandle and RightHandle into a single Handles (or Default) engine, because rotating motors on Xbox controllers override each other when driven concurrently. DualSense voice-coil actuators are physically independent and do not override each other. Merging them forces mono rumble, losing directional spatial cues and muting vibration detail. When the controller's product category is GCProductCategoryDualSense, mark both handle channels simple directly without configuring the merge fallback. Left and right channels run plain players on their own handles, restoring stereo rumble. Checked: - t_haptics_apple: verified DualSense routes to separate LeftHandle and RightHandle plain players with independent levels, and that non-DualSense controllers retain the merge fallback. - Hardware playtest on macOS 26.7.1 (Apple silicon) with a Sony DualSense wireless controller over Bluetooth: verified distinct per-channel vibrations and in-game stereo rumble in Super Mario Odyssey (0100000000010000).
|
The code path is fine and the routing test passes in reading. I'm not landing it yet, because the description only mentions the mocked |
|
Thanks for the review! Here is the hardware test confirmation:
Regarding the CI failure: the single failing job is |
…ffers no advanced players, instead of one engine for both: a controller with both handle localities whose first advanced player is refused (gamecontrollerd, NSCocoaErrorDomain 4097) is moved to one engine on Handles or Default, because plain players on the Xbox Wireless Controller's two handle engines override each other, so a DualSense rumbled the same on both sides. A DualSense (GCProductCategoryDualSense) now gets no merge (configure, haptics_apple.m): each handle still asks for an advanced player and, when refused, moves to plain players on a new engine of its own locality, the path a one-engine controller already takes, so left and right keep their own levels. PR #986 set plain players at connection for every DualSense, which would also give up advanced players wherever a server offers them; its diagnosis, hardware test and the test's shape are kept. Why the Xbox controller's handle engines override each other is not known (its motors or its driver), so other controllers with both handles stay merged, and the reference entry says so. Checked here: the host tests pass, t_haptics_apple with two new cases (a DualSense without advanced players keeps two channels on LeftHandle and RightHandle at 0.3 and 0.4 and plays one side alone; with advanced players it makes no plain players), and test_docs. The author's runs were with the PR's form (MacBook Air M1, macOS 26.7.1, DualSense over Bluetooth): a five-step probe (left only, right only, 0.2 / 0.8, silence) and Super Mario Odyssey's buried Power Moons, each side felt apart. Not run: any DualSense with this form, so the right handle's refusal and new engine are unchecked on hardware (the left handle's is what main already met); USB, iOS, a DualSense Edge; lint_c.py; regress.py (the reach is one controller model's haptics route) (PR #986) Co-authored-by: minhthongdoan <28199243+minhthongdoan@users.noreply.github.com>
|
Thanks for the hardware test, that was what this needed. It is on main as 477b4f8, with you as co-author, in a slightly different form:
One step differs from what you ran: the right handle's advanced player is now also refused once before its plain players start (on main only the left handle's was). I have no DualSense here, so that is covered by Closing this as landed; please reply here if main behaves differently from your branch. |
|
Tested the
|
What and why
Game controllers served by
gamecontrollerdon macOS report no advanced players to Core Haptics (NSCocoaErrorDomain4097). The fallback for controllers without advanced players mergesLeftHandleandRightHandleinto a singleHandles(orDefault) engine, because rotating motors on Xbox controllers override each other when driven concurrently.DualSense voice-coil actuators are physically independent and do not override each other. Merging them forces mono rumble, losing directional spatial cues and muting vibration detail.
When the controller's product category is
GCProductCategoryDualSense, mark both handle channelssimpledirectly without configuring the merge fallback. Left and right channels run plain players on their own handles, restoring stereo rumble (docs/reference/services.md).Checked
t_haptics_apple— verified DualSense routes to separateLeftHandleandRightHandleplain players with independent levels, and that non-DualSense controllers retain the merge fallback.0100000000010000) — verified in-game directional stereo rumble (locating buried Power Moons vibrates left and right handles independently rather than collapsing into mono), plus a 5-step standalone probe (left-only, right-only, asymmetric 0.2/0.8, and zeroing).054c:0ce6) over Bluetooth. iOS/iPadOS were not tested on hardware.Docs
docs/reference/services.mdentry, andpython3 dm/tools/docs_symptoms.pywas run (the symptom index)