From bad8e79410eed70b35d6fde6eaf060a81328b774 Mon Sep 17 00:00:00 2001 From: Konstanty Kowalewski Date: Mon, 2 Dec 2024 15:48:24 +0000 Subject: [PATCH 1/2] enable acpi.ec_no_wakeup in Thinkpad T14 AMD Gen 5 --- lenovo/thinkpad/t14/amd/gen5/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lenovo/thinkpad/t14/amd/gen5/default.nix b/lenovo/thinkpad/t14/amd/gen5/default.nix index e61a3a0..917da63 100644 --- a/lenovo/thinkpad/t14/amd/gen5/default.nix +++ b/lenovo/thinkpad/t14/amd/gen5/default.nix @@ -6,6 +6,10 @@ ../../../../../common/cpu/amd/pstate.nix ]; + # Embedded controller wake-ups drain battery in s2idle on this device + # See https://lore.kernel.org/all/ZnFYpWHJ5Ml724Nv@ohnotp/ + boot.kernelParams = [ "acpi.ec_no_wakeup=1" ]; + # For the Qualcomm NFA765 [17cb:1103] wireless network controller # See https://bugzilla.redhat.com/show_bug.cgi?id=2047878 boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.16") pkgs.linuxPackages_latest; From 9988a79f27589fe1c99513df37a5aab5df95e6c8 Mon Sep 17 00:00:00 2001 From: Konstanty Kowalewski Date: Mon, 2 Dec 2024 15:53:43 +0000 Subject: [PATCH 2/2] add Thinkpad T14 AMD Gen 5 to readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a0b0465..c9af3e1 100644 --- a/README.md +++ b/README.md @@ -239,6 +239,7 @@ See code for all available configurations. | [Lenovo ThinkPad T14 AMD Gen 2](lenovo/thinkpad/t14/amd/gen2) | `` | | [Lenovo ThinkPad T14 AMD Gen 3](lenovo/thinkpad/t14/amd/gen3) | `` | | [Lenovo ThinkPad T14 AMD Gen 4](lenovo/thinkpad/t14/amd/gen4) | `` | +| [Lenovo ThinkPad T14 AMD Gen 5](lenovo/thinkpad/t14/amd/gen5) | `` | | [Lenovo ThinkPad T14](lenovo/thinkpad/t14) | `` | | [Lenovo ThinkPad T14s AMD Gen 1](lenovo/thinkpad/t14s/amd/gen1) | `` | | [Lenovo ThinkPad T14s AMD Gen 4](lenovo/thinkpad/t14s/amd/gen4) | `` |