From e85e25cb7bdddba81995244ef5d58556ef3e64a5 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sun, 15 Jan 2023 21:44:28 +0100 Subject: [PATCH] better powersaving --- common.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/common.nix b/common.nix index 998dd4b..edf17d1 100644 --- a/common.nix +++ b/common.nix @@ -126,8 +126,10 @@ in # ensure we see the journal on TTY12 services.journald.console = "/dev/tty12"; - # enjoy a fast machine - powerManagement.cpuFreqGovernor = "performance"; + # keep power consumption and heat in check + powerManagement.enable = true; + powerManagement.cpuFreqGovernor = "powersave"; + services.thermald.enable = true; # allow firmware updates services.fwupd.enable = true; @@ -148,6 +150,7 @@ in # use GDM and Wayland enable = true; displayManager.gdm.enable = true; + displayManager.gdm.autoSuspend = false; displayManager.defaultSession = "plasmawayland"; };