about summary refs log tree commit diff
path: root/modules/hardware
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2022-03-01 22:03:50 +0100
committersterni <sternenseemann@systemli.org>2022-03-02 22:01:25 +0100
commita6a2ba7139adf1a5661c21d79217f19d8e620f62 (patch)
tree45f7a301c6ba5a07dd9efc0c255008de1e11c765 /modules/hardware
parent9f9b4209b180ad6d1d08ae1ef20b79d474d8805b (diff)
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).
Diffstat (limited to 'modules/hardware')
-rw-r--r--modules/hardware/thinkpad.nix10
1 files changed, 10 insertions, 0 deletions
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
+      ];
+    };
   };
 }