diff --git a/pkgbuilds/linux-omarchy-n1x/1023-ACPI-processor_idle-let-suspend-to-idle-reach-the-NVIDIA-N1x-DRIPS-state.patch b/pkgbuilds/linux-omarchy-n1x/1023-ACPI-processor_idle-let-suspend-to-idle-reach-the-NVIDIA-N1x-DRIPS-state.patch new file mode 100644 index 0000000000..c5b51e24d2 --- /dev/null +++ b/pkgbuilds/linux-omarchy-n1x/1023-ACPI-processor_idle-let-suspend-to-idle-reach-the-NVIDIA-N1x-DRIPS-state.patch @@ -0,0 +1,73 @@ +From: Ryan Hughes +Date: Mon, 12 Oct 2026 02:45:00 -0400 +Subject: [PATCH] ACPI: processor_idle: let suspend-to-idle reach the NVIDIA + N1x DRIPS state + +The N1x's _LPI reports its platform states, the deepest being +Standby-DRIPS, with a minimum residency of 0xFFFFFFFF and the cluster or +package state's exit latency (DRIPS: 966 us against the package state's +967 us) until \_SB.PEPD.ELST(1) sets MPEL. Suspend-to-idle picks the +deepest state by strictly increasing exit latency, so it stops at the +package state and the SoC never reaches DRIPS. + +Calling ELST(1) the way Windows' platform extension does is not an option: +Windows only enters DRIPS once every device constraint is met, while +Linux's idle governors pick it as soon as its 1.4 ms residency fits, with +devices running, and the system hangs at boot. + +Keep the residency, so the governors never choose these states, and add +DRIPS's wake latency (0x19D2 us) to their exit latency so that +suspend-to-idle reaches DRIPS. +--- + drivers/acpi/processor_idle.c | 26 ++++++++++++++++++++++++++ + 1 file changed, 26 insertions(+) + +--- a/drivers/acpi/processor_idle.c ++++ b/drivers/acpi/processor_idle.c +@@ -910,16 +910,25 @@ + return -EINVAL; + } + ++/* ++ * The NVIDIA N1x's DRIPS wake latency, from its _LPI with \_SB.PEPD.MPEL set ++ * (Standby-DRIPS: 0x19D2 us). ++ */ ++#define ACPI_N1X_DRIPS_WAKE_LATENCY_US 6610 ++ + static void acpi_processor_setup_lpi_states(struct acpi_processor *pr) + { + int i; + struct acpi_lpi_state *lpi; + struct cpuidle_state *state; + struct cpuidle_driver *drv = &acpi_idle_driver; ++ bool n1x; + + if (!pr->flags.has_lpi) + return; + ++ n1x = acpi_dev_present("NVDA6210", NULL, -1); ++ + for (i = 0; i < pr->power.count && i < CPUIDLE_STATE_MAX; i++) { + lpi = &pr->power.lpi_states[i]; + +@@ -928,6 +937,20 @@ + strscpy(state->desc, lpi->desc, CPUIDLE_DESC_LEN); + state->exit_latency = lpi->wake_latency; + state->target_residency = lpi->min_residency; ++ /* ++ * The N1x reports its platform states, the deepest of them being ++ * DRIPS, with a minimum residency of 0xFFFFFFFF and the cluster or ++ * package state's exit latency, unless \_SB.PEPD.ELST(1) has set ++ * MPEL. Windows' platform extension calls ELST(1), but only enters ++ * DRIPS once every device constraint is met; with the real values ++ * Linux's idle governors pick DRIPS while devices are running and ++ * the system hangs at boot. Keep the residency, so the governors ++ * never choose these states, and add DRIPS's wake latency, so that ++ * suspend-to-idle, which takes the deepest state by exit latency, ++ * reaches DRIPS instead of stopping at the package state. ++ */ ++ if (n1x && lpi->min_residency == U32_MAX) ++ state->exit_latency += ACPI_N1X_DRIPS_WAKE_LATENCY_US; + state->flags |= arch_get_idle_state_flags(lpi->arch_flags); + state->enter = acpi_idle_lpi_enter; + if (i != 0 && lpi->entry_method == ACPI_CSTATE_FFH) { diff --git a/pkgbuilds/linux-omarchy-n1x/1024-PCI-quirks-let-the-NVIDIA-N1x-NVMe-link-reach-L1.2-so-the-SoC-can-sleep.patch b/pkgbuilds/linux-omarchy-n1x/1024-PCI-quirks-let-the-NVIDIA-N1x-NVMe-link-reach-L1.2-so-the-SoC-can-sleep.patch new file mode 100644 index 0000000000..fcfa978442 --- /dev/null +++ b/pkgbuilds/linux-omarchy-n1x/1024-PCI-quirks-let-the-NVIDIA-N1x-NVMe-link-reach-L1.2-so-the-SoC-can-sleep.patch @@ -0,0 +1,56 @@ +From: Ryan Hughes +Date: Mon, 12 Oct 2026 10:20:00 -0400 +Subject: [PATCH] PCI: quirks: let the NVIDIA N1x NVMe link reach L1.2 so the + SoC can sleep + +The N1x firmware leaves ASPM off on every PCIe link. In suspend-to-idle +the NVMe drive goes to D3hot (its port has StorageD3Enable), but with +PCI-PM L1.2 off the link sits in plain L1 with CLKREQ# asserted. The +SoC's power manager then records a PCIe wake about every 60 ms and never +gets past its shallowest platform idle level (MCUSYS off), so the laptop +draws 6-15 W asleep. + +Allow ASPM L1 and PCI-PM L1.1/L1.2 on the NVMe link through +pci_enable_link_state(). The SoC then stays in DRIPS (PPS4, DRAM in +self-refresh) for the whole suspend: 0.77 W over a 7.3 h night on the +ASUS ProArt P14, woken only by the lid. ASPM L1.1/L1.2 while the drive is +active and clock power management stay off, as the firmware has them. + +The platform is recognised by its platform extension device, NVDA6210. +--- + drivers/pci/quirks.c | 23 +++++++++++++++++++++++ + 1 file changed, 23 insertions(+) + +--- a/drivers/pci/quirks.c ++++ b/drivers/pci/quirks.c +@@ -5891,6 +5891,30 @@ + DECLARE_PCI_FIXUP_CLASS_RESUME_EARLY(PCI_VENDOR_ID_NVIDIA, PCI_ANY_ID, + PCI_BASE_CLASS_DISPLAY, 16, quirk_nvidia_hda); + ++#ifdef CONFIG_ACPI ++/* ++ * The NVIDIA N1x firmware leaves ASPM off on every PCIe link. In ++ * suspend-to-idle the NVMe drive goes to D3hot, but with PCI-PM L1.2 off its ++ * link sits in plain L1 with CLKREQ# asserted, and the SoC's power manager ++ * is woken by PCIe about every 60 ms, never getting past the shallowest ++ * platform idle level. With PCI-PM L1.1/L1.2 allowed, the SoC stays in its ++ * deepest state for the whole suspend and sleeps at under 1 W instead of ++ * 6-15 W. The platform is recognised by its PEP device, NVDA6210. ++ */ ++static void quirk_n1x_nvme_l1ss(struct pci_dev *pdev) ++{ ++ if (!acpi_dev_present("NVDA6210", NULL, -1)) ++ return; ++ ++ if (!pci_enable_link_state(pdev, PCIE_LINK_STATE_L1 | ++ PCIE_LINK_STATE_L1_1_PCIPM | ++ PCIE_LINK_STATE_L1_2_PCIPM)) ++ pci_info(pdev, "N1x: allowing ASPM L1 and PCI-PM L1.1/L1.2\n"); ++} ++DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_ANY_ID, PCI_ANY_ID, ++ PCI_CLASS_STORAGE_EXPRESS, 0, quirk_n1x_nvme_l1ss); ++#endif ++ + /* + * Some IDT switches incorrectly flag an ACS Source Validation error on + * completions for config read requests even though PCIe r7.0, sec diff --git a/pkgbuilds/linux-omarchy-n1x/PKGBUILD b/pkgbuilds/linux-omarchy-n1x/PKGBUILD index a6cbf632c0..ca2a5f556e 100644 --- a/pkgbuilds/linux-omarchy-n1x/PKGBUILD +++ b/pkgbuilds/linux-omarchy-n1x/PKGBUILD @@ -3,7 +3,7 @@ pkgbase=linux-omarchy-n1x pkgver=7.2.8 -pkgrel=5 +pkgrel=6 pkgdesc='Omarchy Linux for the NVIDIA N1x (BORE CPU scheduler, ADIOS I/O scheduler)' url='https://omarchy.org' arch=( @@ -210,6 +210,8 @@ source=( 1020-n1x-power.patch 1021-ACPI-processor_idle-let-LPI-states-freeze-the-tick-in-suspend-to-idle.patch 1022-cpufreq-CPPC-no-artificial-energy-model-on-the-NVIDIA-N1x.patch + 1023-ACPI-processor_idle-let-suspend-to-idle-reach-the-NVIDIA-N1x-DRIPS-state.patch + 1024-PCI-quirks-let-the-NVIDIA-N1x-NVMe-link-reach-L1.2-so-the-SoC-can-sleep.patch 1030-n1x-audio.patch 1031-ALSA-hda-acpi-add-runtime-PM-suspend-resume-to-the-ACPI-controller.patch 1032-ASoC-cs35l56-Wait-for-firmware-timer-expiry-before-system-suspend.patch @@ -562,6 +564,8 @@ sha256sums=('12e8d5a973d1ad7c5a5c69882e4022b131ed715db7003fdcd760ddf8c3e51941' 'f97397f95d4cdb9ed85a140b943c909f4fb2f84cd075dc06e42820854a00f06b' 'ac4d4f5f6e552d7b783694b0b9d8a4a9c6ba7f1858d03f452619bec987ff359a' '31d9958b122b6e6f2e5606bcf04b10a43ebfd13fa51fd95a815afe7e18ee26db' + '9787a31255d5b31fa3f8ae79b9825a660944b43b83588484d50d7eb9ada1faca' + 'fc8a5798be57d0b0514601fae8a592a3f9db0e44ee04eeb730142d6c1f256ab7' '025a71916a65683a7fe672eee2fa73bd05859e9d4f0e926e1e8678ecc8e6ef7d' '45f6ae0ea53e4edb40a61a49100413bd8e66a814fb95e8d1175938d76a12b4fc' 'ea4526ff83f659e55b0ad0b4aaac1e8402a8a645ed82fc697b80d36565586749' @@ -908,6 +912,8 @@ b2sums=('5326dde778eb945f282740ef0d8765b46fbd198f1209cdfd7b91e5dac1312fc01f8bf0b '2803bcb958ee2e2e38a3ee75922bcc2c9f78bc108c7bcaedcf7e1f1002d9430945c967c3beeafc2a82127c0c7868d2fadcc73049ecad9a93545fb65e54a6ce64' 'b8560579d4b8ae352a8e29c8335f4dd75df182f4d67cfb81d88a8a7f4df6d69389b34685364e45eb740c948865a1aeefaaed25cf393fa7a31d8863d07fb4db92' '778b15aac8c636206a96e899f0043724c736837cb3a442ea837b581a4cf33559e4514e631c9700ae2d47b22532fc38e453873cd13df877de9cdcce2ef7546221' + '90b6177f60f18fb4b11e88cf0789f5426fceaeadd876503b3be2dff02b1c821e89c3873ae5d22ff1bb2df7d16f4dfb25471bf845372118bfbfe7b1079036da6d' + 'bc8656d038bb92eec7e49de1dccc0ecd6ef69b696103a4cb0e59d537dc5fa6dcbd927ff066743d9422d34750710410c5cdc1cf576b553f1693890cfe60828016' '2e760b5f1fdc1a8cfc6f61c6ea894f9ba3aebc80788c332a945d23828c6479c5fda4af195010e7c50abcec5d3716bc1b10b3b4a70a6309e13fb7c4dd0b7a6404' 'e2563eea0b9694d8dbe193b96f817b783485b25b6d01db0c2003a6d1302760cf15a8c084badc4ac33bdd324517cad5d02a0b6088f897167e628e575bc9214d0e' 'e399a5ce09295cb2b9faccde569a27f879cc406b4a81ae537d499f7b0af4f73dfb5ebbdb9560d3adbcee6f6e4157e12528a50e5acd62a4cfe357bb24d112e43d' diff --git a/pkgbuilds/linux-omarchy-n1x/README.md b/pkgbuilds/linux-omarchy-n1x/README.md index 16c264875f..46ddc6ad11 100644 --- a/pkgbuilds/linux-omarchy-n1x/README.md +++ b/pkgbuilds/linux-omarchy-n1x/README.md @@ -2,7 +2,7 @@ The `linux-omarchy` kernel built for aarch64 with NVIDIA N1x (RTX Spark) platform support added. It carries the same kernel.org source and signed Omarchy patch set as `linux-omarchy` 7.2.8-5, plus N1x topic patches numbered 1000 and up. Since 7.2.8-5 `linux-omarchy` is a meta package for `linux-omarchy-bore`, so the shared patches, their signatures and the BORE and ADIOS schedulers come from `linux-omarchy-bore`, byte for byte, including its BORE rebases of the `0121`–`0144` scheduler patches. The intent is to fold these into `linux-omarchy` itself once it builds for aarch64; until then this is the kernel Omarchy installs on N1x machines (`install/hardware/n1x.sh` in omarchy), replacing NVIDIA's 7.0-based `linux-n1x`. -The `pkgrel` counts N1x revisions of this package and starts again at 1 when the kernel version changes. On 7.2.5 it was `6.1` to `6.9` while it tracked `linux-omarchy`'s release; the ninth revision became `9`, `10` added the Dell XPS 16 patches, `11` brought a dock's displays back after a failed DisplayPort tunnel, `12` stopped the clock during suspend-to-idle, `13` brought NVIDIA's device sleep patches from 1022.23, `14` let keyboard and touchpad interrupts wake the system from the platform's deepest sleep, and `15` brought audio and UCSI fixes from upstream and turned kexec handover off by default. `7.2.8-1` moves to 7.2.8 and `linux-omarchy` 7.2.8-5's patch set, `2` closes a SoundWire interrupt race that could hang the boot, `3` stops `cppc_cpufreq` registering its artificial energy model, so EAS no longer packs the desktop onto the A725 cores, `4` ships the Snapdragon laptops' device trees and resets the Iris AHB bridge before hardware mode, and `5` builds SCMI CPU frequency scaling in, which the Snapdragon laptops need. +The `pkgrel` counts N1x revisions of this package and starts again at 1 when the kernel version changes. On 7.2.5 it was `6.1` to `6.9` while it tracked `linux-omarchy`'s release; the ninth revision became `9`, `10` added the Dell XPS 16 patches, `11` brought a dock's displays back after a failed DisplayPort tunnel, `12` stopped the clock during suspend-to-idle, `13` brought NVIDIA's device sleep patches from 1022.23, `14` let keyboard and touchpad interrupts wake the system from the platform's deepest sleep, and `15` brought audio and UCSI fixes from upstream and turned kexec handover off by default. `7.2.8-1` moves to 7.2.8 and `linux-omarchy` 7.2.8-5's patch set, `2` closes a SoundWire interrupt race that could hang the boot, `3` stops `cppc_cpufreq` registering its artificial energy model, so EAS no longer packs the desktop onto the A725 cores, `4` ships the Snapdragon laptops' device trees and resets the Iris AHB bridge before hardware mode, `5` builds SCMI CPU frequency scaling in, which the Snapdragon laptops need, and `6` lets suspend-to-idle reach the platform's deepest idle state, which brings sleep from 6-15 W to under 1 W. [`UPGRADING-7.3.md`](UPGRADING-7.3.md) has notes for the move to 7.3: what each N1x patch needs there, what upstream already has, and how to verify the result. @@ -26,6 +26,8 @@ Patches 1011–1013 are our own, for the Dell XPS 16 (DX16263): `1022-cpufreq-CPPC-no-artificial-energy-model-on-the-NVIDIA-N1x.patch` is our own. The firmware gives the Cortex-X925 and Cortex-A725 cores different MADT efficiency classes, so `cppc_cpufreq` registered its artificial energy model and EAS turned on. That model charges each higher class the energy of four CPUs, which made the X925 cores look over ten times as expensive, so EAS kept Hyprland and the apps on the A725 cores at or near their 338 MHz floor. Hyprland stalled for 20 to 50 ms at a time, and the desktop lagged and stuttered. With EAS off, the worst Hyprland IPC round trip in the balanced profile dropped from 20–39 ms to about 3.5 ms (p99 from 4–16 ms to about 2.2 ms), and battery draw stayed within the noise of the reading. The patch skips the EM on X925 and A725 cores, so EAS never starts; writing `kernel.sched_energy_aware=0` from userspace is refused with `EOPNOTSUPP` whenever EAS is not possible at that moment, so it is no substitute. +`1023-ACPI-processor_idle-let-suspend-to-idle-reach-the-NVIDIA-N1x-DRIPS-state.patch` and `1024-PCI-quirks-let-the-NVIDIA-N1x-NVMe-link-reach-L1.2-so-the-SoC-can-sleep.patch` are our own, and together they make suspend-to-idle sleep. The SoC's deepest idle state, Standby-DRIPS, is the system-level `_LPI` state, but until `\_SB.PEPD.ELST(1)` sets MPEL the firmware reports it with a minimum residency of 0xFFFFFFFF and an exit latency of 966 us, one below the package state's 967 us. Suspend-to-idle picks the deepest state by strictly increasing exit latency, so it never chose DRIPS. `1023` adds DRIPS's wake latency (0x19D2 us) to the exit latency of those states and leaves their residency alone, so suspend-to-idle reaches DRIPS while the idle governors still never pick it. Calling `ELST(1)` at boot, as Windows' platform extension does, is not an alternative: it gives DRIPS a 1.4 ms residency, the governors then enter it with devices running, and the boot hangs before Plymouth. In DRIPS, the SoC's power manager was then woken by PCIe about every 60 ms and never got past its shallowest platform level (PPS0, MCUSYS off). The firmware leaves ASPM off on every link, and the NVMe drive, though in D3hot, kept its link in plain L1 with CLKREQ# asserted. `1024` allows ASPM L1 and PCI-PM L1.1/L1.2 on the NVMe link through `pci_enable_link_state()`, on systems with the N1x platform extension (NVDA6210). The firmware's own telemetry (the SRAM page at 0x130000 that NVIDIA's Windows PEP reads) then shows a single DRIPS for the whole sleep at PPS4 (DRAM in self-refresh), woken only by the lid. + `1050-efi-add-efi_reclaim_reserved-to-use-idle-reserved-memory-as-RAM.patch` is our own: the N1x firmware reserves tens of GiB as the GPU's dedicated memory under Windows (62.5 GiB on the 128 GB ProArt P14), which Linux's driver never uses. `efi_reclaim_reserved=@,...` hands named ranges of it to the kernel, and is ignored unless each range is still entirely reserved, writeback-capable memory. Omarchy sets it per model from `install/hardware`. `1060-ASoC-mediatek-mt8901-give-the-card-the-ACPI-subsystem-ID.patch` is also our own. Cirrus CS35L56 amplifiers name their DSP firmware and speaker tuning after the sound card's PCI subsystem ID, which the ACPI-enumerated MT8901 card does not have, so they ran on ROM defaults: quiet and unvoiced. The patch reads the SoundWire controller's `_SUB` (written device ID first, `33A11043` on the ProArt P14) and passes it to the card, so the amplifiers request `cs35l56-b0-dsp1-misc-104333a1-spkid0*`. Those files are not in linux-firmware yet. @@ -119,4 +121,4 @@ The build produces `Image`, modules and the Snapdragon laptops' device trees; N1 7.2.5-6.8 on the same machine (2026-10-03): UCSI and the three USB-C ports' Type-C class devices; a CalDigit TS4 on each of the three USB4 ports with a 40 Gb/s link, its USB3 and 2.5 GbE (`igc`) and a 4K 240 Hz display through its DisplayPort tunnel, at boot and on hotplug; HDMI out; the UHS-II SD reader. Omarchy writes the USB4 kernel options (`power_wrap_drv.usb4_release=0 pci=hpbussize=0x80,hpmmiosize=32M,hpmmioprefsize=32G`) from `install/hardware/n1x.sh`, and a dock or adapter is approved once with `boltctl enroll --policy auto`. -Suspend-to-idle drains about 6.7 W on 7.2.8-4 (80 to 70% over 68 minutes with the lid closed), most of the 11 W an idle desktop draws, and the laptop stays warm: the CPUs reach only LPI-4, and the NVIDIA driver reports S0ix power management as supported but off (`NVreg_EnableS0ixPowerManagement=0`). Not yet validated: USB4 devices across suspend (patches 1080 and 1081), warm reboot loops. The firmware's `deep` sleep returns at once, so Omarchy defaults these machines to `s2idle`. +Suspend-to-idle drained about 6.7 W on 7.2.8-4 (80 to 70% over 68 minutes with the lid closed): the CPUs reached only LPI-4. With `1023` and `1024` (2026-10-12) a 7.3-hour night with the lid closed used 5.6 Wh (73 to 68%), 0.77 W, in one DRIPS at PPS4 woken only by the lid, and the display, iGPU, Wi-Fi (about 9 s) and audio came back. That night also carried a local NVIDIA iGPU power-off patch and L1.2 on the Wi-Fi and SD links; a 10-minute sleep with only `1023` and `1024` reached the same single DRIPS at PPS4 (1.3 W over too short a sample to be exact). Not yet validated: USB4 devices across suspend (patches 1080 and 1081), warm reboot loops. The firmware's `deep` sleep returns at once, so Omarchy defaults these machines to `s2idle`. diff --git a/pkgbuilds/linux-omarchy-n1x/UPGRADING-7.3.md b/pkgbuilds/linux-omarchy-n1x/UPGRADING-7.3.md index 52c3d94017..d8f06bb5e1 100644 --- a/pkgbuilds/linux-omarchy-n1x/UPGRADING-7.3.md +++ b/pkgbuilds/linux-omarchy-n1x/UPGRADING-7.3.md @@ -60,6 +60,10 @@ Ours, not upstream. `drivers/acpi/thermal.c` has two changes in next. Nothing in Ours, not posted. Still needed on 7.3: nothing upstream gives `_LPI` states an `->enter_s2idle`, so without it CLOCK_MONOTONIC runs through s2idle and systemd kills logind and journald for missed watchdog pings after three minutes of sleep. It already applies on top of Rafael's rework. If the hierarchical LPI series is ported, see the next section: `1021` has to move into its non-coordinated branch. +### 1023, 1024 (suspend-to-idle reaches DRIPS) + +Ours, not posted. Both are still needed on 7.3: nothing upstream adjusts the N1x's `_LPI` values or its ASPM defaults. `1023` sits in `acpi_processor_setup_lpi_states()` next to `1021` and already applies on top of Rafael's `_LPI` rework; if the hierarchical LPI series is ported, re-check that the platform states still come through with residency 0xFFFFFFFF and that suspend-to-idle still selects the last one (`/sys/devices/system/cpu/cpu0/cpuidle/state6/latency` should read 7576 and its `s2idle/usage` should count). Never replace it with an `ELST(1)` call at boot: that hangs the boot. `1024` is a final fixup in `drivers/pci/quirks.c` using `pci_enable_link_state()`; after the rebase check `0002:01:00.0/link/l1_2_pcipm` reads 1 under the `default` ASPM policy and that a lid suspend still draws about 1 W or less (the firmware's DRIPS telemetry, described in the README, records one DRIPS at PPS4 per suspend). + ### 1030-n1x-audio.patch (32 NVIDIA SAUCE mails plus our signature fix) Not upstream. MediaTek has not posted a SoundWire manager, MT8901 ASoC or SOF code anywhere. Only two generic pieces are on their way: 7c7df141dc ("ASoC: sdw_utils: clear stale RT711 device reference on exit", next; the same as the SAUCE mail here, so it drops on 7.4) and the hda-acpi runtime PM fix that `1031` carries. Things to recheck on 7.3: @@ -148,9 +152,9 @@ NVIDIA PR #635 head 0f0aeba49253 (internal 1c829c26a421, LP [2170130](https://bu ## Known open items (not fixed by any patch here) -- Sleep power: about 6.2 W in s2idle on 7.2.5-14 (25 min, package PGKLL 99%), against 7.2-7.4 W before the 1022.23 device sleep patches. Screen-off idle awake is about the same, so the remaining draw is platform always-on. -- The GPU and memory never power down: the SPM requester records (`~/Work/n1x-display/s2idle/spm-blockers.py`) show IGPU, HFRP_HDA, HFRP_DLA, ADSPSYS and VADSYS holding DDREN, so DRAM never reaches self-refresh. NVIDIA's driver reports S0ix unsupported (no video memory self-refresh or GC-off), and GPU rail gating needs a device-tree power domain the ACPI N1x does not have. -- DRIPS: the firmware only reports DRIPS residency when LPI-1..4 are disabled, and then the battery drains faster (8.6-10 W). `PEPD.ELST`/MPEL, the Microsoft Modern Standby `_DSM` (functions 3/7/5 and 6/8/4, tried by hand with no effect) and F-state notifications (`mtk_pwrap_com_idle()`, no callers) have no kernel user anywhere. +- Sleep depth: with `1023` and `1024` suspend-to-idle reaches DRIPS at PPS4 (CMN off, DRAM in self-refresh) and draws about 0.8 W, against 6-7 W before. The deeper platform levels, PPS5-9 (bus PLL, INFRA, 26 MHz crystal, VCORE off), are never reached. +- The SPM requester records (`~/Work/n1x-display/s2idle/spm-blockers.py`) show IGPU, HFRP_HDA, HFRP_DLA, ADSPSYS and VADSYS holding DDREN on every suspend, including those that reach PPS4 with DRAM in self-refresh, so they do not say what keeps the SoC out of deeper levels. NVIDIA's driver reports S0ix unsupported (no video memory self-refresh or GC-off), and GPU rail gating needs a device-tree power domain the ACPI N1x does not have. +- DRIPS: `1023` reaches it without `PEPD.ELST`/MPEL. The Microsoft Modern Standby `_DSM` (functions 3/7/5 and 6/8/4, tried by hand with no effect) and F-state notifications (`mtk_pwrap_com_idle()`, no callers) still have no kernel user anywhere. - Pre-freeze stall: 82-83 s, and once 14 min, between `PM: suspend entry` and `Freezing user space processes`. Seen only with LPI-1..4 disabled or `deep`, and in the first suspends on 7.2.5-11; not the PM notifier chain on the instrumented runs. `n1x-stall-catcher.service` dumps stacks and panics into pstore if it happens again. - `deep` (PSCI SYSTEM_SUSPEND) returns at once on the ProArt P14 and the XPS 16, so Omarchy defaults to `s2idle`. - The ACPI TAD alarms and the RTC wakealarm do not wake the machine. @@ -171,9 +175,9 @@ NVIDIA PR #635 head 0f0aeba49253 (internal 1c829c26a421, LP [2170130](https://bu Run these on the ProArt P14 (and the XPS 16 where it applies) before calling the port good. The tools are in `~/Work/n1x-display/s2idle/`; `SUSPEND.md` there has the history. - Boot: LUKS prompt at Plymouth with the internal keyboard, internal display and brightness, CUDA (`nvidia-smi`), 122 GiB with `efi_reclaim_reserved=`. -- CPU idle: `grep . /sys/devices/system/cpu/cpu0/cpuidle/state*/name` lists LPI-0..6 with the old latencies, and `/sys/devices/system/cpu/cpu0/cpuidle/state4/s2idle/usage` exists. +- CPU idle: `grep . /sys/devices/system/cpu/cpu0/cpuidle/state*/name` lists LPI-0..6 with the old latencies except LPI-5 and LPI-6, which `1023` raises to 7183 and 7576 us, and `/sys/devices/system/cpu/cpu0/cpuidle/state4/s2idle/usage` exists. - s2idle and the clock (`1021`): suspend for more than three minutes, then `cat /sys/devices/system/cpu/cpu0/cpuidle/state4/s2idle/usage` has gone up, `journalctl -b | grep -i 'Watchdog timeout'` is empty, logind kept the session, Wi-Fi reassociated, and the kernel's monotonic clock advanced only a few seconds across the sleep (compare `[ time ]` stamps of `PM: suspend entry` and `PM: suspend exit` with the wall clock). -- Sleep power: `s2idle/s2idle-test.sh 1500