boot: enable hibernation for mynix
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
c78b4ce2ee
commit
47e12fd9c9
2 changed files with 18 additions and 8 deletions
|
@ -10,10 +10,20 @@
|
|||
height = 1440;
|
||||
};
|
||||
|
||||
boot.kernelParams = [
|
||||
boot = {
|
||||
# Enable hibernation with a swapfile on btrfs
|
||||
# https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Hibernation_into_swap_file
|
||||
#?? findmnt -no UUID -T /swap/swapfile
|
||||
resumeDevice = "/dev/disk/by-uuid/5df5028b-a3ba-4f07-80ef-fd5abd542a81";
|
||||
|
||||
kernelParams = [
|
||||
#?? sudo btrfs inspect-internal map-swapfile -r /swap/swapfile
|
||||
"resume_offset=533760"
|
||||
|
||||
# https://gitlab.freedesktop.org/drm/amd/-/issues/2516#note_2119750
|
||||
#// "gpu_sched.sched_policy=0" # Attempt to fix stutter
|
||||
];
|
||||
};
|
||||
|
||||
# _._ _,-'""`-._
|
||||
# (,-.`._,'( |\`-/|
|
||||
|
|
|
@ -55,14 +55,14 @@ in
|
|||
|
||||
services.keyd.keyboards.default.settings.main.rightcontrol = "layer(altgr)"; # No Ctrl_R
|
||||
|
||||
boot = {
|
||||
# Enable hibernation with a swapfile on btrfs
|
||||
# https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Hibernation_into_swap_file
|
||||
#?? findmnt -no UUID -T /swap/swapfile
|
||||
#?? sudo btrfs inspect-internal map-swapfile -r /swap/swapfile
|
||||
boot = {
|
||||
resumeDevice = "/dev/disk/by-uuid/f9416347-eff5-45d5-8dc3-93414c11ba6f";
|
||||
|
||||
kernelParams = [
|
||||
#?? sudo btrfs inspect-internal map-swapfile -r /swap/swapfile
|
||||
"resume_offset=533760"
|
||||
|
||||
# Fix battery drain with suspend-then-hibernate
|
||||
|
|
Loading…
Reference in a new issue