framework: Enable hibernation and lock before doing it
This commit is contained in:
parent
cec9dd4d85
commit
2888c0a300
3 changed files with 8 additions and 1 deletions
|
@ -20,7 +20,7 @@
|
|||
# Power Management
|
||||
services.upower = {
|
||||
enable = true;
|
||||
criticalPowerAction = "PowerOff";
|
||||
criticalPowerAction = "Hibernate";
|
||||
|
||||
usePercentageForPolicy = true;
|
||||
percentageCritical = 3;
|
||||
|
|
|
@ -16,6 +16,9 @@
|
|||
boot.kernelParams = [
|
||||
# See https://community.frame.work/t/tracking-graphical-corruption-in-fedora-39-amd-3-03-bios/39073/143
|
||||
"amdgpu.sg_display=0"
|
||||
# Hibernation
|
||||
"resume=UUID=fa8aaf51-b99f-4fb4-9230-8c0957d8af3f"
|
||||
"resume_offset=5776640" # btrfs inspect-internal map-swapfile -r /var/swapfile
|
||||
];
|
||||
|
||||
fileSystems."/" =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue