#Swap hibernate
34 messages · Page 1 of 1 (latest)
i dont understand. you want to hibernate without swap file? or use a new one?
i already have swap partition, so i do not need swap file. but if i disable hibernate to delete swap file, the hibernate option will also gone so i need to use terminal to hibernate
/swap/swafile is a file. i do not use that because it's not stable on btrfs
i create this:
/dev/nvme0n1p6 partition 20G 0B -2
i used swap partition for my cachy os, fedora, and opensuse before so i did not need to set offset
stable = no offset needed
i could use LUKS with btrfs on all of them
figure out how it works on those OS
then we can do that if it works better
alright i will stop complaining then
cat /proc/cmdline and lsblk -f should show enough info to reproduce it
maybe
the thing is omarchy set swap file to hibernate button, that is my problem. disable hibernate deleting swap file but also hibernate button. on cachyos, opensuse for instance i can use swap partition and hibernate button is present. that is my concern
check /etc/systemd/ dir
i already try disable hibernate, and use my own swap partition, and successfully hibernate with systemctl hibernate
but hibernate button is not present anymore, only shutdown restart etc
i just need guidance how to enable hibernate button on omarchy, that is all. i can enable hibernate button on KDE plasma, gnome, even on ml4w.
specifically, check /etc/systemd/logind.conf or other files that might show up in grep -rni hiber /etc/systemd
can use those other OS (that work with hibernating with an encrypted swap btrfs subvolume) as a reference, check how they are doing it (lsblk -f, cat /proc/cmdline, and the /etc/systemd dir)
hibernation does not work on my laptop so, i'd be interested in how
systemd is okay, with systemtcl hibernate works fine
ok then you mean the menu option is the ONLY thing that is wrong?
yes because omarchy is opinionated and menu option of hibernate linked to swap file
the hibernate menu entry just calls systemctl hibernate
that's it. on menu 577 is the condition to have hibernate button
so just override omarchy-hibernation-available to exit 0
touch ~/.local/bin/omarchy-hibernation-available
chmod +x ~/.local/bin/omarchy-hibernation-available
change exit 1 to exit 0 right?
no, override with new file so you don't actually run that one. to avoid editing ~/.local/share/omarchy
i see thank you. will now do it
new file override might not work. in that case edit and commit in your omarchy dir
can i use local just like N1R4 suggest?
i may have edited line 5 in omarchy-menu to allow overrides
(you will need to git commit this so you don't break omarchy-update)
yes. edit line 5 and commit required default puts omarchy bin first: https://github.com/basecamp/omarchy/blob/dev/bin/omarchy-menu#L5
(github rate limiting delay..)