mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-30 06:49:43 +01:00
Merge #572
572: dell-xps-15-7590: enable fwupd and deep sleep r=Mic92 a=ghisvail Co-authored-by: Ghislain Vaillant <ghisvail@gmail.com>
This commit is contained in:
commit
0d55271b4f
2 changed files with 16 additions and 31 deletions
|
@ -21,27 +21,6 @@ These settings are needed both for booting the final install, and installer itse
|
||||||
|
|
||||||
* ''Disable Intel hardware RAID and use AHCI instead.'' Intel doesn't seem to provide a working linux driver for this. (If you just have SSD it's pointless and just slows things down needlessly anyways.)
|
* ''Disable Intel hardware RAID and use AHCI instead.'' Intel doesn't seem to provide a working linux driver for this. (If you just have SSD it's pointless and just slows things down needlessly anyways.)
|
||||||
|
|
||||||
=== Wifi ===
|
|
||||||
~~Wifi does not work with kernels older than 5.1 (firmware not present) or newer~~ (https://bbs.archlinux.org/viewtopic.php?id=247705)
|
|
||||||
|
|
||||||
Update: The 48.ucode causes the Killer wifi card to crash. The iwlfwifi-cc-a0-46.ucode works perfectly.
|
|
||||||
default.nix contains an overlay that removes the offending ucode from the linux-firmware bundle.
|
|
||||||
To use it one also needs to enable unfree firmware in their own configuration (<code>hardware.enableRedistributableFirmware = true;</code>)
|
|
||||||
|
|
||||||
```
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
|
||||||
boot.loader.grub = {
|
|
||||||
device = "nodev";
|
|
||||||
efiSupport = true;
|
|
||||||
efiInstallAsRemovable = true;
|
|
||||||
};
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_5_1;
|
|
||||||
```
|
|
||||||
Disable the `canTouchEfiVariables` after a boot or two to prevent NVRAM wearout.
|
|
||||||
|
|
||||||
|
|
||||||
=== After installation ===
|
=== After installation ===
|
||||||
|
|
||||||
* ''Add systemd-boot to UEFI boot list.'' The (uneditable anyways) settings mapping drive UUIDs to HD* work fine.
|
* ''Add systemd-boot to UEFI boot list.'' The (uneditable anyways) settings mapping drive UUIDs to HD* work fine.
|
||||||
|
@ -50,5 +29,15 @@ Disable the `canTouchEfiVariables` after a boot or two to prevent NVRAM wearout.
|
||||||
|
|
||||||
* ''Update BIOS.'' According to Reddit, this helps with battery life.
|
* ''Update BIOS.'' According to Reddit, this helps with battery life.
|
||||||
|
|
||||||
=== Troubleshooting ===
|
== Firmware updates ==
|
||||||
|
|
||||||
|
This device is supported by [https://fwupd.org/ fwupd].
|
||||||
|
|
||||||
|
You may use <code>fwupdmgr</code> to perform firmware updates.
|
||||||
|
|
||||||
|
== Power management ==
|
||||||
|
|
||||||
|
Deep sleep is preferred to the default S2 sleep mode, in order to reduce battery draining during suspend.
|
||||||
|
|
||||||
|
See https://wiki.archlinux.org/title/Dell_XPS_15_(7590)
|
||||||
|
|
||||||
|
|
|
@ -7,15 +7,8 @@
|
||||||
../../../common/pc/ssd
|
../../../common/pc/ssd
|
||||||
];
|
];
|
||||||
|
|
||||||
# Set to true for just the first run, then disable it.
|
# Force S3 sleep mode. See README.wiki for details.
|
||||||
# boot.loader.efi.canTouchEfiVariables = lib.mkDefault true;
|
boot.kernelParams = [ "mem_sleep_default=deep" ];
|
||||||
|
|
||||||
# Load GPU drivers.
|
|
||||||
# hardware.bumblebee.enable = lib.mkDefault true;
|
|
||||||
|
|
||||||
# High DPI for X users. 175 "looks reasonable" but I didn't do the actual DPI
|
|
||||||
# calculation.
|
|
||||||
# services.xserver.dpi = lib.mkDefault 175;
|
|
||||||
|
|
||||||
# Earlier font-size setup
|
# Earlier font-size setup
|
||||||
console.earlySetup = true;
|
console.earlySetup = true;
|
||||||
|
@ -23,6 +16,9 @@
|
||||||
# Prevent small EFI partiion from filling up
|
# Prevent small EFI partiion from filling up
|
||||||
boot.loader.grub.configurationLimit = 10;
|
boot.loader.grub.configurationLimit = 10;
|
||||||
|
|
||||||
|
# Enable firmware updates via `fwupdmgr`.
|
||||||
|
services.fwupd.enable = lib.mkDefault true;
|
||||||
|
|
||||||
# This will save you money and possibly your life!
|
# This will save you money and possibly your life!
|
||||||
services.thermald.enable = lib.mkDefault true;
|
services.thermald.enable = lib.mkDefault true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue