Skip to content

GPU control: profiles - #161

Closed
DrogaBox wants to merge 3 commits into
feat/gpu-od-memmaxfrom
feat/gpu-profiles
Closed

DrogaBox wants to merge 3 commits into
feat/gpu-od-memmaxfrom
feat/gpu-profiles

Conversation

@DrogaBox

@DrogaBox DrogaBox commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Save the GPU control setup under a name and load it back in one click: a power limit, or the whole fan curve, zero RPM, GFX max/min and voltage state.

Settings > GPU control > Profiles has one row per profile (Load, Rename, Delete), a checkmark on the one the card holds right now, "Save current settings…" with a name sheet, and a confirmation before deleting. Loading goes through the same path as changing a value by hand, so every limit is checked again. A raised clock or power limit only goes out with "Allow overclocking" on, and anything this card doesn't take is left out, with a line that says which part. A profile made on another card still loads; its values get checked against this one.

Profiles are stored in the app's defaults as one versioned blob. A file written by a newer build is left alone.

The second commit fixes a few things found in review of the restore fix (9a8911a): the fresh-readings read now targets the AMD accelerator, a retry cut short by a sleep gets its window back, a hand pick of the value being retried becomes the owner's, and a remembered power raise is dropped while overclocking is off.

Stacked on #159.

The third commit lets a profile with a fan state still load its clocks on a kext build whose curve rules weren't checked, and makes each row's line list the values.

Checks: ./build.sh --test, 35201 OK. The section was clicked through in a Developer copy on the fake card: Save (a duplicate name is caught, spaces trimmed), Load (another card's profile loads with its note, checkmark moves), Rename, and Delete with its confirmation. Not tried on the real card yet.

The page can now keep a setup under a name and put it back in one click: a
power limit, or the whole fan, clock and voltage state. A profile saves what
the kext confirmed, together with the card it was made on (its PCI device id
and the limits the kext reported), in the app's defaults under one versioned
key. Names are trimmed and unique; a file from a newer build is left alone.

Loading goes through the same call the controls make, so every limit is
checked again: a profile made on another card still loads, and a value this
card does not take now is left out with a sentence under the list while the
rest of the state goes as usual. A raised GFX maximum, and a power limit
above the start-up one, need "Allow overclocking", as they do by hand. With
Remember on, a loaded profile becomes the remembered state once the kext
confirms it.

Profiles live in Settings > GPU control > Profiles: one row each with Load,
Rename and Delete, a checkmark on the one that matches what the card holds
now, "Save current settings..." asking for a name in a sheet, and a
confirmation before deleting. All strings in every language, a section in
docs/GPU_CONTROL.md and a changelog line.

./build.sh --test: 35195 checks OK.
- The fresh-readings read before a write now goes to the AMD accelerator
  only, so an Intel iGPU or another card that enumerates first can't
  swallow it and leave the kext refusing for want of fresh readings.
- A remembered retry that a sleep cut short starts its 30 s window again
  after the wake instead of running out during the settle delay.
- Picking by hand the exact value a remembered retry is asking for makes
  it the owner's: their refusal shows and the remembered filter no longer
  rewrites it.
- A remembered power limit above the start-up one is dropped while "Allow
  overclocking" is off, like a raised GFX maximum already was.
- The card id a profile records is read from the AMD card only.
- The line about the last profile loaded stays until what the card holds
  changes, instead of going away with the next status reading.
- The name sheet saves the name as typed, not the one it opened with.
On a kext build the curve rules were not checked with, a profile with a
fan state used to load nothing at all. Now the fan part is left out (and
named under the list) while the clocks and the voltage still go; only a
profile that is nothing but a fan state is refused.

A profile's line under its name lists the values ("A fan curve, a GFX
maximum of 2300 MHz…") instead of reusing the status sentence that starts
with "RyzenStatus is holding".
@DrogaBox DrogaBox mentioned this pull request Nov 26, 2026
@DrogaBox

Copy link
Copy Markdown
Owner Author

Shipped in 1.90.0 (merged through #162).

@DrogaBox DrogaBox closed this Nov 26, 2026
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.

2 participants