Support for the Dell XPS 13, 9300 model

This commit is contained in:
mexisme 2022-12-05 12:41:54 +13:00
parent e2f9c6f736
commit b1582825dd
2 changed files with 49 additions and 0 deletions

View file

@ -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
<code>
services.fwupd.enable = true;
</code>
Then use <code>fwupdmgr</code> 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

View file

@ -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;
}