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
This commit is contained in:
Sergei Poljanski 2026-10-20 12:10:06 +04:00
commit 41be44e568
Signed by: asxpi
GPG key ID: 4F8851660FA4121B

View file

@ -8,7 +8,7 @@
# sudo filefrag -v /var/swapfile | awk 'NR==4{gsub(/\.\./,""); print $4}' # sudo filefrag -v /var/swapfile | awk 'NR==4{gsub(/\.\./,""); print $4}'
# acpi.ec_no_wakeup=1: prevents EC wakeups from draining battery in s2idle # 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/ # 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, # Allow manual fan control via /proc/acpi/ibm/fan (level 0-7, auto,
# full-speed). Firmware stays in charge while level is "auto". # full-speed). Firmware stays in charge while level is "auto".