Repository navigation
soc: apple: sleep: T8142: no timed wake by default - #3134
Merged
DjDeveloperr merged 1 commit intoNov 25, 2026
Merged
Conversation
apple_sleep.t8142_wake_s defaulted to 30, so every T8142 deep sleep set the PMU's RTC compare 30 s after the commit and woke itself: a closed lid or a menu suspend came back after half a minute. The timer is a test knob (the sleep tests set it themselves), and with it at 0 the PMU keeps its own compare and the sleep lasts until a key, the trackpad, the lid or the power button. Default it to 0. apple_sleep.t8142_wake_s=N still asks for a timed wake. Signed-off-by: Nick <[email protected]>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
satchlj
approved these changes
Nov 25, 2026
satchlj
left a comment
Member
There was a problem hiding this comment.
Verdict: MERGE at 50bc7fab53cb
Blockers: none
Checked: diff, CI, hardware test row
Evidence
- Code audit:
t8142_timed_wake_secsdefaults to0so normal sleep stays asleep indefinitely without arming the 12 s debug wake timer, while explicit module-parameter values remain capped atT8142_TIMED_WAKE_MAX_SECS. - Exact-head hardware row present on T8142 and all 25 CI checks passed (
0pending,0failed).
Contributor
|
J813 (MacBook Air 13" M5) row at
Not tested: external displays across a sleep (the DCPEXT point in the review), a lid-close sleep. Assisted-by: LLM (Claude:Opus 5.5) |
This was referenced Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What: stop T8142 deep sleeps waking themselves after 30 s.
apple_sleep.t8142_wake_sdefaulted to 30, so every M5 deep sleep set the PMU's RTC compare 30 s after the commit: a closed lid or a menu suspend came back on its own after half a minute. It is a test knob (the sleep tests set it themselves); the default is now 0, which leaves the PMU's compare alone, so a sleep lasts until a key, the trackpad, the lid or the power button wakes it.Tested: J815 (MacBook Air 15" M5) at
50bc7fab53cb, in the batched candidatem0d16l14n1/linuxj815/prtest-r87b4bbe9, with not8142_wake_s(or any other sleep word) on the command line: PASS.t8142_wake_s=0as booted; the PMU alarm step left the compare as it was (compare 21158909, the same value as on the earlier boots); a plainsystemctl suspendslept 185.3 s and woke on a key/trackpad touch, not on the timer. Earlier on r7, withapple_sleep.t8142_wake_s=0passed by hand: 603.7 s until a key. Regression: 0 SELinux denials (SELinux off), 0 failed units, 0 new kernel errors after the wake, 0 WARN/BUG/Oops.Risk: two-way door; T8142 (J813, J815) deep sleep only.
apple_sleep.t8142_wake_s=Nstill asks for a timed wake.Not yet: a J813 row at this head. The other defaults a plain M5 deep sleep needs are separate PRs (T8142 deep sleep by default; the Alpha handshake default, stacked on #2385).
Details
One commit,
soc: apple: sleep: T8142: no timed wake by default: the parameter's default goes from 30 to 0, and the comment and description say what 0 does. The timed wake was added for the bring-up tests, which pass the parameter themselves.Evidence
Candidate:
m0d16l14n1/linuxj815/prtest-r87b4bbe9 =j815/prtest-r7d70fd05 (maina60fef7 + #2384 f9d03e8, #2385 b1c3392, #2192 c5daf57, #2193 8be9e73, #3123 822a1dd, #3124 1a272ce, #3125 4ad71b8, #3129 6d5ec4d, #3130 76bf36c and the open J815 PRs, unchanged) +j815/t8142-no-timed-wake50bc7fa +j815/t8142-deep-defaulta8f7cec +j815/centauri-alpha-sleep-defaultf63bd68.Command line, with no sleep words:
console=tty0 user4k=on pcie_aspm=off idle=nop arm64.nowfxtplus the image's root/ESP words,apple_sep.xart_writes=0 apple_sep.provision_keybag=0(removed frommain, logged as unknown and ignored) andaurora.untested_commit=0 aurora.alphasleep=0(stop the test initramfs setting the two opt-ins, so the kernel defaults are what run).Boot
53a3b9b0:r7 (boot
9325546c,apple_sleep.t8142_wake_s=0by hand):Timekeeping suspended for 603.654 seconds, wake sourceMTP.DOCK.CHANNELS.AP0.IRQ(a key).