summaryrefslogtreecommitdiffstats
path: root/dell
diff options
context:
space:
mode:
authorAndré-Patrick Bubel <code@andre-bubel.de>2018-10-19 15:45:05 +0200
committerJörg Thalheim <joerg@thalheim.io>2018-10-23 09:26:53 +0100
commit86cbb3256bcf99cb2f287a62f1119c7604d27346 (patch)
tree0723dd82363bbc1520b65e2c9a29797b9f95dc13 /dell
parent18a2d7a5e3210d34039d54be32306e8fbd88fe78 (diff)
dell/xps/13-9370: init
Diffstat (limited to 'dell')
-rw-r--r--dell/xps/13-9370/README.wiki16
-rw-r--r--dell/xps/13-9370/default.nix16
2 files changed, 32 insertions, 0 deletions
diff --git a/dell/xps/13-9370/README.wiki b/dell/xps/13-9370/README.wiki
new file mode 100644
index 0000000..57b5e08
--- /dev/null
+++ b/dell/xps/13-9370/README.wiki
@@ -0,0 +1,16 @@
+= Dell XPS 13 9370 =
+
+== Battery drain when sleeping ==
+
+The laptop uses the S2 sleep mode by default instead of S3, which leads to
+draining a lot of battery during sleep.
+
+Though this is intentional by the manufacturer and might cause lockups when
+forced I - @moredread - never had any issues with it.
+
+See https://wiki.archlinux.org/index.php/Dell_XPS_13_(9370)#Power_Management
+and https://bugzilla.kernel.org/show_bug.cgi?id=199689#c3 for reference
+
+== Additional resources ==
+
+* Arch linux wiki: [https://wiki.archlinux.org/index.php/Dell_XPS_13_(9370) Dell XPS 13 9370]
diff --git a/dell/xps/13-9370/default.nix b/dell/xps/13-9370/default.nix
new file mode 100644
index 0000000..06e339f
--- /dev/null
+++ b/dell/xps/13-9370/default.nix
@@ -0,0 +1,16 @@
+{ lib, pkgs, ... }:
+
+{
+ imports = [
+ ../../../common/cpu/intel/kaby-lake
+ ../../../common/pc/laptop
+ ../../../lenovo/thinkpad/acpi_call.nix
+ ../../../lenovo/thinkpad/cpu-throttling-bug.nix
+ ];
+
+ # Force S3 sleep mode. See README.wiki for details.
+ boot.kernelParams = [ "mem_sleep_default=deep" ];
+
+ # touchpad goes over i2c
+ boot.blacklistedKernelModules = [ "psmouse" ];
+}