https://github.com/cch000/pwr-cap-rs
Flake that provides an easy way to tweak the power consumption of your Ryzen CPU
https://github.com/cch000/pwr-cap-rs
amd flake linux nix nixos nixos-configuration nixos-module powermanagement ryzen ryzenadj
Last synced: 28 days ago
JSON representation
Flake that provides an easy way to tweak the power consumption of your Ryzen CPU
- Host: GitHub
- URL: https://github.com/cch000/pwr-cap-rs
- Owner: cch000
- License: gpl-3.0
- Created: 2024-02-13T21:47:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-04T23:04:36.000Z (6 months ago)
- Last Synced: 2025-02-02T07:27:47.304Z (5 months ago)
- Topics: amd, flake, linux, nix, nixos, nixos-configuration, nixos-module, powermanagement, ryzen, ryzenadj
- Language: Rust
- Homepage:
- Size: 83 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pwr-cap-rs
Flake that provides an easy way to tweak the power consumption of your Ryzen CPU.
It uses a daemon to look for unintended changes to the power values (e.g., changing power profile)
and set them back to those specified in the config file.
Built using [ryzenadj libraries mappings to rust](https://crates.io/crates/libryzenadj).Note: for information about supported CPUs check the
[ryzenadj repo](https://github.com/FlyGoat/RyzenAdj).## Usage
First, add it to your system flake inputs:
```nix
pwr-cap-rs = {
url = "github:cch000/power-cap-rs";
inputs.nixpkgs.follows = "nixpkgs";
};
```Then, you can use it by adding somewhere in your config:
```nix
imports = [
inputs.pwr-cap-rs.nixosModules.pwr-cap-rs
];#Example config
services.pwr-cap-rs = {
enable = true;
tctl_limit = 85;
quiet = {
enable = true;
unplugged = {
enable = true;
stapm_limit = 7000;
fast_limit = 7000;
slow_limit = 7000;
apu_slow_limit = 20000;
};
};
};
```For information about the options check the
[ryzenadj repo](https://github.com/FlyGoat/RyzenAdj).