summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2019-06-03 18:07:45 +0200
committerAlan Pearce2019-06-03 18:07:45 +0200
commit7e6f5a6d6f329c890a4259b03dbeded189580003 (patch)
tree2a25830a37c6ea07273d354da566eee5f3fc4d92
parent6fe33dc41c20bf0838eb0e40ed3a3d17ba58d44c (diff)
downloadnixos-configuration-7e6f5a6d6f329c890a4259b03dbeded189580003.tar.lz
nixos-configuration-7e6f5a6d6f329c890a4259b03dbeded189580003.tar.zst
nixos-configuration-7e6f5a6d6f329c890a4259b03dbeded189580003.zip
Optimise Intel GPU setup
-rw-r--r--modules/hardware/intel-gpu.nix5
-rw-r--r--modules/machines/t470s.nix6
2 files changed, 6 insertions, 5 deletions
diff --git a/modules/hardware/intel-gpu.nix b/modules/hardware/intel-gpu.nix
index 6e0c207..fc6b6fa 100644
--- a/modules/hardware/intel-gpu.nix
+++ b/modules/hardware/intel-gpu.nix
@@ -11,10 +11,5 @@
   boot.earlyVconsoleSetup = true;
   boot.initrd.kernelModules = [
     "i915"
-    "intel_agp"
-  ];
-  boot.kernelModules = pkgs.lib.mkBefore [
-    "i915"
-    "intel_agp"
   ];
 }
diff --git a/modules/machines/t470s.nix b/modules/machines/t470s.nix
index 1bffb4c..81a889e 100644
--- a/modules/machines/t470s.nix
+++ b/modules/machines/t470s.nix
@@ -22,6 +22,12 @@
     (127,   80,     32767)
   '';
 
+  boot.kernelParams = [
+    "i915.enable_guc=2"
+    "i915.enable_fbc=1"
+    "i915.enable_psr=2"
+  ];
+
   systemd.services.ModemManager.enable = true;
 
   hardware.pulseaudio.extraConfig = ''