Repository navigation
Keep the MacBookPro14,1 USB-C controller awake for hotplug - #15537
hermitokatt wants to merge 2 commits into
Conversation
The Alpine Ridge xHCI (8086:15d4) runtime-suspends when nothing is plugged in, and its root hubs have remote wakeup disabled, so a device can take VBUS while the controller never sees the connect. Keep the controller and those hubs out of runtime suspend, and repeat the write after resume because the controller's power cycle drops the policy.
[High impact] The PR appears safe to merge, with a non-blocking retry gap remaining in the previous migration finding. Findings
SummaryKeeps the Alpine Ridge USB-C controller and its root hubs awake on
|
| if (( installed_rule )); then | ||
| sudo udevadm control --reload-rules | ||
| fi |
There was a problem hiding this comment.
If the hook install or reload fails after the rule file is installed, the file remains on disk. The next run sets installed_rule=0, skips the reload, and can mark the migration complete. The rule then stays inactive until a reboot or manual reload. Keep track of an unfinished reload or reload existing Omarchy-owned rules on retry.
Knowledge Base Used: Migration framework
The ISO runs hardware setup in a chroot with no udevd, and a failed udevadm control there aborted the rest of the install. Skip the reload when /run/udev/control is absent. The next daemon reads the rule from disk. A migration that installed the rule and then failed left the file on disk and skipped the reload on retry, so the rule stayed inactive. Record the reload before the later steps, and leave that marker in place when the reload fails so the next run tries again.
|
Thanks for this. I read the diff at Reading only, I found nothing to report against this head. Both of Greptile's earlier findings are handled here: the install script skips Next: this goes round the queue again once review capacity is back, and the full review happens then. Because the bug depends on hardware a worker does not have, verifying it will need someone with a MacBookPro14,1 to confirm the fix at the head commit. That confirmation has to come from a maintainer or someone who reported the problem, not the pull request's author. |
|
MacBookPro14,3 (2017 15", two JHL6540): same problem on both Alpine Ridge controllers Kernel Rule used (the DMI match only matters for a manual install; your hardware script already filters): I installed this rule and rebooted. Both controllers came up at Cost: on battery, 10-minute windows alternating Could the gate be |
Summary
On a MacBookPro14,1 the left-side USB-C ports are the Alpine Ridge xHCI (
8086:15d4). With nothing plugged in, that controller runtime-suspends and its root hubs have remote wakeup disabled. A stick then gets VBUS (the LED lights) while the controller never sees the connect.This keeps the controller and those hubs at
power/control=on, the same shape of quirk as the N1x USB4 root ports. A system-sleep hook repeats the write after resume, because the controller's power cycle does not always keep the policy. The PCH xHCI is left alone. New installs get it from hardware setup. Existing installs get it from a migration, which does not replace a rule or hook already on disk.This does not change S3 resume. #10593 is the separate report that deep sleep kills Thunderbolt on this model.
Verified on a MacBookPro14,1: a USB stick that previously only lit its LED enumerated after the controller and its root hubs were held awake.
Test plan
bash test/shell.d/alpine-ridge-usb-test.shbash test/shell.d/privileged-heredoc-test.sh