refactor(sleep): move the s2 sleep change to argon only since s2idle would cost more battery on a laptop that s3 deep sleep

This commit is contained in:
2026-07-23 15:08:24 +02:00
parent 6fdde12804
commit 2a3c439993
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -30,6 +30,13 @@
# set hostname
networking.hostName = "argon";
# Use s2idle instead of deep (S3) suspend. On resume from S3 the RDNA4
# (Navi 48 / RX 9070) amdgpu does a MODE1 GPU reset that leaves niri with a
# black screen until it is restarted. s2idle avoids that reset path.
# Host-specific on purpose: laptops (e.g. neon) keep deep S3 for lower
# suspend power draw. Merged with bootloader.nix's kernelParams.
boot.kernelParams = [ "mem_sleep_default=s2idle" ];
# install state version
system.stateVersion = "25.11"; # Don't change
}
+1 -1
View File
@@ -17,7 +17,7 @@
};
# kernel options
boot.kernelParams = [ "quiet" "acpi.debug_level=0" "mem_sleep_default=s2idle" ];
boot.kernelParams = [ "quiet" "acpi.debug_level=0" ];
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.consoleLogLevel = 2;