Repository navigation
Bootstrap Rust crate with named power profile store - #1
Draft
NeroReflex with Copilot wants to merge 2 commits into
Draft
NeroReflex with Copilot wants to merge 2 commits into
NeroReflex with Copilot wants to merge 2 commits into
Conversation
Co-authored-by: NeroReflex <3501105+NeroReflex@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Implement improved hardware controller with dynamic LED interface
Bootstrap Rust crate with named power profile store
Nov 4, 2026
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.
The issue describes open-hardware-controller, a Rust successor to asusd/asusctl. It would manage LEDs, firmware attributes, power and fans, and expose ppd/tuned interfaces. It also calls for saving and restoring named power profiles and falling back to defaults when settings are managed by another tool. The repo was empty, so this PR adds the crate and implements only the profile piece. No hardware access is implemented yet.
Crate scaffold
open-hardware-controllerwithserdeandserde_jsonas dependencies.Profile model (
src/lib.rs)PowerProfileholds an EPP policy, powercap limits in µW keyed by constraint name, and a fan curve.ProfileStorekeeps named profiles and one active profile. It hassave,activate(returnsNonefor an unknown name) andeffective.save_to_fileandload_from_filepersist the store as JSON.External-management fallback
set_externally_managed(true)makeseffective()returnPowerProfile::default()while keeping the saved profiles and the active selection.activateclears the externally-managed flag again.README
Review notes
Cargo.lockis committed.PowerProfile::default()is a placeholder: balance-performance EPP, no powercap limits, no fan curve. Whether that is the right "default" once real hardware is wired in needs to be decided.externally_managedis stored in the persisted JSON. This may not be what we want, since it describes runtime state.Original prompt