From 41be44e568ebe5b645baf135e9f0c12f8105de65 Mon Sep 17 00:00:00 2001 From: Sergei Poljanski Date: Tue, 20 Oct 2026 12:10:06 +0400 Subject: [PATCH] power: update resume_offset for the current swapfile resume_offset must name the swapfile's first physical extent for hibernation to resume from it; the old value no longer matched. Assisted-by: Claude:opus-5-5 --- modules/power.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/power.nix b/modules/power.nix index 7a64090..7c8676a 100644 --- a/modules/power.nix +++ b/modules/power.nix @@ -8,7 +8,7 @@ # sudo filefrag -v /var/swapfile | awk 'NR==4{gsub(/\.\./,""); print $4}' # acpi.ec_no_wakeup=1: prevents EC wakeups from draining battery in s2idle # on P14s G6 AMD. See https://lore.kernel.org/all/ZnFYpWHJ5Ml724Nv@ohnotp/ - boot.kernelParams = [ "amd_pstate=active" "resume_offset=1769472" "acpi.ec_no_wakeup=1" ]; + boot.kernelParams = [ "amd_pstate=active" "resume_offset=133797888" "acpi.ec_no_wakeup=1" ]; # Allow manual fan control via /proc/acpi/ibm/fan (level 0-7, auto, # full-speed). Firmware stays in charge while level is "auto".