From 4461209624a1fef22411c70b62b114c92218c172 Mon Sep 17 00:00:00 2001 From: Reed Riley Date: Thu, 16 Nov 2023 07:07:14 -0800 Subject: [PATCH] FW13 7040: workaround for SuspendThenHibernate bug --- framework/13-inch/common/amd.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/framework/13-inch/common/amd.nix b/framework/13-inch/common/amd.nix index 249f6f3..f5341b6 100644 --- a/framework/13-inch/common/amd.nix +++ b/framework/13-inch/common/amd.nix @@ -1,10 +1,13 @@ -{ lib, ... }: { +{ lib, config, ... }: { imports = [ ../../../common/cpu/amd ../../../common/cpu/amd/pstate.nix ../../../common/gpu/amd ]; + # Workaround for SuspendThenHibernate: https://lore.kernel.org/linux-kernel/20231106162310.85711-1-mario.limonciello@amd.com/ + boot.kernelParams = lib.optionals (lib.versionOlder config.boot.kernelPackages.kernel.version "6.8") ["rtc_cmos.use_acpi_alarm=1"] ; + # AMD has better battery life with PPD over TLP: # https://community.frame.work/t/responded-amd-7040-sleep-states/38101/13 services.power-profiles-daemon.enable = lib.mkDefault true;