From 39e241cffa04f7c4cfb1f23050273f8b56f7724e Mon Sep 17 00:00:00 2001 From: Kabbone Date: Sun, 8 Jan 2023 13:47:56 +0100 Subject: [PATCH] hosts: powersave iteration --- hosts/desktop/hardware-configuration.nix | 5 ++++- hosts/laptop/default.nix | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hosts/desktop/hardware-configuration.nix b/hosts/desktop/hardware-configuration.nix index a052abc..0315b92 100644 --- a/hosts/desktop/hardware-configuration.nix +++ b/hosts/desktop/hardware-configuration.nix @@ -119,5 +119,8 @@ hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; # high-resolution display hardware.video.hidpi.enable = lib.mkDefault true; - powerManagement.powertop.enable = true; + #powerManagement.powertop.enable = true; + powerManagement = { + scsiLinkPolicy = "med_power_with_dipm"; + }; } diff --git a/hosts/laptop/default.nix b/hosts/laptop/default.nix index 9b4635b..05a97ec 100644 --- a/hosts/laptop/default.nix +++ b/hosts/laptop/default.nix @@ -69,7 +69,7 @@ services = { tlp.enable = true; # TLP and auto-cpufreq for power management - #logind.lidSwitch = "ignore"; # Laptop does not go to sleep when lid is closed + logind.lidSwitch = "suspend-then-hibernate"; # Laptop does not go to sleep when lid is closed #auto-cpufreq.enable = true; blueman.enable = true; printing = { # Printing and drivers for TS5300