Ryzenadj service
Set's my laptop's power usage settings to something a lot more manageable. When it comes to heat especially.
This commit is contained in:
parent
5d3f159065
commit
c17ee12f9a
@ -301,6 +301,20 @@
|
||||
options = "--delete-older-than 15d";
|
||||
};
|
||||
|
||||
# Set power settings for my laptop cpu
|
||||
systemd.services.ryzenadj = {
|
||||
enable = true;
|
||||
description = "Set my ryzen cpu power.";
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = toString (
|
||||
pkgs.writeShellScript "ryzenadj-setup" ''
|
||||
${pkgs.ryzenadj}/bin/ryzenadj --stapm-limit 35000 --fast-limit 35000 --slow-limit 35000 --slow-time 60 --stapm-time 1000 --tctl-temp 75 --vrmmax-current 65000
|
||||
'');
|
||||
};
|
||||
wantedBy = ["default.target"];
|
||||
};
|
||||
|
||||
# DO NOT CHANGE
|
||||
system.stateVersion = "23.11";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user