mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	Support for the Dell XPS 13, 9300 model
This commit is contained in:
		
							
								
								
									
										20
									
								
								dell/xps/13-9300/README.wiki
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								dell/xps/13-9300/README.wiki
									
									
									
									
									
										Normal 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
 | 
			
		||||
							
								
								
									
										29
									
								
								dell/xps/13-9300/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								dell/xps/13-9300/default.nix
									
									
									
									
									
										Normal 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;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user