mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-03 16:57:14 +08:00
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.
This commit is contained in:
9
dell/xps/13-9380/README.wiki
Normal file
9
dell/xps/13-9380/README.wiki
Normal file
@@ -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
|
||||
14
dell/xps/13-9380/default.nix
Normal file
14
dell/xps/13-9380/default.nix
Normal file
@@ -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" ];
|
||||
}
|
||||
Reference in New Issue
Block a user