From a6a2ba7139adf1a5661c21d79217f19d8e620f62 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Tue, 1 Mar 2022 22:03:50 +0100 Subject: modules/thinkpad: load the acpi_call kernel module for TLP This kernel module is required for some operations supported by TLP (e.g. tlp recalibrate), so we should enable it and be it to prevent confusing error messages (as I encountered). --- modules/hardware/thinkpad.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'modules/hardware') diff --git a/modules/hardware/thinkpad.nix b/modules/hardware/thinkpad.nix index f94b5934..e4c1cd70 100644 --- a/modules/hardware/thinkpad.nix +++ b/modules/hardware/thinkpad.nix @@ -27,5 +27,15 @@ in # TLP Linux Advanced Power Management services.tlp.enable = mkDefault true; + boot = { + # acpi_call is required for some tlp features, e.g. discharge/recalibrate + kernelModules = [ + "acpi_call" + ]; + + extraModulePackages = [ + config.boot.kernelPackages.acpi_call + ]; + }; }; } -- cgit 1.4.1