Skip to content

Use NVIDIA's RTX Spark driver in omarchy-power-profiles-daemon - #1047

Merged
ryanrhughes merged 1 commit into
masterfrom
ppd-nvidia-rtx-spark
Oct 14, 2026
Merged

ryanrhughes merged 1 commit into
masterfrom
ppd-nvidia-rtx-spark

Conversation

@ryanrhughes

@ryanrhughes ryanrhughes commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Replaces our CPPC driver from #897 with NVIDIA's own RTX Spark driver, power-profiles-daemon !236, the same patch NVIDIA ships in their RTX Spark images. NVIDIA asked us to carry it until upstream merges it.

Why

Our driver ran balanced and power-saver as CPPC autonomous frequency selection at EPP 64 and 192 with the schedutil governor, on every core. On the N1x that let the kernel's energy-aware scheduling keep Hyprland on the Cortex-A725 cores while the firmware held them at their 338 MHz floor, and the desktop lagged (Hyprland IPC round trips up to 39 ms). The N1x kernel has kept EAS off since.

NVIDIA designed the profiles differently:

Profile E-core EPP P-core EPP Governor on AC Governor on battery
performance 5 5 performance performance
balanced 76 114 performance schedutil
power-saver 76 153 schedutil schedutil

The governor is the EAS switch (NVIDIA: performance places tasks by capacity, P cores first; schedutil lets EAS move low-cost threads to the E cores). The EPP values only take effect with CPPC autonomous selection on, which NVIDIA's images turn on outside the daemon (dgx-desktop-power-knobs), after resetting the CPPC range the N1x firmware leaves pegged at its maximum. Omarchy does the same with a udev rule from its N1x setup (omacom/omarchy n1x branch, migration 1791867831).

What changes

  • nvidia-rtx-spark-power-profiles.patch (!236) replaces cppc-cpufreq-driver.patch; pkgrel 2.
  • The driver only probes on processors that report NVIDIA RTX Spark in SMBIOS. Other cppc_cpufreq machines, which our driver also claimed, get stock power-profiles-daemon's placeholder profiles.
  • The first start after the upgrade comes up in balanced once: the saved profile names the old driver.

Order

Ship this before linux-omarchy-aarch64 7.2.8-9 (the kernel PR into n1x, which turns EAS back on for this driver). Under 0.30-1's balanced, EAS brings the lag back.

#1029 also bumps this package to pkgrel 2 and is based on our CPPC patch. Its cpufreq-boost-driver.patch and cpufreq-caps.patch clash with this patch only in list context (the driver lists in src/meson.build and src/power-profiles-daemon.c, and one hunk of tests/integration_test.py), so whichever lands second needs a small rebase.

Tested

On an ASUS ProArt P14 (N1X), kernel 7.2.8-7, installed in place of 0.30-1:

  • bin/build --package omarchy-power-profiles-daemon --arch aarch64 with check(): 131 OK, including test_nvidia_rtx_spark and test_nvidia_rtx_spark_processor_gate. tests/pinned-sources.sh passes.
  • CpuDriver is nvidia_rtx_spark. Every profile writes the table above to all 20 policies, on AC and on battery, and unplugging switches balanced's governor without a restart. After an s2idle cycle the daemon rewrote the profile.
  • With autonomous selection on, EPP grades bursty-load speed (P core at 20% duty: about 56% of max at EPP 5, 50% at 76, 40% at 153) and idle cores drop to 337 / 1367 MHz (E / P). Without it, EPP changes nothing.
  • EAS on vs off in balanced on battery, with the energy model registered: idle draw the same, Hyprland p99 1.7-2.3 ms and no stall over 8 ms either way; a bursty background load drew 17% less with EAS and ran 2.9 times slower.

Known issues in the driver, not yet raised with NVIDIA: with a CPU offline every profile switch fails on that policy's EPP file, and a CPU that comes back online after the daemon started is never written again until it restarts.

Our CPPC driver (#897) ran balanced and power-saver as CPPC autonomous
frequency selection at EPP 64 and 192 with the schedutil governor. On the
NVIDIA N1x that let the kernel's energy-aware scheduling keep Hyprland on
the Cortex-A725 cores while the firmware held them at their 338 MHz floor,
and the desktop lagged.

NVIDIA's own driver, proposed upstream as !236 and shipped in their RTX
Spark images, takes its place. It sets the preference per core type (E/P:
5/5 in performance, 76/114 in balanced, 76/153 in power-saver), and uses
the governor to turn EAS on and off: schedutil in power-saver and in
balanced on battery, performance otherwise. The preferences only take
effect with autonomous selection on, which NVIDIA's images and Omarchy's
N1x setup turn on outside the daemon.

The driver only probes on processors that report "NVIDIA RTX Spark" in
SMBIOS, so other cppc_cpufreq machines, which our driver also claimed, get
stock power-profiles-daemon's placeholder profiles. The first start after
the upgrade comes up in balanced, because the saved profile names the old
driver.
@ryanrhughes
ryanrhughes enabled auto-merge (squash) October 14, 2026 00:40
@ryanrhughes
ryanrhughes merged commit 0f3d040 into master Oct 14, 2026
8 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Publish succeeded → live

Packages: omarchy-power-profiles-daemon (x86_64, PR artifact); omarchy-power-profiles-daemon (aarch64, PR artifact)

  • edge/x86_64: omarchy-power-profiles-daemon-0.30-2-x86_64
  • edge/aarch64: omarchy-power-profiles-daemon-0.30-2-aarch64

Commit 0f3d040 · run

ryanrhughes added a commit that referenced this pull request Oct 14, 2026
…aemon (#1102)

Backports two changes merged upstream after 0.30: the balanced-performance
spelling fix (!238) and the generic cpufreq driver (!237). On top, caps
each CPU cluster's maximum frequency on Snapdragon X (scmi and
qcom-cpufreq-hw), which has no energy preference and otherwise gets
placeholder profiles: 60% in power-saver, 75% in balanced, none in
performance. The caps are proposed upstream as !239. NVIDIA's RTX Spark
driver is unchanged; the drivers claim different scaling drivers.

Replaces the Surface Pro 11 package proposed in #829.

Rebased onto NVIDIA's RTX Spark driver (#1047), which replaced the CPPC
driver; the generic cpufreq driver now sits beside it.

Validated on a Surface Pro 11 (X1E-80-100): 181/181 tests in check(),
cpufreq driver picked, 1.92/2.52/3.42 GHz on AC and battery, caps lifted
when the daemon stops.

Co-authored-by: Brandon Williams <turbine.bmw@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant