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:
@@ -30,6 +30,13 @@
|
|||||||
# set hostname
|
# set hostname
|
||||||
networking.hostName = "argon";
|
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
|
# install state version
|
||||||
system.stateVersion = "25.11"; # Don't change
|
system.stateVersion = "25.11"; # Don't change
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# kernel options
|
# 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.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
boot.consoleLogLevel = 2;
|
boot.consoleLogLevel = 2;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user