diff --git a/dell/xps/13-9300/README.wiki b/dell/xps/13-9300/README.wiki new file mode 100644 index 0000000..f92ae27 --- /dev/null +++ b/dell/xps/13-9300/README.wiki @@ -0,0 +1,20 @@ += Dell XPS 13 9300 = + +== Firmware upgrades == + +Note that this device is supported by [https://fwupd.org/ fwupd]. +To perform firmware upgrades just activate the service + + +services.fwupd.enable = true; + + +Then use fwupdmgr to perform updates. + +== 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_(9300)#Power_Management +and https://bugzilla.kernel.org/show_bug.cgi?id=199689#c3 for reference diff --git a/dell/xps/13-9300/default.nix b/dell/xps/13-9300/default.nix new file mode 100644 index 0000000..6ec94ea --- /dev/null +++ b/dell/xps/13-9300/default.nix @@ -0,0 +1,29 @@ +{ config, lib, ... }: + +let + inherit (lib) mkDefault; + +in { + imports = [ + ../../../common/cpu/intel + ../../../common/gpu/intel.nix + ../../../common/pc/laptop + ../../../common/pc/laptop/acpi_call.nix + ../../../common/pc/ssd + ]; + + # Force S3 sleep mode. See README.wiki for details. + boot.kernelParams = [ "mem_sleep_default=deep" ]; + + # Touchpad goes over i2c, and the psmouse module interferes with it + boot.blacklistedKernelModules = [ "psmouse" ]; + + # Includes the Wi-Fi and Bluetooth firmware for the QCA6390. + hardware.enableRedistributableFirmware = mkDefault true; + + # Allows for updating firmware via `fwupdmgr`. + services.fwupd.enable = mkDefault true; + + # This will save you money and possibly your life! + services.thermald.enable = mkDefault true; +}