about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYegor Timoshenko <yegortimoshenko@gmail.com>2017-12-27 21:39:31 +0000
committerYegor Timoshenko <yegortimoshenko@gmail.com>2017-12-27 21:39:31 +0000
commit19c0c04f614945bed1bca0e2eba8e7faaa6c7d0e (patch)
treee5a9abe9d94c6522ba1534ec014e2233f4e6e477
parent5a00ea423a39b66dff032a03973932ab4f18af91 (diff)
downloadnixlib-19c0c04f614945bed1bca0e2eba8e7faaa6c7d0e.tar
nixlib-19c0c04f614945bed1bca0e2eba8e7faaa6c7d0e.tar.gz
nixlib-19c0c04f614945bed1bca0e2eba8e7faaa6c7d0e.tar.bz2
nixlib-19c0c04f614945bed1bca0e2eba8e7faaa6c7d0e.tar.lz
nixlib-19c0c04f614945bed1bca0e2eba8e7faaa6c7d0e.tar.xz
nixlib-19c0c04f614945bed1bca0e2eba8e7faaa6c7d0e.tar.zst
nixlib-19c0c04f614945bed1bca0e2eba8e7faaa6c7d0e.zip
apple/macbook-air/4: enable RC6p, RC6pp GPU sleep states
-rw-r--r--apple/macbook-air/4/default.nix5
-rw-r--r--common/cpu/intel/sandy-bridge/default.nix9
2 files changed, 13 insertions, 1 deletions
diff --git a/apple/macbook-air/4/default.nix b/apple/macbook-air/4/default.nix
index 146289de41e1..181a099799a1 100644
--- a/apple/macbook-air/4/default.nix
+++ b/apple/macbook-air/4/default.nix
@@ -1,7 +1,10 @@
 { lib, ... }:
 
 {
-  imports = [ ../. ];
+  imports = [
+    ../.
+    ../../../common/cpu/intel/sandy-bridge
+  ];
 
   boot.kernelParams = [
     "acpi_backlight=vendor"
diff --git a/common/cpu/intel/sandy-bridge/default.nix b/common/cpu/intel/sandy-bridge/default.nix
new file mode 100644
index 000000000000..682815cee473
--- /dev/null
+++ b/common/cpu/intel/sandy-bridge/default.nix
@@ -0,0 +1,9 @@
+{
+  imports = [ ../. ];
+
+  # Enables RC6, RC6p and RC6pp.
+  # Last two are only available on Sandy Bridge CPUs (circa 2011).
+  boot.kernelParams = [
+    "i915.enable_rc6=7"
+  ];
+}