From e319f6fc20d100fbd190962240e7d5216a760d5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sat, 6 Jul 2019 07:54:07 +0100 Subject: [PATCH] Enable more power saving on 480 --- nixos/boxes/foureighty.nix | 5 +++++ nixos/common.nix | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/nixos/boxes/foureighty.nix b/nixos/boxes/foureighty.nix index 0e06bd26..b0b2f948 100644 --- a/nixos/boxes/foureighty.nix +++ b/nixos/boxes/foureighty.nix @@ -5,6 +5,11 @@ networking.hostName = "foureighty"; boot = { initrd.kernelModules = [ "i915" ]; + kernelParams = [ + "i915.enable_fbc=1" + "i915.enable_psr=2" + "i915.enable_rc6=7" + ]; initrd.luks.devices = [ { name = "root"; diff --git a/nixos/common.nix b/nixos/common.nix index 112832b5..d8a17d16 100644 --- a/nixos/common.nix +++ b/nixos/common.nix @@ -85,10 +85,11 @@ in sound.enable = true; networking.networkmanager.enable = true; + hardware.enableRedistributableFirmware = true; + hardware.cpu.intel.updateMicrocode = true; hardware.pulseaudio.enable = true; hardware.u2f.enable = true; hardware.brightnessctl.enable = true; - hardware.cpu.intel.updateMicrocode = true; hardware.sane.enable = true; nix.gc.automatic = true;