Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cch000/pwr-cap-rs
Flake that provides an easy way to limit the power consumption of your ryzen cpu.
https://github.com/cch000/pwr-cap-rs
nixos nixos-configuration nixos-module powermanagement ryzen
Last synced: 15 days ago
JSON representation
Flake that provides an easy way to limit 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 (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-17T20:43:50.000Z (9 months ago)
- Last Synced: 2024-03-17T21:53:20.561Z (9 months ago)
- Topics: nixos, nixos-configuration, nixos-module, powermanagement, ryzen
- Language: Nix
- Homepage:
- Size: 64.5 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 limit the power consumption of your Ryzen CPU.
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:
`pwr-cap-rs.url = "github:cch000/pwr-cap-rs;`
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 = {
unplugged = {
enable = true;
stapm_limit = 7000;
fast_limit = 7000; #cannot be null if the profile is enabled
#slow_limit = 7000;
apu_slow_limit = 20000;
};
plugged.enable = false;
};
balanced = {
unplugged.enable = false;
plugged.enable = false;
};
performance = {
unplugged.enable = false;
plugged.enable = false;
};
};
```For information about the options check the
[ryzenadj repo](https://github.com/FlyGoat/RyzenAdj)