diff --git a/hosts/framenix/default.nix b/hosts/framenix/default.nix index f2282de..6c2be01 100644 --- a/hosts/framenix/default.nix +++ b/hosts/framenix/default.nix @@ -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; diff --git a/packages/default.nix b/packages/default.nix index 45a4a07..557002f 100644 --- a/packages/default.nix +++ b/packages/default.nix @@ -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="; + }) + ]; + }); + }