From 4098fcb1d46374f3dd1616dd10aa46373afbdb8b Mon Sep 17 00:00:00 2001 From: Sijmen Date: Fri, 12 Aug 2022 02:12:54 +0200 Subject: [PATCH] framework: improve power consumption --- common/dconf.nix | 3 +-- framework/configuration.nix | 10 ++++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/common/dconf.nix b/common/dconf.nix index c1a08da..1365b3a 100644 --- a/common/dconf.nix +++ b/common/dconf.nix @@ -26,7 +26,6 @@ }; "org/gnome/desktop/interface" = { - clock-show-seconds = true; clock-show-weekday = true; show-battery-percentage = true; }; @@ -46,7 +45,7 @@ "org/gnome/settings-daemon/plugins/color" = { night-light-enabled = true; - night-light-temperature = mkUint32 3330; + night-light-temperature = mkUint32 3600; }; "org/gnome/shell" = { diff --git a/framework/configuration.nix b/framework/configuration.nix index 5d076bf..3965ba1 100644 --- a/framework/configuration.nix +++ b/framework/configuration.nix @@ -34,6 +34,8 @@ "vga=current" "udev.log_level=3" "mem_sleep_default=deep" + "i915.enable_psr=1" + "nvme.noacpi=1" ]; blacklistedKernelModules = [ "hid_sensor_hub" ]; @@ -107,6 +109,14 @@ }; logind.lidSwitchDocked = "suspend"; + + power-profiles-daemon.enable = false; + tlp = { + enable = true; + settings = { + PCIE_ASPM_ON_BAT = "powersupersave"; + }; + }; }; security.pam.services.login.fprintAuth = true;