Repository navigation
linux-aurora 7.3.0.aurora1-34, aurora-sep 1-25: pin integration/aurora 2b05915f (T8140 deep sleep), mem-only suspend policy - #199
Merged
Conversation
The T8140 deep-sleep series (aurora-silicon/linux#1208) adds CONFIG_APPLE_T8140_SLEEP=y to asahi.config. ALARM merges that fragment at build time, but NixOS builds from this resolved config without it and then checks it against the fragment, where the bool with no default resolves to n. Record it here, as earlier pins did for their new options. The pinned d4d2678 kernel doesn't have the symbol, so olddefconfig drops it and this build is unchanged. With the sleep series, the config resolves it to y and passes validate-config.py. Signed-off-by: Diljit Singh <hey@djdev.me>
Until apple_sep is bound, the T8140 sleep controller refuses a deep sleep (EBUSY), and aurora-sep.timer only starts the load a second after boot. It can take most of a minute, so a lid close or power-button press early in a boot fails to sleep and leaves the Mac awake. Order systemd-suspend after aurora-sep.service, so a sleep that starts while the load runs waits for it. systemd-hybrid-sleep and systemd-suspend-then-hibernate suspend the same way and get the same drop-in. Today's kernels have no hibernation, so neither runs yet. Only After=, no Wants=: a sleep must not start a load that's disabled, or rerun one that failed, which can take up to the load's 180 s timeout before every sleep. When the load has already finished, nothing waits. Signed-off-by: Diljit Singh <hey@djdev.me>
… RTC aurora-silicon/linux#1334 renames the deep-sleep driver for all Apple SoCs: CONFIG_APPLE_T8140_SLEEP becomes CONFIG_APPLE_SOC_SLEEP, and asahi.config sets the new one. #1333 makes the PMU RTC the J700's rtc0, built in, so asahi.config sets CONFIG_RTC_DRV_APPLE_PMU=y. Record both in the resolved config, which NixOS builds from without merging the fragment and then checks against it. TODO: both need the kernel pin to carry #1334 and #1333, which the PKGBUILD's TODO says too. Under d4d2678 neither symbol changes anything: it has no sleep driver, and olddefconfig drops the unknown one. Signed-off-by: Diljit Singh <hey@djdev.me>
Preserve current source pins and distro changes while retaining the sleep config requests and ordering. Refused mem requests must fail visibly; leave the selected mem mode and explicit user opt-in authoritative. Signed-off-by: Diljit Singh <hey@djdev.me>
This was referenced Nov 10, 2026
Keep main's source pins and package changes and this branch's sleep config requests, SEP sleep ordering and mem-only suspend policy. aurora-sep takes pkgrel 25, both new files in its sources, and its checksums recomputed from the merged files. Signed-off-by: Diljit Singh <hey@djdev.me>
2b05915f is integration/aurora with aurora-silicon/linux#1445 merged: suspend-to-RAM on T8140 (CONFIG_APPLE_SOC_SLEEP) with the PMU RTC wake alarm built in (CONFIG_RTC_DRV_APPLE_PMU=y), both of which the source's asahi.config now sets, and the integration changes since 84d091f7. olddefconfig at the new pin keeps both sleep options at y and adds four lines for new symbols at their defaults: CONFIG_APPLE_PIODMA=m, CONFIG_APPLE_CLUSTER_PWRGATE=y, and CONFIG_SND_SOC_APPLE_T8152_AOP_AUDIO and CONFIG_CRYPTO_DEV_APPLE_SIO_AES not set. The pending-pin TODO goes. Signed-off-by: Diljit Singh <hey@djdev.me>
package() writes fprintd-no-timeout.conf from fprintd-no-timeout.conf.in in the build directory. A copy of that output was committed next to the template; nothing reads it. Signed-off-by: Diljit Singh <hey@djdev.me>
DjDeveloperr
marked this pull request as ready for review
November 12, 2026 02:24
The merge kept main's adaptations text and this branch's sleep-ordering sentence, but dropped the branch's three sentences after it: the mem-only suspend policy and that these are distribution adaptations. Put them back, and the provenance checksum with them. Signed-off-by: Diljit Singh <hey@djdev.me>
The base configuration is resolved against the pin: the source's asahi.config merged in, then olddefconfig, as prepare() does. The previous commit ran olddefconfig without the merge, so it left the two new asahi.config options at their Kconfig defaults. NixOS byte-copies this file and doesn't merge asahi.config, so its validation rejected them. Resolved, CONFIG_SND_SOC_APPLE_T8152_AOP_AUDIO and CONFIG_CRYPTO_DEV_APPLE_SIO_AES are m, and CONFIG_PINCTRL_APPLE_GPIO is m. asahi.config sets the GPIO driver to m at both 84d091f7 and 2b05915f, so prepare() already overrode this file's y and the package builds it as m. Replaying prepare() on this file now changes nothing. Signed-off-by: Diljit Singh <hey@djdev.me>
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.
Pins
linux-aurorato linux2b05915f, the merge of linux#1445 (T8140 suspend-to-RAM) intointegration/aurora. Also ships the suspend policy inaurora-sep.Kernel pin
linux-aurora7.3.0.aurora1-34:_commit2b05915f81bc066670cd872be3cbdd916753bf26(was84d091f7). The codeload tarball's sha256 is267d4c5241687781cc582c16c8398c2c2bcd31d98575be40497f4addf24afaa0.configis resolved against the pin the wayprepare()does it: the pin'sasahi.configis merged in, then olddefconfig runs. Its sha256 is87635df7e0b1bd2a460969400b0623211fb52551c53b606bca14c29c078aa8d1. Replayingprepare()on it changes nothing. Changes against main:CONFIG_APPLE_SOC_SLEEP=y(new) andCONFIG_RTC_DRV_APPLE_PMU=y(was m).CONFIG_APPLE_PIODMA=m,CONFIG_APPLE_CLUSTER_PWRGATE=y,CONFIG_SND_SOC_APPLE_T8152_AOP_AUDIO=m,CONFIG_CRYPTO_DEV_APPLE_SIO_AES=m.CONFIG_PINCTRL_APPLE_GPIOstaysm. The=ythat 816e02d intended never took effect: the pinnedasahi.configsets it tom, which wins inprepare(), so the package has always built it as a module. This file now saysmto match. Building it in needs anasahi.configchange in linux, as a separate follow-up.bd9f3e82) and U-Boot pins are unchanged.Suspend policy (
aurora-sep1-25)/usr/lib/systemd/sleep.conf.d/20-aurora-suspend.confsetsSuspendState=memand leavesMemorySleepMode=empty. A suspend makes onememrequest in the mode the kernel or user selected. If the kernel refuses a deep sleep, the suspend fails visibly instead of quietly retrying as s2idle. Drop-ins in/etc/systemd/sleep.conf.d/override it.systemd-suspend,systemd-hybrid-sleepandsystemd-suspend-then-hibernategetAfter=aurora-sep.service. A sleep that starts during a SEP load waits for it, because the kernel refuses deep sleep untilapple_sepbinds. It never starts or retries a load.Validation
f1f89c74, which merged as2b05915f.2573357f, whose kernel is identical tof1f89c74's. It ran with the production Stage 2 and booted from the SSD.b8f5b1e7gave 100/100 DRAM-kept sleeps with 0 resets.0d10664b+ aurora-boot: carry the display chain and its PMP in the initramfs #117 + aura: pin v1.0.0b4 #112; this repo's aura pinbd9f3e82contains all of it.2b05915fadds 18 integration commits that weren't on the Neo run: J815 and M5 audio, T6050 DTs, Touch ID tools, and a pcie-apple log message.Merge order
Merge this PR first, with a merge commit (not squash). nixos#203's
kernel/configis a byte copy of this PR'sece07124and records that commit as its source, so the commit must stay in main's history. Then merge nixos#203 and fedora#242, in either order.What merging does
Main's package build runs. When it passes,
publish.ymlpublishes a signedtesting-YYYYMMDD.Nsnapshot automatically (AUTO_PUBLISH_TESTING). The snapshot doesn't go live, becauseAUTO_DEPLOY_TESTINGis off. Nothing reaches users until someone runsdeploy-snapshot.ymlby hand to serve it ontesting. Images aren't rebuilt automatically, and nothing has been deployed tostable.🤖 Generated with Claude Code