Repository navigation
Add omarchy-power-profiles-daemon 0.30, with a CPPC driver for ARM laptops - #897
Merged
Merged
Conversation
…ptops power-profiles-daemon only drives intel_pstate, amd_pstate and ACPI platform_profile, so ARM laptops on cppc_cpufreq (NVIDIA N1X, Snapdragon X) get placeholder profiles that change nothing and no performance profile. This packages upstream 0.30 with a CPPC driver patch: balanced (EPP 64) and power-saver (EPP 192) use CPPC autonomous frequency selection, performance runs the performance governor. The driver only claims policies with the schedutil and performance governors and writable autonomous selection knobs, restores probe-time settings if the first activation fails, and reapplies the profile on resume. The package provides and conflicts with power-profiles-daemon, and fixes the powerprofilesctl shebang at package time so Omarchy no longer needs to sed it. Tested on an NVIDIA N1X laptop: median keystroke-to-frame latency in Chromium went from ~130ms (schedutil) to ~56ms on balanced at the same idle power, and ~32ms on performance, which Omarchy selects on AC. All 137 upstream tests pass, including five new CPPC tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
ryanrhughes
added a commit
that referenced
this pull request
Oct 14, 2026
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.
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
omarchy-power-profiles-daemonis upstream power-profiles-daemon 0.30 (pinned to its tag) plus one patch that adds a CPU profile driver for the generic ACPI CPPC cpufreq driver (cppc_cpufreq). Itprovides/conflictswithpower-profiles-daemon, with noreplaces, so nothing swaps automatically. The companion Omarchy PR switches the base package list and adds a migration.Why
Stock power-profiles-daemon only drives
intel_pstate,amd_pstateand ACPIplatform_profile. ARM laptops oncppc_cpufreq(NVIDIA N1X, Snapdragon X) fall through to the placeholder driver, so balanced and power-saver change nothing and there's no performance profile foromarchy-powerprofiles-setto pick on AC.On the N1X, the default
schedutil+ EAS ramps too slowly for bursty UI work, which makes Chromium feel sluggish.The driver
auto_select=0,performancegovernorschedutil, CPPC autonomous selection (auto_select=1), EPP 64schedutil, autonomous selection, EPP 192scaling_driveriscppc_cpufreq, that offer both theschedutilandperformancegovernors, and whoseauto_select/energy_performance_preference_valare writable. Anything else falls back to the placeholder as today, so Intel/AMD machines are unaffected.powerprofilesctlshebang to/usr/bin/python3at package time. Omarchy currently does this with ased, so a mise/venvpython3without PyGObject can't break it.Testing
Measured on an NVIDIA N1X laptop. The workload was a Chromium page re-rendering a 5,000-row list per keystroke, with simulated typing. Each mode ran 3–6 times, alternating modes between runs.
check(), including 5 new CPPC tests (each runs under both D-Bus names). The new tests cover both policies switching, the missing-schedutilfallback, a non-CPPC cpufreq driver, a missing autonomous selection, and reapplying on resume. I checked that the resume andschedutiltests fail with their fixes disabled.makepkgon aarch64. There's no Docker here, so I didn't runbin/build; CI does the clean builds. Installed on the N1X: it swaps cleanly forpower-profiles-daemon, the service stays enabled, all three profiles write the expected sysfs values, and Omarchy's menu and AC/battery switching pick them up.tests/pinned-sources.shpasses, andhelpers/upstream-watch.py checkreportsalready current.schedutilprobe, rollback on first activation, test covering only one policy) are fixed. Power-saver's EPP 192 hasn't been benchmarked.Notes
git_tagswatch. If the patch stops applying to a new release, that bump's build fails, which is the cue to rebase it.🤖 Generated with Claude Code