summaryrefslogtreecommitdiffstats
path: root/dell
diff options
context:
space:
mode:
authorWael Nasreddine <wael.nasreddine@gmail.com>2019-02-08 08:20:06 -0800
committerGitHub <noreply@github.com>2019-02-08 08:20:06 -0800
commit36d8bd88cd72cfa8ee4162e6580f0a8e7de132ba (patch)
tree4ab0bc70d5804602f6d7f5442d838ba629e3abe8 /dell
parent2b8807f75b02cdc7541022cfb0f704af715481dc (diff)
dell/xps/13-9380: init (#97)
This is pretty much a copy of XPS 9370, without kaby-laky and the throttle bug. I was getting lockups with the kaby-laky changes and the throttle bug did not seem to have an impact either way.
Diffstat (limited to 'dell')
-rw-r--r--dell/xps/13-9380/README.wiki9
-rw-r--r--dell/xps/13-9380/default.nix14
2 files changed, 23 insertions, 0 deletions
diff --git a/dell/xps/13-9380/README.wiki b/dell/xps/13-9380/README.wiki
new file mode 100644
index 0000000..a2a7f5d
--- /dev/null
+++ b/dell/xps/13-9380/README.wiki
@@ -0,0 +1,9 @@
+= Dell XPS 13 9380 =
+
+== 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.
+
+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
diff --git a/dell/xps/13-9380/default.nix b/dell/xps/13-9380/default.nix
new file mode 100644
index 0000000..47e6765
--- /dev/null
+++ b/dell/xps/13-9380/default.nix
@@ -0,0 +1,14 @@
+{ lib, pkgs, ... }:
+
+{
+ imports = [
+ ../../../common/pc/laptop
+ ../../../common/pc/laptop/acpi_call.nix
+ ];
+
+ # Force S3 sleep mode. See README.wiki for details.
+ boot.kernelParams = [ "mem_sleep_default=deep" ];
+
+ # touchpad goes over i2c
+ boot.blacklistedKernelModules = [ "psmouse" ];
+}