From 36d8bd88cd72cfa8ee4162e6580f0a8e7de132ba Mon Sep 17 00:00:00 2001 From: Wael Nasreddine Date: Fri, 8 Feb 2019 08:20:06 -0800 Subject: 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. --- dell/xps/13-9380/README.wiki | 9 +++++++++ dell/xps/13-9380/default.nix | 14 ++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 dell/xps/13-9380/README.wiki create mode 100644 dell/xps/13-9380/default.nix (limited to 'dell') 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" ]; +} -- cgit v1.2.3