Repository navigation
Conversation
97f46ab to
e803e1b
Compare
Temporary [FOR-UPSTREAM] DKMS carry of the tb_ar_shim module, which fixes suspend/resume of the Alpine Ridge Thunderbolt 3 controller on the Apple MacBookPro14,1 (omacom/omarchy#10593). Same shape as qmk-hid/tzupdate: a "source": "local" PKGBUILD fetching the tag tarball from the module's own repo, https://github.com/orospakr/linux-apple-alpine-ridge-suspend, with a git_tags upstream provider so sync-upstream opens version bumps. The module source, README, the drivers/pci/quirks.c patch headed to linux-pci, and the CI that builds the module against Arch linux/linux-lts headers all live in that repo; omarchy-pkgs carries only the PKGBUILD and metadata. Validated on MacBookPro14,1: 28/28 suspend cycles across both sleep modes, 1.3-1.4 s resumes; the module installed via pacman, dkms-built, cold-boot autoload verified. The companion detector/install script/migration is omacom/omarchy#10758. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014SjBV8RAyo6et6LMmurU9W
e803e1b to
cb69dda
Compare
|
Data point from a MacBookPro14,3 (dual Alpine Ridge JHL6540, kernel
|
|
Follow-up to my question above about the 17.5 s noirq resume on the MacBookPro14,3. Still not a test of this shim. That delay was the ACPICA bug fixed by #544. On the 14,3 the This was measured together with Full list of 14,3 suspend fixes, their dependencies and limits (PC6 never reached, no S3 because of the Radeon SMU, first-sleep-only testing): #596. |
|
Thanks for the 14,3 data and the follow-up. ACPICA fix: my 1.3–1.4 s resumes were measured without it. The original 28-cycle validation was on Why the shim doesn't hit the Scope: agreed, the shim would very likely bind on the 14,3. The match is any Power: I see the same PC6 result on the 14,1. Over a 3-minute s2idle today the package spent ~100% of the sleep in PC3 ( 🤖 Generated with Claude Code |
|
Independent package/module validation on a MacBookPro14,1 (2017 13-inch, two ports), Omarchy 4.5.0-3, linux-omarchy 7.2.15-1, systemd 262.1, on November 8, 2026.
My old controller-removal/Thunderbolt-unload hook and blacklist were inactive during these tests; the remaining local hook handled camera/display only. The device timing covers machine_suspend end to thaw_processes end, not time asleep or network reconnection. This is three module cycles on one machine, separate from the author's cycle count. No Thunderbolt peripheral, overnight battery drain, hibernation, other model, or second-kernel runtime test was performed. The normal driver logged missing tunneled-native-port device links at initialization. This verifies the module/package on my machine, not the companion Omarchy installer/migration unchanged. Full comparison and context: omacom/omarchy#10758 (comment). I'm withdrawing my older hook-based proposal omacom/omarchy#9899 in favor of the shim approach. |
Adds
tb-ar-shim-dkms, a temporary ([FOR-UPSTREAM]) DKMS package fixing suspend/resume of the Alpine Ridge Thunderbolt 3 controller on the Apple MacBookPro14,1, per the investigation in omacom/omarchy#10593.Shape: the same as
qmk-hid/tzupdate— a"source": "local"PKGBUILD that fetches a tag tarball from the module's own public repo, https://github.com/orospakr/linux-apple-alpine-ridge-suspend, with agit_tagsupstream provider inpackage.jsonsosync-upstreamopens the version bumps. What omarchy-pkgs carries is the PKGBUILD and the metadata (~35 lines); the module source, its README, the in-treedrivers/pci/quirks.cpatch headed to linux-pci, and the CI that builds the module against Archlinux/linux-ltsheaders and re-checks the upstream patch against pci-next weekly all live in that repo. (An earlier revision of this PR vendored the C source here; this is the slimmed-down replacement.)What it fixes: two kernel bugs on this machine, both of which leave Thunderbolt and the USB-C ports dead after every suspend:
skip_bus_pm+pm_suspend_no_platform()), but this controller genuinely loses its config space during sleep — dead NHI (-ESHUTDOWN) until module reload.The module grafts a
dev_pm_domainonto the controller's upstream bridge: saves the subtree's config space insuspend_late(while the chip is still readable) and restores it parents-first inresume_noirq. It autoloads by PCI modalias and verifies the on-board controller via Apple's ACPI signature (same trick as the mainline Cactus Ridge quirk), so it exits-ENODEVeverywhere else.Validation: 28/28 suspend cycles on a MacBookPro14,1 across both sleep modes, 1.3–1.4 s resumes; the previous revision of this exact module was installed via pacman, dkms-built, and verified through a cold boot (modalias autoload + suspend).
makepkgof this revision verified locally against the v1.0.0 tag tarball; the module source is byte-identical apart from one comment line pointing at the new repo.Sunset: documented in the upstream repo README — once the quirks land in mainline and every bootable kernel has them, the package is removed with
pacman -Rns. The companion install-script/migration PR omacom/omarchy#10758 (gating on the exact DMI model and defaulting the machine to s2idle) depends on this package being published.🤖 Generated with Claude Code
https://claude.ai/code/session_014SjBV8RAyo6et6LMmurU9W