hosts/framenix: reduce power consumption with proper PPD CPU + ABM

- patch PPD to properly set the powersave level for the spu as well
- enable adaptive backlight management at lowest level

inspired by 1cbeaa156b/packages/default.nix
This commit is contained in:
Trolli Schmittlauch 2024-02-12 19:32:19 +01:00
parent 5cb55e9805
commit a23072866f
2 changed files with 17 additions and 2 deletions

View file

@ -38,8 +38,13 @@ in
}
];
# temporary workaround for white flickering graphics artefacts
boot.kernelParams = [ "amdgpu.sg_display=0" ];
boot.kernelParams = [
# temporary workaround for white flickering graphics artefacts
"amdgpu.sg_display=0"
# powersave
"amd_pstate=active"
"amdgpu.abmlevel=1" # adaptive backlight management
];
boot.loader = {
systemd-boot.enable = true;

View file

@ -1,2 +1,12 @@
final: prev: {
power-profiles-daemon = prev.power-profiles-daemon.overrideAttrs (old: {
patches = [
# patch for AMD pstate CPUs
(final.fetchpatch {
url = "https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/merge_requests/127.patch";
sha256 = "sha256-CneqixlpZx9iZ0PM5MFIutsvnqKrLlM7FHOHUA/MK6g=";
})
];
});
}