Skip to content

Add power-profiles-daemon for the Surface Pro 11's platform profile - #829

Closed
turbineBMW wants to merge 1 commit into
omacom:masterfrom
turbineBMW:upstream/power-profiles-daemon-surface-pro-11
Closed

turbineBMW wants to merge 1 commit into
omacom:masterfrom
turbineBMW:upstream/power-profiles-daemon-surface-pro-11

Conversation

@turbineBMW

Copy link
Copy Markdown
Contributor

Summary

  • The Surface Pro 11 exposes its performance mode only as a platform-profile class device. With no ACPI, power-profiles-daemon falls back to its placeholder driver and profile changes do nothing. No released version reads the class device yet (upstream issue 178).
  • Builds 0.30 with one patch that reads the class device and accepts the kernel's balanced-performance spelling. Installs only the daemon and selects it with a service drop-in, so Arch's package keeps everything else.
  • Depends on power-profiles-daemon>=0.30 rather than an exact version, and an upstream watch flags new releases, so an Arch bump never blocks -Syu.
  • Edge. Retires once upstream ships class-device support.

Dependencies

None to build. Needs SURFACE_PLATFORM_PROFILE, which linux-sp11 enables (separate PR).

Test plan

  • test.sh passes; package builds
  • Surface Pro 11: the platform_profile driver is used, and each profile reaches /sys/class/platform-profile/*/profile

The Surface Pro 11 exposes its performance mode only as a
platform-profile class device. Without ACPI, power-profiles-daemon
falls back to its placeholder driver and profile changes do nothing;
no released version reads the class device yet (upstream issue 178).
Build 0.30 with a patch that reads it and accepts the kernel's
balanced-performance spelling, install only the daemon, and select it
with a service drop-in so Arch's package keeps everything else. It
requires at least the release it is built from, and an upstream watch
flags new releases, so an Arch update cannot block upgrades. Publish
to edge.

Validated with test.sh, a package build, and on a Surface Pro 11: the
platform_profile driver is used and each profile reaches the kernel.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
turbineBMW added a commit to turbineBMW/omarchy-pkgs that referenced this pull request Oct 13, 2026
…aemon

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. The CPPC driver is
unchanged; the drivers claim different scaling drivers.

Replaces the Surface Pro 11 package proposed in omacom#829.

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: Claude Opus 5.5 <noreply@anthropic.com>
@turbineBMW

Copy link
Copy Markdown
Contributor Author

Replaced by #1029, which adds frequency caps to omarchy-power-profiles-daemon for every Snapdragon X laptop instead of patching 0.30 for the Surface Pro 11's own firmware profile.

@turbineBMW turbineBMW closed this Oct 13, 2026
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