From d3043498a95f81549329be7c57b27e036fd793e5 Mon Sep 17 00:00:00 2001 From: "Adrian G L (aider)" Date: Thu, 27 Nov 2025 20:22:58 +0100 Subject: [PATCH] fix: adjust kernel params to resolve sleep crashes on legolas --- hosts/legolas/hardware-configuration.nix | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/hosts/legolas/hardware-configuration.nix b/hosts/legolas/hardware-configuration.nix index 59dd650..ba158ca 100644 --- a/hosts/legolas/hardware-configuration.nix +++ b/hosts/legolas/hardware-configuration.nix @@ -8,9 +8,7 @@ boot.kernelParams = [ "nvme_core.default_ps_max_latency_us=0" - "pci=pcie_bus_perf" - "pcie_aspm=off" - "pcie_port_pm=off" + "mem_sleep_default=deep" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "uas" "rtsx_pci_sdmmc" ]; @@ -57,10 +55,7 @@ AllowSuspendThenHibernate=no ''; }; - # Workaround for resume issues - systemd.services.systemd-suspend.environment = { - SYSTEMD_SLEEP_FREEZE_USER_SESSIONS = "false"; - }; + # Disable PCIe wakeups services.udev.extraRules = '' ACTION=="add", SUBSYSTEM=="pci", DRIVER=="pcieport", ATTR{power/wakeup}="disabled" @@ -76,12 +71,3 @@ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; } - - - - - - - - -