diff --git a/hosts/argon/configuration.nix b/hosts/argon/configuration.nix index 69e2064..1652c1f 100644 --- a/hosts/argon/configuration.nix +++ b/hosts/argon/configuration.nix @@ -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 } diff --git a/modules/nixos/bootloader.nix b/modules/nixos/bootloader.nix index 910b8d4..dc6f623 100644 --- a/modules/nixos/bootloader.nix +++ b/modules/nixos/bootloader.nix @@ -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;